Index: graphics/gd/Makefile =================================================================== RCS file: /cvs/ports/graphics/gd/Makefile,v retrieving revision 1.46 diff -u -r1.46 Makefile --- graphics/gd/Makefile 2006/08/02 10:10:35 1.46 +++ graphics/gd/Makefile 2006/10/05 19:31:20 @@ -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,7 +25,16 @@ CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= --without-xpm -USE_X11= Yes +FLAVORS= no_x11 +FLAVOR?= + +.if ${FLAVOR:L:Mno_x11} +CONFIGURE_ARGS+= --without-fontconfig --without-freetype +.else +WANTLIB+= fontconfig freetype +USE_X11= Yes +.endif + USE_LIBTOOL= Yes post-install: