summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2005-06-06 13:55:30 +0000
committerdillo <dillo@pkgsrc.org>2005-06-06 13:55:30 +0000
commitac0a526208f036034248db4c68de7ae0ee7f843c (patch)
tree7e444dda08714cb82f7f9c76677e16f14f2c3d5f /chat
parenta55c83b93b77d12f544762f47b102b459761f68d (diff)
downloadpkgsrc-ac0a526208f036034248db4c68de7ae0ee7f843c.tar.gz
handle legacy PKG_OPTIONS_VAR correctly, with warning
Diffstat (limited to 'chat')
-rw-r--r--chat/xchat/options.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/chat/xchat/options.mk b/chat/xchat/options.mk
index c43408aaf1d..132935abe97 100644
--- a/chat/xchat/options.mk
+++ b/chat/xchat/options.mk
@@ -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"
###