1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/www/zend-framework1/Makefile
William Grzybowski c060db7dbd www/zend-framework1: change master site to https
- HTTP is a 301 Moved Permanently to HTTPS

Reported by:	pkg-fallout
2013-11-06 11:33:13 +00:00

113 lines
3.1 KiB
Makefile

# Created by: Greg Larkin <glarkin@FreeBSD.org>
# $FreeBSD$
PORTNAME= ZendFramework
PORTVERSION= 1.12.3
CATEGORIES= www
MASTER_SITES= https://packages.zendframework.com/releases/${DISTNAME}/
PKGNAMESUFFIX= 1
MAINTAINER= wg@FreeBSD.org
COMMENT= Framework for developing PHP web applications
LICENSE= BSD
NO_BUILD= yes
USE_PHP= spl
WANT_PHP_WEB= yes
USES= gettext
CONFLICTS= ZendFramework-2.*
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP
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
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-${PORTVERSION}-manual-en${EXTRACT_SUFX}
.endif
INSTALL_DIRS= library extras/library externals/dojo/dijit \
externals/dojo/dojo externals/dojo/dojox \
externals/dojo/util
# Add all of the required and/or optional PHP extension dependencies,
# if chosen by the user.
#
# See http://framework.zend.com/manual/1.12/en/requirements.introduction.html
# for a table of what PHP extensions are required for what ZF classes.
.if ${PORT_OPTIONS:MREQPHP}
USE_PHP+= apc ctype curl dom gd hash iconv mbstring ldap mcrypt \
pcre pdo session simplexml soap \
wddx xml zlib
.if ${PHP_VER} == 52
USE_PHP+= sqlite
.else
USE_PHP+= sqlite3
.endif
RUN_DEPENDS+= pecl-memcache>=0:${PORTSDIR}/databases/pecl-memcache \
pecl-memcached>=0:${PORTSDIR}/databases/pecl-memcached
.endif
.if ${PORT_OPTIONS:MOPTPHP}
USE_PHP+= bcmath bitset json posix
.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} "${INSTALL_DIRS}" ${STAGEDIR}${DATADIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${DATADIR}
@${FIND} ${STAGEDIR}${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${STAGEDIR}${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} zf.sh ${STAGEDIR}${PREFIX}/bin/zf
@cd ${WRKSRC}/bin && ${INSTALL_DATA} zf.php ${STAGEDIR}${PREFIX}/bin/zf.php
@cd ${WRKSRC} && ${COPYTREE_SHARE} "demos tests" ${STAGEDIR}${EXAMPLESDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${EXAMPLESDIR}
@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${STAGEDIR}${EXAMPLESDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/manual
@cd ${WRKSRC} && ${COPYTREE_SHARE} "INSTALL.txt README.txt" ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/documentation/manual/core/en && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/manual
.endif
.include <bsd.port.post.mk>