diff options
author | kwm <kwm@FreeBSD.org> | 2015-07-17 06:29:19 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2015-07-17 06:29:19 +0800 |
commit | 0deecd077a42722d8d882a7b3db09bd2d100ce20 (patch) | |
tree | 0dc00119fad4dbe61a3e1127d24d1feebc9798aa /print | |
parent | 233d883016e611d8ae4272912f1b7296956a48eb (diff) | |
download | freebsd-ports-gnome-0deecd077a42722d8d882a7b3db09bd2d100ce20.tar.gz freebsd-ports-gnome-0deecd077a42722d8d882a7b3db09bd2d100ce20.tar.zst freebsd-ports-gnome-0deecd077a42722d8d882a7b3db09bd2d100ce20.zip |
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.
Diffstat (limited to 'print')
-rw-r--r-- | print/apsfilter/Makefile | 8 |
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 \ |