aboutsummaryrefslogtreecommitdiff
path: root/print/pstotext
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:28:00 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-31 01:28:00 +0000
commit7cd52c6f6c3dfb237e3e9f73c9f89e72b3bab291 (patch)
tree09a2da2d8ed5593f28d3dd0d9da15c8371a89a26 /print/pstotext
parentbdf3756de64c646dae608aae59e19279e56dbeae (diff)
downloadports-7cd52c6f6c3dfb237e3e9f73c9f89e72b3bab291.tar.gz
ports-7cd52c6f6c3dfb237e3e9f73c9f89e72b3bab291.zip
[PATCH] print/pstotext: 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/54955 Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes: svn path=/head/; revision=88149
Diffstat (limited to 'print/pstotext')
-rw-r--r--print/pstotext/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/print/pstotext/Makefile b/print/pstotext/Makefile
index ebef96c37f5a..d6a70beea282 100644
--- a/print/pstotext/Makefile
+++ b/print/pstotext/Makefile
@@ -15,10 +15,24 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ob@breuninger.org
COMMENT= A PostScript to Text converter
-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}
MAN1= pstotext.1
+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}/pstotext ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pstotext.1 ${PREFIX}/man/man1