aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-07-21 11:22:23 +0800
committerhrs <hrs@FreeBSD.org>2015-07-21 11:22:23 +0800
commit475537cebdf3d9c43456a8fd4cf51bb4573356bf (patch)
tree65af0c39782025d0ca20fe2dd0c06eaee29a3d9e /Mk
parentd217df31bc33721d5b6632834fb3f9261de38c24 (diff)
downloadfreebsd-ports-gnome-475537cebdf3d9c43456a8fd4cf51bb4573356bf.tar.gz
freebsd-ports-gnome-475537cebdf3d9c43456a8fd4cf51bb4573356bf.tar.zst
freebsd-ports-gnome-475537cebdf3d9c43456a8fd4cf51bb4573356bf.zip
- Remove "agpl" keyword in ghostscript arguments.
- Add "agpl" to GHOSTSCRIPT_DEFAULT. GHOSTSCRIPT_DEFAULT="9 agpl" is valid for print/ghostscript9-agpl. - Fix GHOSTSCRIPT_DEFAULT validation when using fmake.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/ghostscript.mk22
1 files changed, 11 insertions, 11 deletions
diff --git a/Mk/Uses/ghostscript.mk b/Mk/Uses/ghostscript.mk
index d6d268744f70..f92527093034 100644
--- a/Mk/Uses/ghostscript.mk
+++ b/Mk/Uses/ghostscript.mk
@@ -4,7 +4,7 @@
#
# Feature: ghostscript
# Usage: USES=ghostscript or USES=ghostscript:args
-# Valid ARGS: <version>, build, run, nox11, agpl
+# Valid ARGS: <version>, build, run, nox11
#
# version The chooseable versions are 7, 8 and 9. If no version is
# specified version 9 is selected.
@@ -14,7 +14,6 @@
# USES=ghostscript:8,build # Use ghostscript 8 as a build dependancy.
#
# nox11 Indicate that the Ghostscript nox11 port is required.
-# agpl Indicate that the Ghostscript apgl port is required.
# build Indicates that Ghostscript is needed at build time and adds
# it as BUILD_DEPENDS.
# run Indicates that Ghostscript is needed at run time and adds
@@ -29,19 +28,19 @@
_INCLUDE_USES_GHOSTSCRIPT_MK= yes
# allowed versions
-_GS_VERSION= 7 8 9 9.06 9.16
+_GS_VERSION= 7 8 9 9.06 9.16 agpl
_GS_ARGS= ${ghostscript_ARGS}
-.if ${_GS_ARGS:N[789]:N9.06:N9.16:Nnox11:Nagpl:Nbuild:Nrun}
-IGNORE= Unknown ghostscript argument ${_GS_ARGS}
+.if ${_GS_ARGS:N[789]:N9.06:N9.16:Nnox11:Nbuild:Nrun}
+IGNORE?= Unknown ghostscript argument ${_GS_ARGS}
.endif
# Determine version number of Ghostscript to use
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
-.if ${_GS_VERSION:M${GHOSTSCRIPT_DEFAULT}} == ""
-IGNORE= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION}
+.if ${GHOSTSCRIPT_DEFAULT:N[789]:N9.06:N9.16:Nagpl}
+IGNORE?= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION}
.endif
# Make sure that no dependency or some other environment variable
@@ -73,11 +72,12 @@ _GS_SELECTED?= 9
.elif ${_V:M9.16}
_GS_SELECTED?= 9
_GS_AGPL_SUFFIX?= -agpl
-.elif ${_V:Magpl} && defined(_GS_SELECTED)
-.if ${_GS_SELECTED:M9}
+.elif ${_V:Magpl}
_GS_AGPL_SUFFIX?= -agpl
+.if defined(_GS_SELECTED) && ${_GS_SELECTED:N9}
+IGNORE?= Ghostscript-agpl is only available in version 9
.else
-IGNORE= Ghostscript-agpl is only available in version 9
+_GS_SELECTED?= 9
.endif
.elif ${_V:M8}
_GS_SELECTED?= 8
@@ -86,7 +86,7 @@ _GS_SELECTED?= 7
.endif
.endfor
.if !defined(_GS_SELECTED)
-IGNORE= Invalid ghostscript argument or GHOSTSCRIPT_DEFAULT
+IGNORE?= Invalid ghostscript argument or GHOSTSCRIPT_DEFAULT
.endif
.undef _GS_NOX11_SUFFIX