1 # $NetBSD: options.mk,v 1.15 2012/06/16 23:06:07 wiz Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.xchat
4 PKG_SUPPORTED_OPTIONS
= inet6 ssl socks5 mitshm gnome
5 PKG_OPTIONS_GROUP.spell
= libsexy gtkspell
6 PKG_OPTIONS_OPTIONAL_GROUPS
= spell
7 PKG_SUGGESTED_OPTIONS
= inet6 ssl
9 .
include "../../mk/bsd.options.mk"
14 ### Use OpenSSL libraries for connecting to ircs servers
16 .if
!empty
(PKG_OPTIONS
:Mssl
)
17 .
include "../../security/openssl/buildlink3.mk"
18 CONFIGURE_ARGS
+= --enable-openssl
=${SSLBASE
:Q
}
20 CONFIGURE_ARGS
+= --enable-openssl
=no
24 ### Support for connecting thru SOCKS servers
26 .if
!empty
(PKG_OPTIONS
:Msocks5
)
27 CONFIGURE_ARGS
+= --enable-socks
33 .if
!empty
(PKG_OPTIONS
:Minet6
)
34 CONFIGURE_ARGS
+= --enable-ipv6
38 ### MIT-SHM extension support (for "fast tinting")
40 .if
!empty
(PKG_OPTIONS
:Mmitshm
)
41 CONFIGURE_ARGS
+= --enable-shm
43 CONFIGURE_ARGS
+= --disable-shm
49 .if
!empty
(PKG_OPTIONS
:Mgnome
)
50 CONFIGURE_ARGS
+= --enable-dbus
53 SUBST_STAGE.gconf
= pre-configure
54 SUBST_MESSAGE.gconf
= Disabling schema registration
/installation.
55 SUBST_SED.gconf
+= -e
's,DO_GCONF_TRUE,DO_GCONF_FALSE,g'
56 SUBST_FILES.gconf
+= src
/common
/dbus
/Makefile.in
57 .
include "../../devel/GConf/schemas.mk"
58 .
include "../../sysutils/dbus-glib/buildlink3.mk"
60 # We set this to ${FALSE} to avoid detection.
61 CONFIGURE_ARGS
+= --disable-dbus
65 ### Support for spell checking
67 .if
!empty
(PKG_OPTIONS
:Mgtkspell
)
68 CONFIGURE_ARGS
+= --enable-spell
=gtkspell
69 .
include "../../textproc/gtkspell/buildlink3.mk"
70 .elif
!empty
(PKG_OPTIONS
:Mlibsexy
)
71 CONFIGURE_ARGS
+= --enable-spell
=libsexy
72 .
include "../../devel/libsexy/buildlink3.mk"
74 CONFIGURE_ARGS
+= --enable-spell
=none