summaryrefslogtreecommitdiff
path: root/print/apsfilter/Makefile
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 16:30:09 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 16:30:09 +0000
commitb7eeb1b30d83e557cf2a24b7952efbea026c2779 (patch)
tree1b6cdba0063a7653636c9b822f9b7e586ca8a359 /print/apsfilter/Makefile
parents/sanity-check/check-sanity/ since the latter is the actual target name. (diff)
Use the new ghostscript options.
Submitted by: linimon
Notes
Notes: svn path=/head/; revision=98657
Diffstat (limited to '')
-rw-r--r--print/apsfilter/Makefile22
1 files changed, 4 insertions, 18 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index 4b97b799d10c..b2851b579717 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -35,11 +35,7 @@ MAKE_ENV+= NO_X=true
# define WITH_GHOSTSCRIPT_AFPL=yes for AFPL Postscript interpreter
# instead of GNU one
#
-.if defined(WITH_GHOSTSCRIPT_AFPL)
-GSPORT?= print/ghostscript-afpl
-.else
-GSPORT?= print/ghostscript-gnu
-.endif
+USE_GHOSTSCRIPT_RUN= yes
#
# hint: for batch mode you can now draw the following decisions
@@ -53,11 +49,6 @@ GSPORT?= print/ghostscript-gnu
#
# Build and install all filter apsfilter knows about (rather expensive)
#
-# ps emulator
-.if defined(WITHOUT_X11)
-GSPORT:= ${GSPORT}-nox11
-.endif
-RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
# all needed decompression utilities
.if !exists(/usr/bin/bzip2)
RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
@@ -104,11 +95,6 @@ RUN_DEPENDS+= smbclient:${PORTSDIR}/net/samba
# don't build too many dependencies
# since apsfilter should fit easily on installation CD 1...
#
-# ps emulator
-.if defined(WITHOUT_X11)
-GSPORT:= ${GSPORT}-nox11
-.endif
-RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
# most important "xxx to ps" filter utilities
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
@@ -126,13 +112,13 @@ MAN5= apsfilterrc.5
HAS_CONFIGURE= yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/apsfilter
-SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" GSPORT="${GSPORT}"
+SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" GHOSTSCRIPT_PORT="${GHOSTSCRIPT_PORT}"
# make a2ps port happy in this early stage
PAPERSIZE?=letter
-pre-fetch:
-.if !defined(WITH_GHOSTSCRIPT_AFPL)
+pre-everything::
+.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"