2007-06-12 17:26:07 +02:00
|
|
|
# $NetBSD: options.mk,v 1.15 2007/06/12 15:26:07 xtraeme Exp $
|
2004-07-31 02:01:04 +02:00
|
|
|
#
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
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
|
2005-05-31 12:01:36 +02:00
|
|
|
|
2004-07-31 02:01:04 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mauth-db) || !empty(PKG_OPTIONS:Mstorage-db)
|
2007-06-12 17:26:07 +02:00
|
|
|
SUBST_CLASSES+= fixdb
|
|
|
|
SUBST_STAGE.fixdb= post-configure
|
|
|
|
SUBST_FILES.fixdb= storage/Makefile.in
|
|
|
|
SUBST_SED.fixdb= -e "s|@DB_LIBS@||g"
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-ldb
|
|
|
|
BDB_ACCEPTED= db4
|
2007-05-26 13:50:12 +02:00
|
|
|
PLIST_SUBST+= DB_OPT=
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-db
|
2007-06-12 17:26:07 +02:00
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= DB_OPT='@comment '
|
|
|
|
CONFIGURE_ARGS+= --disable-db
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mauth-mysql) || !empty(PKG_OPTIONS:Mstorage-mysql)
|
|
|
|
PLIST_SUBST+= MYSQL_OPT=
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
|
2004-10-29 09:07:44 +02:00
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= MYSQL_OPT='@comment '
|
|
|
|
CONFIGURE_ARGS+= --disable-mysql
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mauth-pgsql) || !empty(PKG_OPTIONS:Mstorage-pgsql)
|
|
|
|
PLIST_SUBST+= PGSQL_OPT=
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-pgsql
|
2004-07-31 02:01:04 +02:00
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= PGSQL_OPT='@comment '
|
|
|
|
CONFIGURE_ARGS+= --disable-pgsql
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.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=
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2006-05-31 20:22:23 +02:00
|
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.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
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mauth-pam)
|
|
|
|
PLIST_SUBST+= PAM_OPT=
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-pam
|
2005-01-14 06:15:39 +01:00
|
|
|
. include "../../mk/pam.buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= PAM_OPT='@comment '
|
|
|
|
CONFIGURE_ARGS+= --disable-pam
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|