diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:14:24 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:14:24 +0000 |
commit | 224ab15da1317b933e2087f959278c8f755f5d48 (patch) | |
tree | a5a587a1ad236a43a3d400302fd8ca2cc44ffb50 /print/pnm2ppa | |
parent | fa197747eb3babaeda8976d9bbbe6aedc5e7ea35 (diff) | |
download | ports-224ab15da1317b933e2087f959278c8f755f5d48.tar.gz ports-224ab15da1317b933e2087f959278c8f755f5d48.zip |
Notes
Diffstat (limited to 'print/pnm2ppa')
-rw-r--r-- | print/pnm2ppa/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile index 87935e27bfdd..8c5fc1229571 100644 --- a/print/pnm2ppa/Makefile +++ b/print/pnm2ppa/Makefile @@ -14,15 +14,29 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Convert PNM images to PPA for some HP printers -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} \ enscript:${PORTSDIR}/print/enscript-letter USE_GETOPT_LONG= yes -MAKE_ENV= LDFLAGS="${LDFLAGS}" +MAKE_ENV= LDFLAGS="${LDFLAGS}" CFLAGS+= ${CPPFLAGS} MAN1= pnm2ppa.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 + post-patch: @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \ ${WRKSRC}/pnm2ppa.conf > ${WRKSRC}/pnm2ppa.conf.sample |