aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-03-27 01:31:20 +0800
committermarino <marino@FreeBSD.org>2015-03-27 01:31:20 +0800
commitaba60502c604d68af308604afd0bc6f3a37c7bb9 (patch)
tree7b559e23dcc4d9a72f62cec703bae1e3f51e2617 /Mk
parent97275377845409f9e9abb873e35c7a37b1759cee (diff)
downloadfreebsd-ports-gnome-aba60502c604d68af308604afd0bc6f3a37c7bb9.tar.gz
freebsd-ports-gnome-aba60502c604d68af308604afd0bc6f3a37c7bb9.tar.zst
freebsd-ports-gnome-aba60502c604d68af308604afd0bc6f3a37c7bb9.zip
Mk/bsd.options.mk: Add OPTIONS_EXCLUDE_${OPSYS}
This simple addition greatly simplifies the removal of options as a function of operating system, e.g. OPTIONS_EXCLUDE_DragonFly. Approved by: portmgr (bdrewery)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.options.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 1290d72c3bf2..a73f446116c7 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -35,6 +35,7 @@
#
# OPTIONS_EXCLUDE - List of options unsupported (useful for slave ports)
# OPTIONS_EXCLUDE_${ARCH} - List of options unsupported on a given ${ARCH}
+# OPTIONS_EXCLUDE_${OPSYS} - List of options unsupported on a given ${OPSYS}
# OPTIONS_SLAVE - This is designed for slave ports, it removes an
# option from the options list inherited from the
# master port and it always adds it to PORT_OPTIONS
@@ -171,7 +172,8 @@ OPTIONS_DEFINE+= ${opt}
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}}
# Remove options the port maintainer doesn't want
-.for opt in ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} ${OPTIONS_SLAVE}
+.for opt in ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} ${OPTIONS_SLAVE} \
+ ${OPTIONS_EXCLUDE_${OPSYS}}
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:N${opt}}
OPTIONS_DEFINE:= ${OPTIONS_DEFINE:N${opt}}
PORT_OPTIONS:= ${PORT_OPTIONS:N${opt}}