Date: Wed, 13 Nov 2013 06:32:04 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333654 - head/www/owncloud Message-ID: <201311130632.rAD6W4JR098396@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Wed Nov 13 06:32:04 2013 New Revision: 333654 URL: http://svnweb.freebsd.org/changeset/ports/333654 Log: Add database backend selection. PR: ports/183839 Submitted by: Spil <spil.oss at gmail dot com> Modified: head/www/owncloud/Makefile Modified: head/www/owncloud/Makefile ============================================================================== --- head/www/owncloud/Makefile Wed Nov 13 06:31:00 2013 (r333653) +++ head/www/owncloud/Makefile Wed Nov 13 06:32:04 2013 (r333654) @@ -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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311130632.rAD6W4JR098396>