1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

[PATCH] print/html2ps-letter: 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/54945
Submitted by:	Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
Edwin Groothuis 2003-08-31 01:11:29 +00:00
parent 1688fafe76
commit fa197747eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88141

View File

@ -15,10 +15,16 @@ DISTNAME= html2ps-1.0b3
MAINTAINER= ports@FreeBSD.org
COMMENT= HTML to PostScript converter
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
GSPORT?= print/ghostscript-afpl
.else
GSPORT?= print/ghostscript-gnu
.endif
BUILD_DEPENDS= mogrify:${PORTSDIR}/graphics/ImageMagick \
djpeg:${PORTSDIR}/graphics/jpeg \
giftopnm:${PORTSDIR}/graphics/netpbm \
gs:${PORTSDIR}/print/ghostscript-gnu \
gs:${PORTSDIR}/${GSPORT} \
tex:${PORTSDIR}/print/teTeX \
${site_perl}/LWP.pm:${PORTSDIR}/www/p5-libwww \
weblint:${PORTSDIR}/www/weblint
@ -34,6 +40,14 @@ MAN1= html2ps.1
MAN5= html2psrc.5
SCRIPTS_ENV+= PERL=${PERL} PAPERSIZE=${PAPERSIZE}
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:
@cd ${WRKSRC}; ${PERL} install