aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2001-03-07 15:52:11 +0800
committerandreas <andreas@FreeBSD.org>2001-03-07 15:52:11 +0800
commit5316f4007d7941801516d14ee6ee0d9071016298 (patch)
tree2693189a04f5e06f43aa4baa9830120149aa8033
parent5ab56ad56346881577ea593d089adaf3b6aa9158 (diff)
downloadfreebsd-ports-gnome-5316f4007d7941801516d14ee6ee0d9071016298.tar.gz
freebsd-ports-gnome-5316f4007d7941801516d14ee6ee0d9071016298.tar.zst
freebsd-ports-gnome-5316f4007d7941801516d14ee6ee0d9071016298.zip
- bump port revision, you can select ghostscript version without X11 support
when doing interactive installation
-rw-r--r--print/apsfilter/Makefile16
-rw-r--r--print/apsfilter/scripts/configure4
2 files changed, 19 insertions, 1 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index 4ce9354fd6ca..5622982251cb 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -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
diff --git a/print/apsfilter/scripts/configure b/print/apsfilter/scripts/configure
index b0373ff13056..4fc62c08553e 100644
--- a/print/apsfilter/scripts/configure
+++ b/print/apsfilter/scripts/configure
@@ -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