summaryrefslogtreecommitdiff
path: root/chinese/moefonts-cid
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:24:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:24:20 +0000
commitec25211c9280c433e128d36cc7118089a113c5da (patch)
treef53990edac0ba2cb1bd8c1859f57ccdf2d09078f /chinese/moefonts-cid
parent[PATCH] chinese/enscript: enable choose of ghostscript interpreter (diff)
[PATCH] chinese/moefonts-cid: 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/54921 Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes: svn path=/head/; revision=88122
Diffstat (limited to 'chinese/moefonts-cid')
-rw-r--r--chinese/moefonts-cid/Makefile16
-rw-r--r--chinese/moefonts-cid/pkg-install2
2 files changed, 16 insertions, 2 deletions
diff --git a/chinese/moefonts-cid/Makefile b/chinese/moefonts-cid/Makefile
index 52155af4260d..7343e7f22c53 100644
--- a/chinese/moefonts-cid/Makefile
+++ b/chinese/moefonts-cid/Makefile
@@ -18,11 +18,25 @@ EXTRACT_ONLY= # empty
MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= MOE CIDFonts converted by Adobe
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu \
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} \
${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
NO_BUILD= YES
+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
+
do-install:
@${INSTALL_DATA} ${DISTDIR}/MOEKai-Regular \
${DISTDIR}/MOESung-Regular \
diff --git a/chinese/moefonts-cid/pkg-install b/chinese/moefonts-cid/pkg-install
index c453580206c7..f8379cb9f195 100644
--- a/chinese/moefonts-cid/pkg-install
+++ b/chinese/moefonts-cid/pkg-install
@@ -1,6 +1,6 @@
#!/bin/sh
-GSVER=`cd ${PORTSDIR}/print/ghostscript-gnu && make -V GS_VERSION`
+GSVER=`gs --version`
GSDIR=${PREFIX}/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS