diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:08:35 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:08:35 +0000 |
commit | fd47b70a6234d2e1261923b00ebdf83be400534d (patch) | |
tree | 6f0bbf1be327a9ae2a013a4675c72b27cd21c6d9 /print/ggv2 | |
parent | [PATCH] print/apsfilter: enable choose of ghostscript interpreter (diff) |
[PATCH] print/ggv2: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either
print/ghostscript-gnu or print/ghostscript-afp1
PR: ports/54942
Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes:
svn path=/head/; revision=88139
Diffstat (limited to 'print/ggv2')
-rw-r--r-- | print/ggv2/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/print/ggv2/Makefile b/print/ggv2/Makefile index 3cbcf4ac92c1..99e011a6ab5f 100644 --- a/print/ggv2/Makefile +++ b/print/ggv2/Makefile @@ -16,8 +16,14 @@ 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) && ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.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 +34,12 @@ USE_REINPLACE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +pre-fetch: +.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes + @${ECHO} "" + @${ECHO} " Define WITH_GHOSTSCRIPT_AFPL=yes to use" + @${ECHO} " AFPL Postscript interpreter instead of GNU one" + @${ECHO} "" +.endif + .include <bsd.port.mk> |