Merge from vendor branch TNF:
[pkgsrcv2.git] / chat / xchat / options.mk
1 # $NetBSD: options.mk,v 1.13 2009/07/22 09:01:21 wiz Exp $
2
3 .include "../../mk/bsd.prefs.mk"
4
5
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
11
12 .include "../../mk/bsd.options.mk"
13
14 PLIST_VARS+=            dbus
15
16 ###
17 ### Use OpenSSL libraries for connecting to ircs servers
18 ###
19 .if !empty(PKG_OPTIONS:Mssl)
20 .       include "../../security/openssl/buildlink3.mk"
21 CONFIGURE_ARGS+=        --enable-openssl=${SSLBASE:Q}
22 .else
23 CONFIGURE_ARGS+=        --enable-openssl=no
24 .endif
25
26 ###
27 ### Support for connecting thru SOCKS servers
28 ###
29 .if !empty(PKG_OPTIONS:Msocks5)
30 CONFIGURE_ARGS+=        --enable-socks
31 .endif
32
33 ###
34 ### IPv6 support.
35 ###
36 .if !empty(PKG_OPTIONS:Minet6)
37 CONFIGURE_ARGS+=        --enable-ipv6
38 .endif
39
40 ###
41 ### MIT-SHM extension support (for "fast tinting")
42 ###
43 .if !empty(PKG_OPTIONS:Mmitshm)
44 CONFIGURE_ARGS+=        --enable-shm
45 .else
46 CONFIGURE_ARGS+=        --disable-shm
47 .endif
48
49 ###
50 ### GNOME support
51 ###
52 .if !empty(PKG_OPTIONS:Mgnome)
53 CONFIGURE_ARGS+=        --enable-dbus
54 PLIST.dbus=             yes
55 SUBST_CLASSES+=         gconf
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"
62 .else
63 # We set this to ${FALSE} to avoid detection.
64 CONFIGURE_ARGS+=        --disable-dbus
65 .endif
66
67 ###
68 ### Support for spell checking
69 ###
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"
76 .else
77 CONFIGURE_ARGS+=        --enable-spell=none
78 .endif