[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>
This commit is contained in:
Edwin Groothuis 2003-08-31 00:24:20 +00:00
parent ca8c898f48
commit ec25211c92
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88122
2 changed files with 16 additions and 2 deletions

View file

@ -18,11 +18,25 @@ EXTRACT_ONLY= # empty
MAINTAINER= statue@freebsd.sinica.edu.tw MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= MOE CIDFonts converted by Adobe 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 ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps
NO_BUILD= YES 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: do-install:
@${INSTALL_DATA} ${DISTDIR}/MOEKai-Regular \ @${INSTALL_DATA} ${DISTDIR}/MOEKai-Regular \
${DISTDIR}/MOESung-Regular \ ${DISTDIR}/MOESung-Regular \

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
GSVER=`cd ${PORTSDIR}/print/ghostscript-gnu && make -V GS_VERSION` GSVER=`gs --version`
GSDIR=${PREFIX}/share/ghostscript GSDIR=${PREFIX}/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS