1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

[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>
This commit is contained in:
Edwin Groothuis 2003-08-31 01:28:00 +00:00
parent bdf3756de6
commit 7cd52c6f6c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88149

View File

@ -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