blob: 60113456aea5432b10ddd06a7f6a27c1d962ad70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# $NetBSD: options.mk,v 1.3 2012/07/10 13:20:19 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.php-owncloud
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= mysql sqlite
PKG_SUGGESTED_OPTIONS= sqlite
.include "../../mk/bsd.options.mk"
###
### Use mysql or sqlite backend
###
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.2.0:../../databases/php-mysql
.elif !empty(PKG_OPTIONS:Msqlite)
# php-sqlite provides sqlite2
#DEPENDS+= ${PHP_PKG_PREFIX}-sqlite>=5.2.0:../../databases/php-sqlite
# 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
.endif
|