blob: 6d6d5f2ef6bc00e20f5e051f18648b80098c0615 (
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
|
# $NetBSD: options.mk,v 1.9 2005/05/31 11:24:32 dillo Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
PKG_SUPPORTED_OPTIONS= db mysql pgsql ldap pam
PKG_SUGGESTED_OPTIONS= mysql
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmysql) && !empty(PKG_OPTIONS:Mpgsql)
PKG_FAIL_REASON+= "Cannot use mysql and pgsql, use one of them."
.endif
.if !empty(PKG_OPTIONS:Mdb)
BUILD_DEFS+= JABBERD_DBDIR
JABBERD_DBDIR?= ${VARBASE}/db/jabberd
CONFIGURE_ARGS+= --enable-db
. include "../../databases/db4/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --enable-mysql
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
. include "../../mk/mysql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --enable-pgsql
. include "../../mk/pgsql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= --enable-ldap
. include "../../databases/openldap/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --enable-pam
. include "../../mk/pam.buildlink3.mk"
.endif
|