1 # $NetBSD: options.mk,v 1.13 2009/07/22 09:01:21 wiz Exp $
3 .include "../../mk/bsd.prefs.mk"
6 PKG_OPTIONS_VAR= PKG_OPTIONS.xchat
7 PKG_SUPPORTED_OPTIONS= inet6 ssl socks5 mitshm gnome
8 PKG_OPTIONS_GROUP.spell= libsexy gtkspell
9 PKG_OPTIONS_OPTIONAL_GROUPS= spell
10 PKG_SUGGESTED_OPTIONS= inet6 ssl
12 .include "../../mk/bsd.options.mk"
17 ### Use OpenSSL libraries for connecting to ircs servers
19 .if !empty(PKG_OPTIONS:Mssl)
20 . include "../../security/openssl/buildlink3.mk"
21 CONFIGURE_ARGS+= --enable-openssl=${SSLBASE:Q}
23 CONFIGURE_ARGS+= --enable-openssl=no
27 ### Support for connecting thru SOCKS servers
29 .if !empty(PKG_OPTIONS:Msocks5)
30 CONFIGURE_ARGS+= --enable-socks
36 .if !empty(PKG_OPTIONS:Minet6)
37 CONFIGURE_ARGS+= --enable-ipv6
41 ### MIT-SHM extension support (for "fast tinting")
43 .if !empty(PKG_OPTIONS:Mmitshm)
44 CONFIGURE_ARGS+= --enable-shm
46 CONFIGURE_ARGS+= --disable-shm
52 .if !empty(PKG_OPTIONS:Mgnome)
53 CONFIGURE_ARGS+= --enable-dbus
56 SUBST_STAGE.gconf+= pre-configure
57 SUBST_MESSAGE.gconf+= Disabling schema registration/installation.
58 SUBST_SED.gconf+= -e 's,DO_GCONF_TRUE,DO_GCONF_FALSE,g'
59 SUBST_FILES.gconf+= src/common/dbus/Makefile.in
60 . include "../../devel/GConf/schemas.mk"
61 . include "../../sysutils/dbus-glib/buildlink3.mk"
63 # We set this to ${FALSE} to avoid detection.
64 CONFIGURE_ARGS+= --disable-dbus
68 ### Support for spell checking
70 .if !empty(PKG_OPTIONS:Mgtkspell)
71 CONFIGURE_ARGS+= --enable-spell=gtkspell
72 . include "../../textproc/gtkspell/buildlink3.mk"
73 .elif !empty(PKG_OPTIONS:Mlibsexy)
74 CONFIGURE_ARGS+= --enable-spell=libsexy
75 . include "../../devel/libsexy/buildlink3.mk"
77 CONFIGURE_ARGS+= --enable-spell=none