aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-31 09:10:42 +0800
committeredwin <edwin@FreeBSD.org>2003-08-31 09:10:42 +0800
commitcfac75dfe065f38c7d6a76d8ee0143f4fc2ee7a5 (patch)
treec8833152a72b0a2cce3192149a21ddd968c1d620 /print
parenta09bf2a2eea9cb167d62f0df75fab66677597c95 (diff)
downloadfreebsd-ports-gnome-cfac75dfe065f38c7d6a76d8ee0143f4fc2ee7a5.tar.gz
freebsd-ports-gnome-cfac75dfe065f38c7d6a76d8ee0143f4fc2ee7a5.tar.zst
freebsd-ports-gnome-cfac75dfe065f38c7d6a76d8ee0143f4fc2ee7a5.zip
[PATCH] print/magicfilter: 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/54944 Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'print')
-rw-r--r--print/magicfilter/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/print/magicfilter/Makefile b/print/magicfilter/Makefile
index 5577231efe1a..8eba50918802 100644
--- a/print/magicfilter/Makefile
+++ b/print/magicfilter/Makefile
@@ -15,7 +15,13 @@ MAINTAINER= cjh@FreeBSD.org
COMMENT= Customizable, extensible automatic printer filter
# at least, gs must exist in many case
-BUILD_DEPENDS= ${PREFIX}/bin/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= ${PREFIX}/bin/gs:${PORTSDIR}/${GSPORT}
# to give freedom to choose your favor gs..
#RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
@@ -23,6 +29,14 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
MAN8= magicfilter.8
+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
+
# install filters and examples
post-install:
${MKDIR} ${PREFIX}/libexec/magicfilter