2008-05-11 21:10:30 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2008/05/11 19:10:30 tonio Exp $
|
2006-10-02 23:02:03 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.weechat
|
2008-05-11 21:10:30 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= charset gnutls python lua wide-curses
|
2007-01-15 21:25:01 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= charset
|
2006-10-02 23:02:03 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= charset lua plugin python
|
|
|
|
|
2007-01-15 21:25:01 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mcharset)
|
|
|
|
CONFIGURE_ARGS+= --enable-charset
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.charset= yes
|
2007-01-15 21:25:01 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-charset
|
|
|
|
.endif
|
|
|
|
|
2007-06-11 00:20:09 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgnutls)
|
|
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2008-05-11 21:10:30 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mwide-curses)
|
|
|
|
.include "../../devel/ncursesw/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2006-10-02 23:02:03 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-python
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.python= yes
|
2006-10-02 23:02:03 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mlua)
|
|
|
|
.include "../../lang/lua/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-lua
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.lua= yes
|
2006-10-02 23:02:03 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lua
|
|
|
|
.endif
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpython) || \
|
|
|
|
!empty(PKG_OPTIONS:Mlua) || \
|
|
|
|
!empty(PKG_OPTIONS:Mcharset)
|
|
|
|
PLIST.plugin= yes
|
2006-10-02 23:02:03 +02:00
|
|
|
.endif
|