diff options
author | edwin <edwin@FreeBSD.org> | 2003-08-31 08:22:56 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-08-31 08:22:56 +0800 |
commit | 16de3749d9043e4511f0c160784f130d1fcc26f2 (patch) | |
tree | f2d6dc5a2cf99a3d06e0aec26d6c203dbcd36bb4 /chinese/enscript | |
parent | ceb601f8b7abc8a0cca0a6fb846a5bcfac22d12f (diff) | |
download | freebsd-ports-graphics-16de3749d9043e4511f0c160784f130d1fcc26f2.tar.gz freebsd-ports-graphics-16de3749d9043e4511f0c160784f130d1fcc26f2.tar.zst freebsd-ports-graphics-16de3749d9043e4511f0c160784f130d1fcc26f2.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>
Diffstat (limited to 'chinese/enscript')
-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 3b2e7875c5e..97ec2971f63 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 |