From ca8c898f48202acbb23cb88d3183c9da4d0d5d78 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 00:22:56 +0000 Subject: [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 --- chinese/enscript/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'chinese/enscript') 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 -- cgit v1.2.3