diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:22:56 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:22:56 +0000 |
commit | ca8c898f48202acbb23cb88d3183c9da4d0d5d78 (patch) | |
tree | 7fb40ee827beb0acf6b00bd896a09dac09defc02 /chinese | |
parent | ef2dae86e4ff0d85c5073776d0f7495fda10906e (diff) | |
download | ports-ca8c898f48202acbb23cb88d3183c9da4d0d5d78.tar.gz ports-ca8c898f48202acbb23cb88d3183c9da4d0d5d78.zip |
[PATCH] chinese/enscript: 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/54920
Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes:
svn path=/head/; revision=88121
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/enscript/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chinese/enscript/Makefile b/chinese/enscript/Makefile index 3b2e7875c5e1..97ec2971f63a 100644 --- a/chinese/enscript/Makefile +++ b/chinese/enscript/Makefile @@ -12,13 +12,27 @@ MASTERDIR= ${.CURDIR}/../../print/enscript-letter MAINTAINER= keith@FreeBSD.org +.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif + RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm \ - gs:${PORTSDIR}/print/ghostscript-gnu + gs:${PORTSDIR}/${GSPORT} EXTRA_PATCHES= ${.CURDIR}/files/patch-* PLIST= ${WRKDIR}/pkg-plist PKGMESSAGE= ${.CURDIR}/pkg-message +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 + post-patch: @${ECHO_CMD} "share/enscript/README.BIG5" > ${WRKDIR}/pkg-plist @${CAT} ${MASTERDIR}/pkg-plist >> ${WRKDIR}/pkg-plist |