Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 18:29:06 +0100 (CET)
From:      Stephane Legrand <stephane@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64226: [maintainer update] Update for x11-toolkits/gnocl
Message-ID:  <200403131729.i2DHT6pD022315@sequoia.mondomaineamoi.megalo>
Resent-Message-ID: <200403131740.i2DHeDVY033515@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64226
>Category:       ports
>Synopsis:       [maintainer update] Update for x11-toolkits/gnocl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 13 09:40:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stephane Legrand <stephane@freebsd.org>
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD 4.9-STABLE

>Description:
Update for x11-toolkits/gnocl  
Please note that there is a new file : files/patch-Makefile
   
>How-To-Repeat:
>Fix:

diff -ruN gnocl-orig/Makefile gnocl/Makefile
--- gnocl-orig/Makefile	Wed Feb  4 06:10:02 2004
+++ gnocl/Makefile	Sat Mar 13 18:13:06 2004
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	gnocl
-PORTVERSION=	0.5.12
+PORTVERSION=	0.5.15
 PORTREVISION=	1
 CATEGORIES=	x11-toolkits devel
 MASTER_SITES=	http://www.dr-baum.net/gnocl/
@@ -18,13 +18,14 @@
 
 USE_GMAKE=	yes
 USE_BZIP2=	yes
+USE_REINPLACE=	yes
 INSTALLS_SHLIB=	yes
 
 BUILD_WRKSRC=	${WRKSRC}/src
 CFLAGS+=	-I${LOCALBASE}/include/tcl8.4
 
 USE_X_PREFIX=	yes
-USE_GNOME=	libgnomecanvas gconf2
+USE_GNOME=	gtk20
 
 .include <bsd.port.pre.mk>
 
@@ -33,24 +34,52 @@
 .endif
 
 GNOCL_CANVAS_FILE="lib/libgnoclCanvas.so.1"
+GNOCL_GCONF_FILE="lib/libgnoclGconf.so.1"
+GNOCL_GNOME_FILE="lib/libgnoclGnome.so.1"
 
 .if defined(WITHOUT_CANVAS)
-ALL_TARGET=	gnocl
-USE_GNOME=	gtk20 gconf2
-GNOCL_CANVAS_FILE=	"@comment "
+GNOCL_CANVAS_FILE=        "@comment "
+.else
+USE_GNOME+=	libgnomecanvas
 .endif
 
-.if defined(WITH_GNOME)
-GNOCL_USE_GNOME:=1
+.if defined(WITHOUT_GCONF)
+GNOCL_GCONF_FILE=      "@comment "
+.else
+USE_GNOME+=     gconf2
+.endif
+
+.if defined(WITHOUT_GNOME)
+GNOCL_GNOME_FILE=	"@comment "
+.else
 USE_GNOME+=	libgnomeui
 .endif
 
 PLIST_SUB+=	GNOCL_CANVAS_FILE=${GNOCL_CANVAS_FILE}
+PLIST_SUB+=	GNOCL_GCONF_FILE=${GNOCL_GCONF_FILE}
+PLIST_SUB+=	GNOCL_GNOME_FILE=${GNOCL_GNOME_FILE}
+
+post-patch:
+.if defined(WITHOUT_CANVAS)
+	${REINPLACE_CMD} -e 's=^USE_CANVAS=#USE_CANVAS=' ${BUILD_WRKSRC}/Makefile
+.endif
+.if defined(WITHOUT_GCONF)
+	${REINPLACE_CMD} -e 's=^USE_GCONF=#USE_GCONF=' ${BUILD_WRKSRC}/Makefile
+.endif
+.if defined(WITHOUT_GNOME)
+	${REINPLACE_CMD} -e 's=^USE_GNOME=#USE_GNOME=' ${BUILD_WRKSRC}/Makefile
+.endif
 
 do-install:
 	${INSTALL_DATA} ${BUILD_WRKSRC}/gnocl.so ${PREFIX}/lib/libgnocl.so.1
 	if ${TEST} -f ${BUILD_WRKSRC}/gnoclCanvas.so; then \
 		${INSTALL_DATA} ${BUILD_WRKSRC}/gnoclCanvas.so ${PREFIX}/lib/libgnoclCanvas.so.1; \
+	fi; \
+	if ${TEST} -f ${BUILD_WRKSRC}/gnoclGconf.so; then \
+		${INSTALL_DATA} ${BUILD_WRKSRC}/gnoclGconf.so ${PREFIX}/lib/libgnoclGconf.so.1; \
+	fi; \
+	if ${TEST} -f ${BUILD_WRKSRC}/gnoclGnome.so; then \
+		${INSTALL_DATA} ${BUILD_WRKSRC}/gnoclGnome.so ${PREFIX}/lib/libgnoclGnome.so.1; \
 	fi; \
 
 .include <bsd.port.post.mk>
diff -ruN gnocl-orig/distinfo gnocl/distinfo
--- gnocl-orig/distinfo	Fri Nov 21 13:49:01 2003
+++ gnocl/distinfo	Sat Mar 13 13:28:30 2004
@@ -1 +1,2 @@
-MD5 (gnocl-0.5.12.tar.bz2) = 2d9894ff9ee3c23fdf89594fb7fc7d18
+MD5 (gnocl-0.5.15.tar.bz2) = c48a8e7e9fc0bedc69b0cf254ebd99ac
+SIZE (gnocl-0.5.15.tar.bz2) = 335269
diff -ruN gnocl-orig/files/patch-Makefile gnocl/files/patch-Makefile
--- gnocl-orig/files/patch-Makefile	Thu Jan  1 01:00:00 1970
+++ gnocl/files/patch-Makefile	Fri Feb 13 18:18:09 2004
@@ -0,0 +1,11 @@
+--- src/Makefile.orig	Fri Feb 13 18:08:35 2004
++++ src/Makefile	Fri Feb 13 18:08:59 2004
+@@ -19,7 +19,7 @@
+ export CFLAGS += -Wall -DVERSION=\"$(VERSION)\" -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DUSE_TCL_STUBS
+ 
+ ADDCFLAGS += $(shell pkg-config --cflags gtk+-2.0)
+-export TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
++export TCL_VERSION := 84
+ 
+ LIBS := $(shell pkg-config --libs gtk+-2.0) -ltclstub$(TCL_VERSION)
+ 
diff -ruN gnocl-orig/pkg-plist gnocl/pkg-plist
--- gnocl-orig/pkg-plist	Wed Aug 20 23:57:26 2003
+++ gnocl/pkg-plist	Sat Mar 13 14:27:50 2004
@@ -1,2 +1,4 @@
 lib/libgnocl.so.1
 %%GNOCL_CANVAS_FILE%%
+%%GNOCL_GCONF_FILE%%
+%%GNOCL_GNOME_FILE%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403131729.i2DHT6pD022315>