aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2013-11-13 14:32:04 +0800
committerkevlo <kevlo@FreeBSD.org>2013-11-13 14:32:04 +0800
commitc3da072def973453188b1c34471f881c54981834 (patch)
tree6aec2979d0c3a8ad3262321616c947e41e427448 /www
parent01983a503c3b17a813cf897e408dedf369eac82f (diff)
downloadfreebsd-ports-gnome-c3da072def973453188b1c34471f881c54981834.tar.gz
freebsd-ports-gnome-c3da072def973453188b1c34471f881c54981834.tar.zst
freebsd-ports-gnome-c3da072def973453188b1c34471f881c54981834.zip
Add database backend selection.
PR: ports/183839 Submitted by: Spil <spil.oss at gmail dot com>
Diffstat (limited to 'www')
-rw-r--r--www/owncloud/Makefile24
1 files changed, 22 insertions, 2 deletions
diff --git a/www/owncloud/Makefile b/www/owncloud/Makefile
index 025af4fb5d5d..4770e38998df 100644
--- a/www/owncloud/Makefile
+++ b/www/owncloud/Makefile
@@ -2,6 +2,7 @@
PORTNAME= owncloud
PORTVERSION= 5.0.13
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://download.owncloud.org/community/
@@ -15,8 +16,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_BZIP2= yes
USE_PHP= ctype curl dom fileinfo filter gd hash iconv json ldap \
- mbstring mysql openssl pdo pdo_mysql pdo_pgsql pdo_sqlite \
- session simplexml sqlite3 xml xmlreader xsl wddx zip zlib
+ mbstring openssl pdo session simplexml xml xmlreader \
+ xsl wddx zip zlib
WANT_PHP_WEB= yes
DEFAULT_PHP_VER=5
@@ -26,6 +27,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
SUB_FILES= pkg-message
+OPTIONS_MULTI= DB
+OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
+OPTIONS_DEFAULT= SQLITE
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMYSQL}
+USE_MYSQL= client
+USE_PHP+= mysql pdo_mysql
+.endif
+
+.if ${PORT_OPTIONS:MPGSQL}
+USE_PGSQL= yes
+USE_PHP+= pgsql pdo_pgsql
+.endif
+
+.if ${PORT_OPTIONS:MSQLITE}
+USE_PHP+= sqlite3 pdo_sqlite
+.endif
+
do-install:
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}