summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordillo <dillo>2005-07-19 09:28:50 +0000
committerdillo <dillo>2005-07-19 09:28:50 +0000
commit5196d397fbdc58049acf247ed0f8908433ed4307 (patch)
treeb72fc158696d6ede169fb821ce734d7d65425396 /mk
parentb7016de82e7fe7103f774ce90c9bffd97669687d (diff)
downloadpkgsrc-5196d397fbdc58049acf247ed0f8908433ed4307.tar.gz
PKG_OPTIONS_LEGACY_OPTS: only issue deprecated warning if the old
option is used. Noted by adrianp.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.options.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk
index 5709118ad18..58c258bbe96 100644
--- a/mk/bsd.options.mk
+++ b/mk/bsd.options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.42 2005/06/11 16:12:13 dillo Exp $
+# $NetBSD: bsd.options.mk,v 1.43 2005/07/19 09:28:50 dillo Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -198,7 +198,6 @@ _old_:= ${_m_:C/:.*//}
_new_:= ${_m_:C/.*://}
. if !empty(PKG_SUPPORTED_OPTIONS:M${_new_})
_PKG_LEGACY_OPTMAP.${_old_}:=${_new_}
-PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated option "${_old_:Q}" used, use option "${_new_:Q}" instead."
. endif
.endfor
.undef _old_
@@ -229,6 +228,7 @@ _OPTIONS_UNSUPPORTED:= #empty
_opt_:= ${_o_}
_popt_:= ${_o_:C/^-//} # positive option
. if defined(_PKG_LEGACY_OPTMAP.${_popt_})
+PKG_OPTIONS_DEPRECATED_WARNINGS:=${PKG_OPTIONS_DEPRECATED_WARNINGS} "Deprecated option "${_popt_:Q}" used, use option "${_PKG_LEGACY_OPTMAP.${_popt_}:Q}" instead."
_popt_:= ${_PKG_LEGACY_OPTMAP.${_popt_}}
. if empty(_opt_:M-*)
_opt_:= ${_popt_}