1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00

www/zend-framework: Make memcache dependency optional

PR:		213384
Submitted by:	Fredrik Eriksson
This commit is contained in:
William Grzybowski 2016-10-13 13:15:07 +00:00
parent 15e66fb575
commit 84d8327dd1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423913

View File

@ -3,7 +3,7 @@
PORTNAME= ZendFramework
PORTVERSION= 2.3.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://packages.zendframework.com/releases/${DISTNAME}/
@ -21,7 +21,7 @@ USES= gettext tar:tgz
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP
OPTIONS_DEFINE= DOCS MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP MEMCACHE
OPTIONS_DEFAULT=REQPHP
MYSQL_DESC= Enable MySQL PDO support
@ -32,6 +32,7 @@ ODBC_DESC= Enable ODBC PDO support
SQLITE_DESC= Enable SQLite v3 PDO support
REQPHP_DESC= Install required PHP dependencies
OPTPHP_DESC= Install optional PHP dependencies
MEMCACHE_DESC= Enable memcache support
PORTDOCS= CHANGELOG.md INSTALL.md README-GIT.md CONTRIBUTING.md README.md
@ -47,13 +48,18 @@ USE_PHP+= sqlite
.else
USE_PHP+= sqlite3
.endif
RUN_DEPENDS+= pecl-memcache>=0:databases/pecl-memcache \
pecl-memcached>=0:databases/pecl-memcached
.endif
.if ${PORT_OPTIONS:MOPTPHP}
USE_PHP+= bcmath bitset json posix
.endif
.if ${PORT_OPTIONS:MMCACHE}
RUN_DEPENDS+= pecl-memcache>=0:databases/pecl-memcache \
pecl-memcached>=0:databases/pecl-memcached
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= pdo_mysql
.endif