2015-08-11 14:39:18 +02:00
|
|
|
# $NetBSD: options.mk,v 1.7 2015/08/11 12:39:18 jperkin Exp $
|
2007-01-24 20:37:20 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.apr-util
|
2015-08-11 14:39:18 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= db4 ldap mysql pgsql sqlite3 ssl
|
2007-01-24 20:37:20 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2015-08-11 14:39:18 +02:00
|
|
|
PLIST_VARS+= db4 ldap mysql pgsql sqlite3 ssl
|
2008-09-08 11:58:43 +02:00
|
|
|
|
2007-01-24 20:37:20 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdb4)
|
2010-06-02 15:14:47 +02:00
|
|
|
BDB_ACCEPTED= db4 db5
|
|
|
|
BUILDLINK_TRANSFORM+= l:db4:${BDB_TYPE}
|
|
|
|
CONFIGURE_ARGS+= --with-berkeley-db=${BDBBASE}/include:${LOCALBASE}
|
|
|
|
PLIST.db4= yes
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2007-01-24 20:37:20 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-dbm=sdbm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
2008-09-08 11:58:43 +02:00
|
|
|
PLIST.ldap= yes
|
2007-01-24 20:37:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
|
|
|
.endif
|
2008-09-08 11:58:43 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
|
|
PLIST.mysql= yes
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
|
|
PLIST.pgsql= yes
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
2009-11-23 23:57:52 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
2008-09-08 11:58:43 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msqlite3)
|
|
|
|
PLIST.sqlite3= yes
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite3
|
|
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
2008-09-18 23:30:52 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite3
|
2008-09-08 11:58:43 +02:00
|
|
|
.endif
|
2015-08-11 14:39:18 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
|
|
|
PLIST.ssl= yes
|
|
|
|
CONFIGURE_ARGS+= --with-crypto
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
|
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-crypto
|
|
|
|
.endif
|