mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
[PATCH] mail/courier: 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/54957 Submitted by: Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
parent
af07884dbd
commit
f5b1e3399b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88151
@ -109,6 +109,7 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
WITH_SENDFAX="${WITH_SENDFAX:L}" \
|
||||
WITH_IPV6="${WITH_IPV6:L}" \
|
||||
WITH_TRANSPORT="${WITH_TRANSPORT}" \
|
||||
WITH_GHOSTSCRIPT_AFPL="${WITH_GHOSTSCRIPT_AFPL:no}" \
|
||||
TOUCH="${TOUCH}" \
|
||||
MKDIR="${MKDIR}"
|
||||
|
||||
@ -122,6 +123,14 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
pre-everything::
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.${PORTNAME}
|
||||
|
||||
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:
|
||||
@${PERL} -pi -e 's:\@datadir\@:\@sysconfdir\@:g;' \
|
||||
${WRKSRC}/*/mk*cert.* \
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/mail/courier/scripts/Attic/configure.courier,v 1.9 2003-08-28 12:57:51 edwin Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/mail/courier/scripts/Attic/configure.courier,v 1.10 2003-08-31 01:30:02 edwin Exp $
|
||||
|
||||
[ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ] && exit
|
||||
|
||||
@ -251,7 +251,12 @@ while [ "$1" ]; do
|
||||
echo "BUILD_DEPENDS+= procmail:\${PORTSDIR}/mail/procmail"
|
||||
;;
|
||||
\"SendFax\")
|
||||
echo "BUILD_DEPENDS+= gs:\${PORTSDIR}/print/ghostscript-gnu"
|
||||
if [ "x${WITH_GHOSTSCRIPT_AFPL}" = "xyes" ]
|
||||
then
|
||||
echo "BUILD_DEPENDS+= gs:\${PORTSDIR}/print/ghostscript-afpl"
|
||||
else
|
||||
echo "BUILD_DEPENDS+= gs:\${PORTSDIR}/print/ghostscript-gnu"
|
||||
fi
|
||||
echo "BUILD_DEPENDS+= pnmscale:\${PORTSDIR}/graphics/netpbm"
|
||||
echo "BUILD_DEPENDS+= giftopnm:\${PORTSDIR}/graphics/netpbm"
|
||||
echo "BUILD_DEPENDS+= jpegtopnm:\${PORTSDIR}/graphics/netpbm"
|
||||
|
Loading…
Reference in New Issue
Block a user