aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-31 08:22:00 +0800
committeredwin <edwin@FreeBSD.org>2003-08-31 08:22:00 +0800
commitceb601f8b7abc8a0cca0a6fb846a5bcfac22d12f (patch)
tree2f5d5ca1513464df751a3b3c0492d8a16fe4041b /chinese
parent7ae9515b8a2d1dde0cd63d5c0ed91a56d48e4f5c (diff)
downloadfreebsd-ports-gnome-ceb601f8b7abc8a0cca0a6fb846a5bcfac22d12f.tar.gz
freebsd-ports-gnome-ceb601f8b7abc8a0cca0a6fb846a5bcfac22d12f.tar.zst
freebsd-ports-gnome-ceb601f8b7abc8a0cca0a6fb846a5bcfac22d12f.zip
[PATCH] chinese/abiword: 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/54919 Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/abiword/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/chinese/abiword/Makefile b/chinese/abiword/Makefile
index 4554464db8b8..4efd81069f6f 100644
--- a/chinese/abiword/Makefile
+++ b/chinese/abiword/Makefile
@@ -14,16 +14,30 @@ DISTFILES= # none
MAINTAINER= keith@FreeBSD.org
COMMENT= A cross-platform WYSIWYG word processor, with BIG5/GB available
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
RUN_DEPENDS= AbiWord:${PORTSDIR}/editors/AbiWord \
ttfm.sh:${PORTSDIR}/chinese/ttfm \
${LOCALBASE}/share/fonts/TrueType/bkai00mp.ttf:${PORTSDIR}/chinese/arphicttf \
- gs:${PORTSDIR}/print/ghostscript-gnu
+ gs:${PORTSDIR}/${GSPORT}
NO_BUILD= yes
USE_X_PREFIX= yes
.include <bsd.port.pre.mk>
+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:
@${SETENV} PKG_PREFIX=${LOCALBASE} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL