diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:11:29 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:11:29 +0000 |
commit | fa197747eb3babaeda8976d9bbbe6aedc5e7ea35 (patch) | |
tree | a3892f629236377bdd06d38a220b764a883b12a3 /print/html2ps-letter/Makefile | |
parent | [PATCH] print/magicfilter: enable choose of ghostscript interpreter (diff) |
[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>
Notes
Notes:
svn path=/head/; revision=88141
Diffstat (limited to 'print/html2ps-letter/Makefile')
-rw-r--r-- | print/html2ps-letter/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/print/html2ps-letter/Makefile b/print/html2ps-letter/Makefile index b403ba2b09de..3c2742c923db 100644 --- a/print/html2ps-letter/Makefile +++ b/print/html2ps-letter/Makefile @@ -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 |