[PATCH] print/magicfilter: 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/54944
Submitted by:	Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
Edwin Groothuis 2003-08-31 01:10:42 +00:00
parent fd47b70a62
commit 1688fafe76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88140

View File

@ -15,7 +15,13 @@ MAINTAINER= cjh@FreeBSD.org
COMMENT= Customizable, extensible automatic printer filter
# at least, gs must exist in many case
BUILD_DEPENDS= ${PREFIX}/bin/gs:${PORTSDIR}/print/ghostscript-gnu
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
GSPORT?= print/ghostscript-afpl
.else
GSPORT?= print/ghostscript-gnu
.endif
BUILD_DEPENDS= ${PREFIX}/bin/gs:${PORTSDIR}/${GSPORT}
# to give freedom to choose your favor gs..
#RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
@ -23,6 +29,14 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
MAN8= magicfilter.8
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
# install filters and examples
post-install:
${MKDIR} ${PREFIX}/libexec/magicfilter