freebsd-ports/www/zend-framework/Makefile
Alejandro Pulver 84816b0d94 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>
2006-11-07 16:58:09 +00:00

88 lines
2.3 KiB
Makefile

# 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>