diff to build pan2 w/o gtkspell

Herbert J. Skuhra herbert.skuhra at gmx.at
Wed Feb 4 13:13:03 PST 2004


Hei!

I have modified the Makefile of news/pan2 to build the port without
gtkspell and gnome. Not sure if this is the right way to do it though.
Well it's working for me! ;-)

Regards,
Herbert
-------------- next part --------------
diff -ruN pan2.orig/Makefile pan2/Makefile
--- pan2.orig/Makefile	Wed Feb  4 21:12:47 2004
+++ pan2/Makefile	Wed Feb  4 22:08:53 2004
@@ -17,13 +17,25 @@
 MAINTAINER=	gnome at FreeBSD.org
 COMMENT=	Threaded GNOME 2 newsreader based on Agent for Windows
 
-LIB_DEPENDS=	gtkspell.0:${PORTSDIR}/textproc/gtkspell2 \
-		gnet-2.0.0:${PORTSDIR}/net/gnet2
+LIB_DEPENS	gnet-2.0.0:${PORTSDIR}/net/gnet2
+
+.if defined(WITHOUT_GTKSPELL)
+CONFIGURE_ARGS=	--disable-gtkspell
+.endif
+
+.if !defined(WITHOUT_GTKSPELL)
+LIB_DEPENDS+=	gtkspell.0:${PORTSDIR}/textproc/gtkspell2
+.endif
 
 USE_BZIP2=	yes
 USE_X_PREFIX=	yes
 USE_GMAKE=	yes
-USE_GNOME=	gnomeprefix gnomehack gnometarget libxml2
+USE_GNOME=	libxml2
+
+.if !defined(WITHOUT_GNOME)
+USE_GNOME+=	gnomeprefix gnomehack gnometarget
+.endif
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
 		LIBS="-L${LOCALBASE}/lib -lgnuregex -lcompat"


More information about the freebsd-gnome mailing list