- 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...
This commit is contained in:
Andreas Klemm 2001-03-07 07:19:33 +00:00
parent 215b73200a
commit 4a28c9da6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39166

View file

@ -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