mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
[PATCH] print/pnm2ppa: 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/54946 Submitted by: Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
parent
fa197747eb
commit
224ab15da1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88142
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user