aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:22:00 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:22:00 +0000
commitef2dae86e4ff0d85c5073776d0f7495fda10906e (patch)
tree44d21d0110c9de2b1a2adaf476425ca80a03c156 /chinese
parent2c17bf19420da22e2915076062f943c46dca87a0 (diff)
Notes
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