pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Improve warning for deprecated variables, prompted ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66d18dec5f69
branches:  trunk
changeset: 498930:66d18dec5f69
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Mon Sep 05 15:24:08 2005 +0000

description:
Improve warning for deprecated variables, prompted by wiz.

diffstat:

 mk/bsd.options.mk |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 57224af30c60 -r 66d18dec5f69 mk/bsd.options.mk
--- a/mk/bsd.options.mk Mon Sep 05 15:18:42 2005 +0000
+++ b/mk/bsd.options.mk Mon Sep 05 15:24:08 2005 +0000
@@ -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 @@
 _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



Home | Main Index | Thread Index | Old Index