summaryrefslogtreecommitdiff
path: root/chat/weechat
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2006-10-02 21:02:03 +0000
committertonio <tonio@pkgsrc.org>2006-10-02 21:02:03 +0000
commit803346cf3691e47eadd0fbc41054f9c52f5c91c8 (patch)
treed038a71435ac52f904d894ed533cbf74cbe939c1 /chat/weechat
parentbabefbcc46f326487b1696d1e731e38d64810a07 (diff)
downloadpkgsrc-803346cf3691e47eadd0fbc41054f9c52f5c91c8.tar.gz
add the option.mk file i forgot in last commits
Thanks rillig@ for catching this !
Diffstat (limited to 'chat/weechat')
-rw-r--r--chat/weechat/options.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/chat/weechat/options.mk b/chat/weechat/options.mk
new file mode 100644
index 00000000000..36c7e065a7e
--- /dev/null
+++ b/chat/weechat/options.mk
@@ -0,0 +1,30 @@
+# $NetBSD: options.mk,v 1.1 2006/10/02 21:02:03 tonio Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.weechat
+PKG_SUPPORTED_OPTIONS= python lua
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpython)
+.include "../../lang/python/extension.mk"
+CONFIGURE_ARGS+= --enable-python
+PLIST_SUBST+= WITHPYTHON=""
+.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=""
+.else
+CONFIGURE_ARGS+= --disable-lua
+PLIST_SUBST+= WITHLUA="@comment "
+.endif
+
+.if !empty(PKG_OPTIONS:Mpython) || !empty(PKG_OPTIONS:Mlua)
+PLIST_SUBST+= WITHPLUGIN=""
+.else
+PLIST_SUBST+= WITHPLUGIN="@comment "
+.endif