diff options
author | edwin <edwin@FreeBSD.org> | 2003-08-31 00:44:39 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-08-31 00:44:39 +0000 |
commit | b18c58201bd6ed87c4be6e599ecce48f47abb0f4 (patch) | |
tree | 284a8fd881c50f3da4ba796dcf92120c2bf5d7dd | |
parent | 23e25922cccbfa6f4d0db2057b22252ee71d8f69 (diff) | |
download | FreeBSD-ports-b18c58201bd6ed87c4be6e599ecce48f47abb0f4.zip FreeBSD-ports-b18c58201bd6ed87c4be6e599ecce48f47abb0f4.tar.gz |
[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>
-rw-r--r-- | mbone/wb/Makefile | 16 | ||||
-rw-r--r-- | net/wb/Makefile | 16 |
2 files changed, 30 insertions, 2 deletions
diff --git a/mbone/wb/Makefile b/mbone/wb/Makefile index ed7e8f4..3e98148 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) diff --git a/net/wb/Makefile b/net/wb/Makefile index ed7e8f4..3e98148 100644 --- a/net/wb/Makefile +++ b/net/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) |