aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorohauer <ohauer@FreeBSD.org>2014-06-21 21:29:30 +0800
committerohauer <ohauer@FreeBSD.org>2014-06-21 21:29:30 +0800
commitfcdc4631a784ab375ac617b3cc43ce620275a044 (patch)
treeacdcb60617d5287ea5b8ac4fc3f5ca7443474c00 /Mk
parent9bfb8e87a983b05f436e25702a28a87101a118e1 (diff)
downloadfreebsd-ports-gnome-fcdc4631a784ab375ac617b3cc43ce620275a044.tar.gz
freebsd-ports-gnome-fcdc4631a784ab375ac617b3cc43ce620275a044.tar.zst
freebsd-ports-gnome-fcdc4631a784ab375ac617b3cc43ce620275a044.zip
- strip optional WITH parameter from argument if OPTION is set to off
FOO_WITH= foo=bar CONFIGURE_ARGS will become now ON: --with-foo=bar OFF: --without-foo PR: 191085 Submitted by: ohauer Approved by: portmgr (antoine)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.options.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk
index 4627599dbdfd..bf2d3af6eab2 100644
--- a/Mk/bsd.options.mk
+++ b/Mk/bsd.options.mk
@@ -467,7 +467,7 @@ CONFIGURE_ARGS+= --disable-${iopt}
. endif
. if defined(${opt}_CONFIGURE_WITH)
. for iopt in ${${opt}_CONFIGURE_WITH}
-CONFIGURE_ARGS+= --without-${iopt}
+CONFIGURE_ARGS+= --without-${iopt:C/=.*//}
. endfor
. endif
. for configure in CONFIGURE CMAKE QMAKE