diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-07 16:58:09 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-07 16:58:09 +0000 |
commit | 84816b0d943d285884c2dee537a6d876762740e9 (patch) | |
tree | 94ad9eef181df8ebcb2adb1c117f1bd61fdf96ec /www/zend-framework/Makefile | |
parent | 592c6d46ef0ce26b789b7c48b125ca279623044a (diff) | |
download | ports-84816b0d943d285884c2dee537a6d876762740e9.tar.gz ports-84816b0d943d285884c2dee537a6d876762740e9.zip |
This is a port of the Zend Framework. The Zend Framework aims to
provide an architecture for developing entire applications with no
other library dependencies. This code will always be actively developed,
tested, and supported by Zend and the PHP Collaboration Project.
WWW: http://framework.zend.com/
- Greg Larkin
glarkin@sourcehosting.net
PR: ports/105094
Submitted by: Greg Larkin <glarkin at sourcehosting.net>
Notes
Notes:
svn path=/head/; revision=176723
Diffstat (limited to 'www/zend-framework/Makefile')
-rw-r--r-- | www/zend-framework/Makefile | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/www/zend-framework/Makefile b/www/zend-framework/Makefile new file mode 100644 index 000000000000..5ec641eafefc --- /dev/null +++ b/www/zend-framework/Makefile @@ -0,0 +1,88 @@ +# New ports collection makefile for: zend-framework +# Date created: 31 October 2006 +# Whom: Greg Larkin <glarkin@sourcehosting.net> +# +# $FreeBSD$ +# + +PORTNAME= ZendFramework +PORTVERSION= 0.2.0 +CATEGORIES= www +MASTER_SITES= http://framework.zend.com/releases/ +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= glarkin@sourcehosting.net +COMMENT= A framework for developing PHP web applications + +NO_BUILD= yes +USE_PHP= pcre +WANT_PHP_WEB= yes + +SUB_FILES= pkg-message +SUB_LIST= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} + +OPTIONS= MYSQL "Install MySQL PDO support" Off \ + DBLIB "Install DBLIB PDO support" Off \ + PGSQL "Install PostgreSQL PDO support" Off \ + OCI "Install Oracle OCI 8 PDO support" Off \ + ODBC "Install ODBC PDO support" Off \ + SQLITE "Install SQLite v3 PDO support" Off + +.include <bsd.port.pre.mk> + +DEFAULT_PHP_VER=5 +IGNORE_WITH_PHP=4 + +DB_DEFINED= no + +.if defined(WITH_MYSQL) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_mysql.so:${PORTSDIR}/databases/pecl-PDO_MYSQL +DB_DEFINED= yes +.endif + +.if defined(WITH_DBLIB) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_dblib.so:${PORTSDIR}/databases/pecl-PDO_DBLIB +DB_DEFINED= yes +.endif + +.if defined(WITH_PGSQL) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/pecl-PDO_PGSQL +DB_DEFINED= yes +.endif + +.if defined(WITH_OCI) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_oci.so:${PORTSDIR}/databases/pecl-PDO_OCI +DB_DEFINED= yes +.endif + +.if defined(WITH_ODBC) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/pecl-PDO_ODBC +DB_DEFINED= yes +.endif + +.if defined(WITH_SQLITE) +DB_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_sqlite.so:${PORTSDIR}/databases/pecl-PDO_SQLITE +DB_DEFINED= yes +.endif + +.if ${DB_DEFINED} == "yes" +RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo.so:${PORTSDIR}/databases/pecl-PDO \ + ${DB_DEPENDS} +.endif + +# Fix USE_PHP after bsd.port.pre.mk +.include "${PORTSDIR}/Mk/bsd.php.mk" + +do-install: + @${MKDIR} ${DATADIR} + ${CP} -R ${WRKSRC}/* ${DATADIR} + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR} + ${FIND} ${DATADIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 + ${FIND} ${DATADIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |