1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/www/zend-framework/Makefile

90 lines
2.0 KiB
Makefile

# Created by: Greg Larkin <glarkin@FreeBSD.org>
# $FreeBSD$
PORTNAME= ZendFramework
PORTVERSION= 2.3.3
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= https://packages.zendframework.com/releases/${DISTNAME}/
MAINTAINER= wg@FreeBSD.org
COMMENT= Framework for developing PHP web applications
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
CONFLICTS= ZendFramework-1.*
NO_ARCH= yes
NO_BUILD= yes
USE_PHP= spl
USES= gettext php:web tar:tgz
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP MEMCACHE
OPTIONS_DEFAULT=REQPHP
MYSQL_DESC= Enable MySQL PDO support
MYSQLI_DESC= Enable MySQLi support
DBLIB_DESC= Enable DBLIB PDO support
PGSQL_DESC= Enable PostgreSQL PDO support
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
.include <bsd.port.pre.mk>
# Add all of the required and/or optional PHP extension dependencies,
# if chosen by the user.
.if ${PORT_OPTIONS:MREQPHP}
USE_PHP+= ctype curl dom gd hash iconv mbstring ldap mcrypt \
opcache pcre pdo session simplexml soap sqlite3 wddx xml zlib
.endif
.if ${PORT_OPTIONS:MOPTPHP}
USE_PHP+= bcmath bitset json posix
.endif
.if ${PORT_OPTIONS:MMEMCACHE}
USE_PHP+= memcache memcached
.endif
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= pdo_mysql
.endif
.if ${PORT_OPTIONS:MMYSQLI}
USE_PHP+= mysqli
.endif
.if ${PORT_OPTIONS:MDBLIB}
USE_PHP+= pdo_dblib
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pdo_pgsql
.endif
.if ${PORT_OPTIONS:MODBC}
USE_PHP+= pdo_odbc
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= pdo_sqlite
.endif
do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} "library bin resources" ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.post.mk>