pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/xchat handle legacy PKG_OPTIONS_VAR correctly, wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/851004a51abf
branches:  trunk
changeset: 495283:851004a51abf
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Mon Jun 06 13:55:30 2005 +0000

description:
handle legacy PKG_OPTIONS_VAR correctly, with warning

diffstat:

 chat/xchat/options.mk |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 0b27ee0621a8 -r 851004a51abf chat/xchat/options.mk
--- a/chat/xchat/options.mk     Mon Jun 06 13:54:51 2005 +0000
+++ b/chat/xchat/options.mk     Mon Jun 06 13:55:30 2005 +0000
@@ -1,16 +1,18 @@
-# $NetBSD: options.mk,v 1.4 2005/06/06 12:02:08 tron Exp $
+# $NetBSD: options.mk,v 1.5 2005/06/06 13:55:30 dillo Exp $
 
 .include "../../mk/bsd.prefs.mk"
 
-.if defined(PKG_OPTIONS.xchat2)
-PKG_OPTIONS.xchat?=    ${PKG_OPTIONS.xchat2}
-.endif
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.xchat
 PKG_SUPPORTED_OPTIONS= inet6 ssl socks5
 PKG_SUGGESTED_OPTIONS= inet6 ssl
 PKG_OPTIONS_LEGACY_OPTS+=      socks:socks5
 
+.if defined(PKG_OPTIONS.xchat2)
+PKG_LEGACY_OPTIONS+=   ${PKG_OPTIONS.xchat2}
+PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable PKG_OPTIONS.xchat2 used, use "${PKG_OPTIONS_VAR:Q}" instead."
+.endif
+
 .include "../../mk/bsd.options.mk"
 
 ###



Home | Main Index | Thread Index | Old Index