summaryrefslogtreecommitdiff
path: root/mbone/wb/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:44:39 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 00:44:39 +0000
commit656a9479b91ae8dc1a5be278722b438ccda22d57 (patch)
tree726b998d9f6144d640e16cc7ee2358fa8d623c44 /mbone/wb/Makefile
parent[PATCH] lang/logo: enable choose of ghostscript interpreter (diff)
[PATCH] mbone/wb: 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/54937 Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to '')
-rw-r--r--mbone/wb/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/mbone/wb/Makefile b/mbone/wb/Makefile
index ed7e8f45cd98..3e981484efba 100644
--- a/mbone/wb/Makefile
+++ b/mbone/wb/Makefile
@@ -19,7 +19,13 @@ NO_BUILD= yes
USE_X_PREFIX= yes
# XXX ghostscript, ghostscript3, ghostscript4 or ghostscript5 will all do.
-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}
.include <bsd.port.pre.mk>
@@ -27,6 +33,14 @@ RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
STRIP=
.endif
+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_PROGRAM} ${WRKSRC}/wb ${PREFIX}/bin
.if !defined(NOPORTDOCS)