2021-03-04 17:42:44 +01:00
|
|
|
# $NetBSD: options.mk,v 1.9 2021/03/04 16:42:44 ryoon Exp $
|
2011-12-18 09:38:14 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.php-owncloud
|
|
|
|
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= db
|
2015-03-21 22:48:52 +01:00
|
|
|
PKG_OPTIONS_GROUP.db= mysql sqlite3 pgsql
|
2011-12-18 09:38:14 +01:00
|
|
|
|
2015-03-21 22:48:52 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= sqlite3
|
2011-12-18 09:38:14 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
2013-01-25 21:02:24 +01:00
|
|
|
### Use mysql, pgsql, or sqlite backend
|
2011-12-18 09:38:14 +01:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
2015-03-21 22:48:52 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=5.2.0:../../databases/php-pdo_mysql
|
|
|
|
.elif !empty(PKG_OPTIONS:Msqlite3)
|
2021-03-04 17:42:44 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-sqlite3>=5.4.0:../../databases/php-sqlite3
|
2012-06-17 20:27:19 +02:00
|
|
|
# php-pdo_sqlite provides sqlite3. An owncloud instance that was
|
|
|
|
# installed as version 2 and upgraded to 3 and then 4
|
|
|
|
# complained/failed that PDO was not present.
|
2016-12-18 09:28:08 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=5.4.0:../../databases/php-pdo_sqlite
|
2013-01-25 21:02:24 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Mpgsql)
|
2016-12-18 09:28:08 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=5.4.0:../../databases/php-pdo_pgsql
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5.4.0:../../databases/php-pgsql
|
2011-12-18 09:38:14 +01:00
|
|
|
.endif
|