40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile.options,v 1.1 2004/07/31 00:01:04 xtraeme Exp $
|
|
#
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
|
|
PKG_SUPPORTED_OPTIONS= db mysql mysql4 pgsql ldap pam
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.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 "../../databases/mysql-client/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql4)
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
|
|
. include "../../databases/mysql4-client/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 "../../security/PAM/buildlink3.mk"
|
|
.endif
|