summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-rw-r--r--chinese/enscript/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/chinese/enscript/Makefile b/chinese/enscript/Makefile
index d155d713ffb8..97ec2971f63a 100644
--- a/chinese/enscript/Makefile
+++ b/chinese/enscript/Makefile
@@ -12,14 +12,19 @@ MASTERDIR= ${.CURDIR}/../../print/enscript-letter
MAINTAINER= keith@FreeBSD.org
-RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm
+.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}/${GSPORT}
EXTRA_PATCHES= ${.CURDIR}/files/patch-*
PLIST= ${WRKDIR}/pkg-plist
PKGMESSAGE= ${.CURDIR}/pkg-message
-USE_GHOSTSCRIPT_RUN= yes
-
pre-fetch:
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO} ""