summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordillo <dillo>2005-09-05 15:24:08 +0000
committerdillo <dillo>2005-09-05 15:24:08 +0000
commit69803ea51034c37116567acb9fb3c306e38d4a04 (patch)
tree63d5231503a7f1e680a243ed8e7199e6fbe46975 /mk
parent5b2796b670fc3e03e7004e6d78f9065c05db8a22 (diff)
downloadpkgsrc-69803ea51034c37116567acb9fb3c306e38d4a04.tar.gz
Improve warning for deprecated variables, prompted by wiz.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.options.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
index 9a24eefa4b4..699facbd5b4 100644
--- a/mk/bsd.options.mk
+++ b/mk/bsd.options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.48 2005/07/28 15:17:55 dillo Exp $
+# $NetBSD: bsd.options.mk,v 1.49 2005/09/05 15:24:08 dillo Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -199,13 +199,15 @@ _opt_:= ${_m_:C/.*://}
_popt_:=${_opt_:C/^-//}
. if !empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
. if defined(${_var_})
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" used, use PKG_DEFAULT_OPTIONS+="${_popt_:Q}" instead."
. if empty(${_var_}:M[nN][oO])
PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} ${_opt_}
+PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+="${_opt_:Q}" instead."
. elif empty(_opt_:M-*)
PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} -${_popt_}
+PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+=-"${_popt_:Q}" instead."
. else
PKG_LEGACY_OPTIONS:=${PKG_LEGACY_OPTIONS} ${_popt_}
+PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated variable "${_var_:Q}" set to "${${_var_}:Q}", use PKG_DEFAULT_OPTIONS+="${_popt_:Q}" instead."
. endif
. endif
. endif