1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

- bump port revision, you can select ghostscript version without X11 support

when doing interactive installation
This commit is contained in:
Andreas Klemm 2001-03-07 07:52:11 +00:00
parent 4a28c9da6b
commit 63eda74a1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39167
2 changed files with 19 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= apsfilter
PORTVERSION= 6.0.0
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= http://www.apsfilter.org/download/
PATCH_SITES= http://www.apsfilter.org/download/
@ -15,6 +15,12 @@ PATCHFILES= diff-6.0.0-09.01.2001.gz
MAINTAINER= andreas@FreeBSD.org
# special arrangement for package building, build stuff without X11
# to make memory footprint of apsfilter package smaller
.if defined(BATCH) && defined(PACKAGE_BUILDING)
NO_X= yes
.endif
.if defined(NO_X)
# XXX Hack. If you've done something like "-DNO_X" on the command line
# (instead of NO_X=true, or similar) gmake won't pick it up. So make sure
@ -35,7 +41,11 @@ MAKE_ENV+= NO_X=true
# Build and install all filter apsfilter knows about (rather expensive)
#
# ps emulator
.if defined(NO_X)
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6-nox11
.else
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
.endif
# all needed decompression utilities
RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
RUN_DEPENDS+= melt:${PORTSDIR}/archivers/freeze
@ -63,7 +73,11 @@ RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
# since apsfilter should fit easily on installation CD 1...
#
# ps emulator
.if defined(NO_X)
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6-nox11
.else
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
.endif
# most important "xxx to ps" filter utilities
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter

View File

@ -15,6 +15,7 @@ A4 "A4 papersize" ON \
LETTER "letter papersize" OFF \
LETTERDJ "letter + special DeskJet adjustements" OFF \
GS "Postscript for non-PS printer, needs X11" ON \
GS_NO_X11 "Postscript for non-PS printer, no X11" OFF \
GS_PDF_CRYPT "print encrypted PDF files using gs" ON \
PSUTILS "for pseudo duplex printing + paper handling" ON \
A2PS "ASCII files in different styles/orientation" ON \
@ -67,6 +68,9 @@ while [ "$1" ]; do
\"GS\")
echo RUN_DEPENDS+=gs:${PORTSDIR}/print/ghostscript6
;;
\"GS_NO_X11\")
echo RUN_DEPENDS+=gs:${PORTSDIR}/print/ghostscript6-nox11
;;
\"GS_PDF_CRYPT\")
echo RUN_DEPENDS+=gs:${PORTSDIR}/print/ghostscript6
echo PDFENCRYPT=YES