blob: c099b5299526ece9ddf7bf0c07b89648f228f0ad (
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
|
# $NetBSD: options.mk,v 1.14 2007/05/26 13:33:56 xtraeme Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
PKG_OPTIONS_REQUIRED_GROUPS= auth storage sasl
# Authentication backend
PKG_OPTIONS_GROUP.auth= auth-mysql auth-pgsql auth-sqlite
PKG_OPTIONS_GROUP.auth+= auth-db auth-ldap auth-pam
# Storage backend
PKG_OPTIONS_GROUP.storage= storage-mysql storage-pgsql
PKG_OPTIONS_GROUP.storage+= storage-sqlite storage-db
# SASL implementation
PKG_OPTIONS_GROUP.sasl= cyrus-sasl gnusasl
PKG_SUGGESTED_OPTIONS= auth-sqlite storage-sqlite gnusasl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mauth-db) || !empty(PKG_OPTIONS:Mstorage-db)
PLIST_SUBST+= DB_OPT=
CONFIGURE_ARGS+= --enable-db
. include "../../databases/db4/buildlink3.mk"
.else
PLIST_SUBST+= DB_OPT='@comment '
CONFIGURE_ARGS+= --disable-db
.endif
.if !empty(PKG_OPTIONS:Mauth-mysql) || !empty(PKG_OPTIONS:Mstorage-mysql)
PLIST_SUBST+= MYSQL_OPT=
CONFIGURE_ARGS+= --enable-mysql
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
. include "../../mk/mysql.buildlink3.mk"
.else
PLIST_SUBST+= MYSQL_OPT='@comment '
CONFIGURE_ARGS+= --disable-mysql
.endif
.if !empty(PKG_OPTIONS:Mauth-pgsql) || !empty(PKG_OPTIONS:Mstorage-pgsql)
PLIST_SUBST+= PGSQL_OPT=
CONFIGURE_ARGS+= --enable-pgsql
. include "../../mk/pgsql.buildlink3.mk"
.else
PLIST_SUBST+= PGSQL_OPT='@comment '
CONFIGURE_ARGS+= --disable-pgsql
.endif
.if !empty(PKG_OPTIONS:Mauth-sqlite) || !empty(PKG_OPTIONS:Mstorage-sqlite)
PLIST_SUBST+= SQLITE_OPT=
CONFIGURE_ARGS+= --enable-sqlite
. include "../../databases/sqlite3/buildlink3.mk"
.else
PLIST_SUBST+= SQLITE_OPT='@comment '
CONFIGURE_ARGS+= --disable-sqlite
.endif
.if !empty(PKG_OPTIONS:Mauth-ldap)
PLIST_SUBST+= LDAP_OPT=
CONFIGURE_ARGS+= --enable-ldap
. include "../../databases/openldap-client/buildlink3.mk"
.else
PLIST_SUBST+= LDAP_OPT='@comment '
CONFIGURE_ARGS+= --disable-ldap
.endif
.if !empty(PKG_OPTIONS:Mcyrus-sasl)
CONFIGURE_ARGS+= --enable-cyrus
. include "../../security/cyrus-sasl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-cyrus
.endif
.if !empty(PKG_OPTIONS:Mgnusasl)
CONFIGURE_ARGS+= --enable-gsasl
. include "../../security/gsasl/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-gsasl
.endif
.if !empty(PKG_OPTIONS:Mauth-pam)
PLIST_SUBST+= PAM_OPT=
CONFIGURE_ARGS+= --enable-pam
. include "../../mk/pam.buildlink3.mk"
.else
PLIST_SUBST+= PAM_OPT='@comment '
CONFIGURE_ARGS+= --disable-pam
.endif
|