Daniel Hartmeier wrote:
> While testing pfstat, I noticed that FreeBSD's port of gd 2.0.33 [1] has
> a WITHOUT_X11 "flavor". It does pull in freetype2, but that doesn't depend
> on X11 there.
I've tried to add a 'no_x11' FLAVOR, can somebody test it?
Daniel
--- Makefile.orig Fri May 19 01:53:31 2006
+++ Makefile Fri May 19 02:47:27 2006
@@ -15,7 +15,7 @@
MODULES= converters/libiconv
-WANTLIB= c fontconfig freetype m z
+WANTLIB= c m z
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
@@ -25,8 +25,17 @@
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --without-xpm
-USE_X11= Yes
USE_LIBTOOL= Yes
+
+FLAVORS= no_x11
+FLAVOR?=
+
+.if ${FLAVOR:L:Mno_x11}
+CONFIGURE_ARGS+= --with-freetype=no --with-fontconfig=no
+.else
+WANTLIB+= fontconfig freetype
+USE_X11= Yes
+.endif
post-install:
@cd ${WRKSRC} && ./gddemo
--
Hi, I'm a .signature virus! Copy me to your .signature file and
help me propagate, thanks!