diff options
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 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 |