Hi! This an update to the Makefile. I've added a no_gs FLAVOR, so one can compile it without the need to install ghostscript.
Please test/comment, thanks! Daniel -- LEVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/GraphicsMagick/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 27 Feb 2008 08:04:51 -0000 1.7 +++ Makefile 27 Nov 2008 12:28:48 -0000 @@ -37,7 +37,7 @@ LDFLAGS="-L${WRKBUILD}/magick/.libs -L${WRKBUILD}/wand/.libs -L${LOCALBASE}/lib" \ ac_cv_path_LaunchDelegate=no -FLAVORS= no_x11 +FLAVORS= no_x11 no_gs FLAVOR?= CONFIGURE_STYLE= autoconf @@ -55,17 +55,28 @@ .if ${FLAVOR:L:Mno_x11} -BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11 -RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11 CONFIGURE_ARGS+= --without-x --without-ttf CONFIGURE_ENV+= ac_cv_path_FIGDecodeDelegate=no .else -BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu -RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu +CONFIGURE_ARGS+= --with-x --with-ttf USE_X11= Yes RUN_DEPENDS+= :transfig-*:print/transfig BUILD_DEPENDS+= :transfig-*:print/transfig WANTLIB+= ICE SM X11 Xau Xdmcp Xext freetype +.endif + +.if ${FLAVOR:L:Mno_gs} +CONFIGURE_ARGS+= --without-gslib +.else +.if ${FLAVOR:L:Mno_x11} +CONFIGURE_ARGS+= --with-gslib +BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu +RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu +.else +CONFIGURE_ARGS+= --with-gslib +BUILD_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11 +RUN_DEPENDS+= :ghostscript-*:print/ghostscript/gnu,no_x11 +.endif .endif .include <bsd.port.mk>