pkgsrc/www/php-owncloud/options.mk
taca 015da4dbf8 * Restrict PHP_VERSIONS_ACCEPTED to 55 and 56 since this package use
php-mysql.

Dose it really require php-mysql additonall to php-pdo_mysql?
2015-12-06 12:18:07 +00:00

28 lines
958 B
Makefile

# $NetBSD: options.mk,v 1.6 2015/12/06 12:18:07 taca Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.php-owncloud
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql sqlite3 pgsql
PKG_SUGGESTED_OPTIONS= sqlite3
.include "../../mk/bsd.options.mk"
###
### Use mysql, pgsql, or sqlite backend
###
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=5.2.0:../../databases/php-pdo_mysql
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.2.0:../../databases/php-mysql
PHP_VERSIONS_ACCEPTED= 55 56
.elif !empty(PKG_OPTIONS:Msqlite3)
# 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.
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=5.2.0:../../databases/php-pdo_sqlite
.elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=5.2.0:../../databases/php-pdo_pgsql
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=5.2.0:../../databases/php-pgsql
.endif