diff options
Diffstat (limited to 'chat/weechat/options.mk')
-rw-r--r-- | chat/weechat/options.mk | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/chat/weechat/options.mk b/chat/weechat/options.mk index 3f6c79ac981..5b21c0717bb 100644 --- a/chat/weechat/options.mk +++ b/chat/weechat/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.3 2007/06/10 22:20:10 tonio Exp $ +# $NetBSD: options.mk,v 1.4 2008/04/12 22:42:58 jlam Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.weechat PKG_SUPPORTED_OPTIONS= charset gnutls python lua @@ -6,12 +6,13 @@ PKG_SUGGESTED_OPTIONS= charset .include "../../mk/bsd.options.mk" +PLIST_VARS+= charset lua plugin python + .if !empty(PKG_OPTIONS:Mcharset) CONFIGURE_ARGS+= --enable-charset -PLIST_SUBST+= WITHCHARSET="" +PLIST.charset= yes .else CONFIGURE_ARGS+= --disable-charset -PLIST_SUBST+= WITHCHARSET="@comment " .endif .if !empty(PKG_OPTIONS:Mgnutls) @@ -21,24 +22,21 @@ PLIST_SUBST+= WITHCHARSET="@comment " .if !empty(PKG_OPTIONS:Mpython) .include "../../lang/python/extension.mk" CONFIGURE_ARGS+= --enable-python -PLIST_SUBST+= WITHPYTHON="" +PLIST.python= yes .else CONFIGURE_ARGS+= --disable-python -PLIST_SUBST+= WITHPYTHON="@comment " .endif .if !empty(PKG_OPTIONS:Mlua) .include "../../lang/lua/buildlink3.mk" CONFIGURE_ARGS+= --enable-lua -PLIST_SUBST+= WITHLUA="" +PLIST.lua= yes .else CONFIGURE_ARGS+= --disable-lua -PLIST_SUBST+= WITHLUA="@comment " .endif -.if !empty(PKG_OPTIONS:Mpython) || !empty(PKG_OPTIONS:Mlua) \ - || !empty(PKG_OPTIONS:Mcharset) -PLIST_SUBST+= WITHPLUGIN="" -.else -PLIST_SUBST+= WITHPLUGIN="@comment " +.if !empty(PKG_OPTIONS:Mpython) || \ + !empty(PKG_OPTIONS:Mlua) || \ + !empty(PKG_OPTIONS:Mcharset) +PLIST.plugin= yes .endif |