diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/ggv2/Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/print/ggv2/Makefile b/print/ggv2/Makefile index 0c3508e4b..c6beeaa8b 100644 --- a/print/ggv2/Makefile +++ b/print/ggv2/Makefile @@ -16,8 +16,18 @@ DIST_SUBDIR= gnome2 MAINTAINER= gnome@FreeBSD.org COMMENT= GNOME 2 ghostscript viewer -BUILD_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu -RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu +.if defined(WITH_GHOSTSCRIPT_AFPL) +.if ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif +.else +GSPORT?= print/ghostscript-gnu +.endif + +BUILD_DEPENDS= gs:${PORTSDIR}/${GSPORT} +RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} USE_BZIP2= yes USE_X_PREFIX= yes @@ -28,4 +38,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +pre-everything:: +.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes + @${ECHO_MSG} "" + @${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use" + @${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one" + @${ECHO_MSG} "" +.endif + .include <bsd.port.mk> |