mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
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.
This commit is contained in:
parent
e0551b7b98
commit
622f0588ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=392327
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user