summaryrefslogtreecommitdiff
path: root/chat/inspircd/options.mk
blob: 68b234b1a5a4d4f04332c42cf127ba423ad6bca7 (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
# $NetBSD: options.mk,v 1.6 2019/03/02 11:12:38 nia Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.inspircd
PKG_SUPPORTED_OPTIONS=		geoip gnutls openssl mysql ldap pcre pgsql sqlite3
PKG_SUGGESTED_OPTIONS=		gnutls
PLIST_VARS+=			geoip gnutls openssl mysql ldap pcre pgsql sqlite3

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

.if !empty(PKG_OPTIONS:Mgeoip)
PLIST.geoip=		yes
INSPIRCD_EXTRAS+=	m_geoip.cpp
.include "../../net/GeoIP/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mgnutls)
PLIST.gnutls=		yes
CONFIGURE_ARGS+=	--enable-gnutls
.include "../../security/gnutls/buildlink3.mk"
.endif

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

.if !empty(PKG_OPTIONS:Mmysql)
PLIST.mysql=		yes
INSPIRCD_EXTRAS+=	m_mysql.cpp
.include "../../mk/mysql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mldap)
PLIST.ldap=		yes
INSPIRCD_EXTRAS+=	m_ldapauth.cpp
INSPIRCD_EXTRAS+=	m_ldapoper.cpp
.include "../../databases/openldap-client/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mpcre)
PLIST.pcre=		yes
INSPIRCD_EXTRAS+=	m_regex_pcre.cpp
.include "../../devel/pcre/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
PLIST.pgsql=		yes
INSPIRCD_EXTRAS+=	m_pgsql.cpp
.include "../../mk/pgsql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Msqlite3)
PLIST.sqlite3=		yes
INSPIRCD_EXTRAS+=	m_sqlite3.cpp
.include "../../databases/sqlite3/buildlink3.mk"
.endif