summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-11 18:48:52 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-11 18:48:52 +0000
commit2aa88aa32b2265563776a35b70821955de41a0e9 (patch)
tree2a63374d0675151c60e40bcfb26eb8321329b0ed
parent93ff34fe624dc2c50b96f6108e26a7a67baafb79 (diff)
downloadpkgsrc-2aa88aa32b2265563776a35b70821955de41a0e9.tar.gz
Warn, don't fail, on disabling an unsupported option.
-rw-r--r--mk/bsd.options.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
index 63a2507053f..248364a2b78 100644
--- a/mk/bsd.options.mk
+++ b/mk/bsd.options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.67 2008/02/18 14:30:40 obache Exp $
+# $NetBSD: bsd.options.mk,v 1.68 2013/05/11 18:48:52 riastradh Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -285,7 +285,11 @@ _opt_:= -${_popt_}
. endif
. endif
. if empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
+. if empty(_opt_:M-*)
_OPTIONS_UNSUPPORTED:=${_OPTIONS_UNSUPPORTED} ${_opt_}
+. else
+PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Option "${_opt_:Q}" is unsupported, so disabling it has no effect."
+. endif
. else
. if defined(_PKG_OPTIONS_GROUP_MAP.${_popt_})
_grp_:= ${_PKG_OPTIONS_GROUP_MAP.${_popt_}}