[PATCH] devel/glade2: Add a WITHOUT_GNOME knob

Alexander Botero-Lowry alex at foxybanana.com
Fri Apr 21 00:28:06 UTC 2006


>Submitter-Id:	current-users
>Originator:	Alexander Botero-Lowry
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/glade2: Add a WITHOUT_GNOME knob
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 6.0-STABLE i386
>Environment:
System: FreeBSD Laptop.mine.box 6.0-STABLE FreeBSD 6.0-STABLE #1: Tue Feb  7 19:06:16 PST
>Description:
- glade does not require gnome support, it is just an option, so I made a
  (non-default) knob to disable GNOME support. 

Port maintainer (gnome at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- glade2-2.12.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/glade2/Makefile /usr/local/tinderbox/portstrees/FreeBSD/ports/devel/glade2/Makefile
--- /usr/ports/devel/glade2/Makefile	Thu Apr 20 16:58:07 2006
+++ /usr/local/tinderbox/portstrees/FreeBSD/ports/devel/glade2/Makefile	Thu Apr 20 17:24:14 2006
@@ -18,21 +18,29 @@
 MAINTAINER=	gnome at FreeBSD.org
 COMMENT=	A user interface builder for GTK+/GNOME
 
-RUN_DEPENDS=	${X11BASE}/lib/gtk-2.0/modules/libgail-gnome.so:${PORTSDIR}/x11-toolkits/libgail-gnome
-
 USE_BZIP2=	yes
 USE_GETTEXT=	yes
 USE_X_PREFIX=	yes
 INSTALLS_OMF=	yes
 GNU_CONFIGURE=	yes
-USE_GNOME=	gnomeprefix intlhack gnomehack libgnomeui
+USE_GNOME=	gnomeprefix intlhack gnomehack
 USE_GMAKE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
-#OPTIONS=	GNOMEDB "Enable libgnomedb support" off
+OPTIONS=	GNOME "Enable gnome support" on #\
+#		GNOMEDB "Enable libgnomedb support" off
 
 .include <bsd.port.pre.mk>
+.if defined(WITHOUT_GNOME)
+CONFIGURE_ARGS+=	--disable-gnome
+BUILD_DEPENDS=	scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
+RUN_DEPENDS=	scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
+USE_GNOME+=	gtk20
+.else
+USE_GNOME+=	libgnomeui
+RUN_DEPENDS=	${X11BASE}/lib/gtk-2.0/modules/libgail-gnome.so:${PORTSDIR}/x11-toolkits/libgail-gnome
+.endif
 
 #.if defined(WITH_GNOMEDB)
 #USE_GNOME+=		libgnomedb
--- glade2-2.12.1_1.patch ends here ---



More information about the freebsd-gnome mailing list