summaryrefslogtreecommitdiff
path: root/chat/hexchat/options.mk
blob: babfa39973c8b744b917ee5753aa1ec3a711de21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# $NetBSD: options.mk,v 1.5 2017/03/28 16:18:25 khorben Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.hexchat
PKG_SUPPORTED_OPTIONS=	dbus gtk2 inet6 libcanberra libnotify libpci libproxy
PKG_SUPPORTED_OPTIONS+=	libsexy lua ntlm openssl perl python tests themes xft2
PKG_SUGGESTED_OPTIONS+=	gtk2 inet6 libproxy libsexy openssl xft2

PLIST_VARS+=		dbus gtk2 libpci lua perl python

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
PLIST.dbus=		yes
.else
CONFIGURE_ARGS+=	--disable-dbus
.endif

.if !empty(PKG_OPTIONS:Mgtk2)
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
PLIST.gtk2=		yes
.else
CONFIGURE_ARGS+=	--disable-gtkfe
.endif

.if empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if !empty(PKG_OPTIONS:Mlibcanberra)
.include "../../audio/libcanberra/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-libcanberra
.endif

.if !empty(PKG_OPTIONS:Mlibnotify)
.include "../../sysutils/libnotify/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-libnotify
.endif

.if !empty(PKG_OPTIONS:Mlibpci)
.include "../../sysutils/pciutils/buildlink3.mk"
.if ${OPSYS} == "NetBSD"
LIBS+=			-lpciutils
.else
LIBS+=			-lpci
.endif
PLIST.libpci=		yes
.endif

.if !empty(PKG_OPTIONS:Mlibproxy)
.include "../../www/libproxy/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-libproxy
.endif

.if !empty(PKG_OPTIONS:Mlua)
.include "../../lang/lua/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-lua
PLIST.lua=		yes
.else
CONFIGURE_ARGS+=	--disable-lua
.endif

.if !empty(PKG_OPTIONS:Mntlm)
.include "../../devel/libntlm/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-ntlm=yes
.else
CONFIGURE_ARGS+=	--enable-ntlm=no
.endif

.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--enable-openssl=no
.endif

.if !empty(PKG_OPTIONS:Mperl)
.include "../../lang/perl5/buildlink3.mk"
USE_TOOLS+=		perl
PLIST.perl=		yes
.else
CONFIGURE_ARGS+=	--disable-perl
.endif

.if !empty(PKG_OPTIONS:Mpython)
.include "../../lang/python/pyversion.mk"
PLIST.python=		yes
.else
CONFIGURE_ARGS+=	--enable-python=no
.endif

.if !empty(PKG_OPTIONS:Mlibsexy)
.include "../../devel/libsexy/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mtests)
CONFIGURE_ARGS+=	--enable-glibtest
.else
CONFIGURE_ARGS+=	--disable-glibtest
.endif

.if !empty(PKG_OPTIONS:Mthemes)
#BROKEN=			The themes option does not build at the moment.
.include "../../devel/monodevelop/buildlink3.mk"
CONFIGURE_ARGS+=	--with-theme-manager=on
.endif

.if !empty(PKG_OPTIONS:Mxft2)
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.endif