summaryrefslogtreecommitdiff
path: root/print/apsfilter
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2015-07-16 22:29:19 +0000
committerKoop Mast <kwm@FreeBSD.org>2015-07-16 22:29:19 +0000
commit622f0588ab15e291ddb4ba4aa7a49ed106ce38c2 (patch)
tree0dc00119fad4dbe61a3e1127d24d1feebc9798aa /print/apsfilter
parentRemove some experiment code. (diff)
Fix index after ghostscript USES addition.
Allow USES=ghostscript to select which port we need. Manualy set WITHOUT_X11 in the !X11 case since USES=ghostscript doesn't check PORT_OPTIONS for set/unset of the X11 option.
Notes
Notes: svn path=/head/; revision=392327
Diffstat (limited to 'print/apsfilter')
-rw-r--r--print/apsfilter/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/print/apsfilter/Makefile b/print/apsfilter/Makefile
index 6cabb1add381..73cbe3a96d47 100644
--- a/print/apsfilter/Makefile
+++ b/print/apsfilter/Makefile
@@ -50,6 +50,7 @@ COMPRESS_DESC= print compressed documents
DOCS_MAKE_ARGS= -DDOCS
PORTDOCS= ANNOUNCE FAQ HOWTO-BUGREPORTS apsfilter4.png \
README.BSD handbook.html README.TeX paper
+GS_USES= ghostscript:run
.include <bsd.port.options.mk>
@@ -58,9 +59,9 @@ PORTDOCS= ANNOUNCE FAQ HOWTO-BUGREPORTS apsfilter4.png \
# (instead of WITHOUT_X11=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
-.if empty(GHOSTSCRIPT_PORT:M*-nox11)
-GSUFX= -nox11
-.endif
+# ghostscript.mk USES doesn't check PORT_OPTIONS:MX11, so set this manualy
+# so it selects the nox11 gs port
+WITHOUT_X11= yes
.endif
# hint: for batch mode you can now draw the following decisions
@@ -76,7 +77,6 @@ PSUFX= -letter
PSUFX= -letterdj
.endif
-_DEPENDS_GS= gs:${PORTSDIR}/${GHOSTSCRIPT_PORT}${GSUFX}
_DEPENDS_ASCII= a2ps:${PORTSDIR}/print/a2ps \
enscript:${PORTSDIR}/print/enscript${PSUFX} \
mpage:${PORTSDIR}/print/mpage \