diff options
author | dillo <dillo> | 2005-09-05 15:24:08 +0000 |
---|---|---|
committer | dillo <dillo> | 2005-09-05 15:24:08 +0000 |
commit | d734b282c7373b5a5c580f1dd4d25e86d6bc3ad0 (patch) | |
tree | 63d5231503a7f1e680a243ed8e7199e6fbe46975 /mk/bsd.options.mk | |
parent | 1e1644c831e88fc6f90e94bf64ca3cc254f17371 (diff) | |
download | pkgsrc-d734b282c7373b5a5c580f1dd4d25e86d6bc3ad0.tar.gz |
Improve warning for deprecated variables, prompted by wiz.
Diffstat (limited to 'mk/bsd.options.mk')
-rw-r--r-- | mk/bsd.options.mk | 6 |
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 |