aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2001-03-07 15:19:33 +0800
committerandreas <andreas@FreeBSD.org>2001-03-07 15:19:33 +0800
commit5ab56ad56346881577ea593d089adaf3b6aa9158 (patch)
tree600f7df3d2447e305f55605623b5847e7c473392
parentba35b7f23597b8acfe0335749fd52171bc14c0c5 (diff)
downloadfreebsd-ports-gnome-5ab56ad56346881577ea593d089adaf3b6aa9158.tar.gz
freebsd-ports-gnome-5ab56ad56346881577ea593d089adaf3b6aa9158.tar.zst
freebsd-ports-gnome-5ab56ad56346881577ea593d089adaf3b6aa9158.zip
- bumped port revisions because of new dependencies
- default in BATCH mode is now, NOT to have X11 based utilities in port dependencies, I think this makes apsfilter better in - running on small printservers that don't have X11 installed - making apsfilter package more "sexy" for being placed onto the 1st FreeBSD installation CD-ROM, since now it consumes less space !!! - make apsfilter use the same make environment variable NO_X like in ghostscript6 port - this enables you to build and run apsfilter even on a small printserver, that doesn't have X installed - NO_X is even usefull when having APSFILTER_ALL set, since then it installs all available/supported filter utilities, that don't require X11 - the last one needs some more fine tuning, currently I left it empty, have to think about, whats a possible replacement that don't need X11...
-rw-r--r--print/apsfilter/Makefile36
1 files changed, 31 insertions, 5 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index 47f5515b17fb..4ce9354fd6ca 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -7,7 +7,7 @@
PORTNAME= apsfilter
PORTVERSION= 6.0.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= http://www.apsfilter.org/download/
PATCH_SITES= http://www.apsfilter.org/download/
@@ -15,9 +15,25 @@ PATCHFILES= diff-6.0.0-09.01.2001.gz
MAINTAINER= andreas@FreeBSD.org
+.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
+# that NO_X is defined *and* has a value.
+MAKE_ENV+= NO_X=true
+.endif
+
+#
+# hint: for batch mode you can now draw the following decisions
+# - <default> build and install most important filter utilities
+# that don't require X
+# - APSFILTER_ALL build and install all supported filter utilities
+# - NO_X toggles not to build tools that need X11, even if
+# APSFILTER_ALL is set
+#
.if defined(BATCH) && defined(APSFILTER_ALL)
-# Please note: this might be needed only in rare cases or for testing
-# all of apsfilters capabilities
+#
+# Build and install all filter apsfilter knows about (rather expensive)
+#
# ps emulator
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
# all needed decompression utilities
@@ -25,22 +41,32 @@ RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
RUN_DEPENDS+= melt:${PORTSDIR}/archivers/freeze
# all needed "xxx to ps" filter utilities
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
+RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
+.if !defined(NO_X)
+# "xxx to ps" filter utilities that require X
RUN_DEPENDS+= acroread4:${PORTSDIR}/print/acroread4
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS+= dvips:${PORTSDIR}/print/teTeX
RUN_DEPENDS+= html2ps:${PORTSDIR}/print/html2ps-letter
-RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig
+.else
+# "xxx to ps" filter utilities that don't require X
+# XXX needs more work
+.endif
# all possible remote printing support
RUN_DEPENDS+= pap:${PORTSDIR}/net/netatalk
RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
.elif defined(BATCH)
+#
+# in normal batch/portbuilding mode (without building all)
+# don't build too many dependencies
+# since apsfilter should fit easily on installation CD 1...
+#
# ps emulator
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript6
# most important "xxx to ps" filter utilities
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
-RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
.endif
MAN1= apsfilter.1