2013-05-19 13:00:03 +02:00
|
|
|
# $NetBSD: options.mk,v 1.20 2013/05/19 11:00:03 shattered Exp $
|
2004-11-06 17:17:38 +01:00
|
|
|
|
2005-10-07 13:33:28 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.bacula
|
2013-05-19 13:00:03 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= ssl
|
2005-10-07 13:33:28 +02:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= database
|
2010-03-11 17:03:49 +01:00
|
|
|
PKG_OPTIONS_GROUP.database= catalog-sqlite3 catalog-pgsql catalog-mysql
|
|
|
|
PKG_SUGGESTED_OPTIONS= catalog-sqlite3
|
2004-11-06 17:17:38 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
2005-11-22 20:33:06 +01:00
|
|
|
|
2010-03-11 17:03:49 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mcatalog-sqlite3)
|
2005-11-22 20:48:32 +01:00
|
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3}
|
|
|
|
BACULA_DB= sqlite3
|
2005-11-22 20:33:06 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Mcatalog-pgsql)
|
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
2008-11-21 15:09:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX}
|
2005-11-22 20:33:06 +01:00
|
|
|
BACULA_DB= postgresql
|
|
|
|
.elif !empty(PKG_OPTIONS:Mcatalog-mysql)
|
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
2008-11-21 15:09:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
|
2005-11-22 20:33:06 +01:00
|
|
|
BACULA_DB= mysql
|
|
|
|
.endif
|
2007-02-15 10:08:05 +01:00
|
|
|
|
2008-12-07 01:44:40 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mssl)
|
2008-11-28 14:47:51 +01:00
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
|
2012-09-08 14:36:57 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2008-11-28 14:47:51 +01:00
|
|
|
.endif
|