2014-02-24 20:30:53 +01:00
|
|
|
# $NetBSD: options.mk,v 1.26 2014/02/24 19:30:53 schnoebe Exp $
|
2004-07-31 02:01:04 +02:00
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
|
2014-02-24 20:30:53 +01:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= auth storage mio
|
2007-05-26 13:50:12 +02:00
|
|
|
# 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
|
2009-09-06 06:18:11 +02:00
|
|
|
# mio implementations
|
|
|
|
PKG_OPTIONS_GROUP.mio= mio-kqueue mio-select mio-poll mio-epoll
|
2009-08-21 04:28:12 +02:00
|
|
|
# debugging
|
2007-06-12 23:17:34 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= debug
|
2009-09-06 06:18:11 +02:00
|
|
|
|
2014-02-24 20:30:53 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= auth-sqlite storage-sqlite
|
2009-09-06 06:18:11 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= mio-select mio-poll
|
2005-05-31 12:01:36 +02:00
|
|
|
|
2004-07-31 02:01:04 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-08-21 04:28:12 +02:00
|
|
|
PLIST_VARS+= db ldap mysql pam pgsql sqlite
|
|
|
|
|
2007-05-26 13:50:12 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mauth-db) || !empty(PKG_OPTIONS:Mstorage-db)
|
2010-07-06 02:01:35 +02:00
|
|
|
BDB_ACCEPTED= db4 db5
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-db
|
2009-08-21 04:28:12 +02:00
|
|
|
PLIST.db= yes
|
2010-06-02 15:14:47 +02:00
|
|
|
BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE}
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2007-05-26 13:50:12 +02:00
|
|
|
.else
|
|
|
|
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)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.mysql= yes
|
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
|
|
|
|
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)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.pgsql= yes
|
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
|
|
|
|
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)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.sqlite= yes
|
2007-05-26 13:50:12 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-sqlite
|
|
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sqlite
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-ldap)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.ldap= yes
|
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
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-pam)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.pam= yes
|
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
|
|
|
|
CONFIGURE_ARGS+= --disable-pam
|
2004-07-31 02:01:04 +02:00
|
|
|
.endif
|
2007-06-12 23:17:34 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2009-08-21 04:28:12 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-developer
|
2009-09-06 06:18:11 +02:00
|
|
|
# CONFIGURE_ARGS+= --enable-nad-debug
|
|
|
|
# CONFIGURE_ARGS+= --enable-pool-debug
|
|
|
|
# CONFIGURE_ARGS+= --enable-mio-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-kqueue)
|
|
|
|
CONFIGURE_ARGS+= --enable-mio=kqueue
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-epoll)
|
|
|
|
CONFIGURE_ARGS+= --enable-mio=epoll
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-poll)
|
|
|
|
CONFIGURE_ARGS+= --enable-mio=poll
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-select)
|
|
|
|
CONFIGURE_ARGS+= --enable-mio=select
|
2007-06-12 23:17:34 +02:00
|
|
|
.endif
|