blob: 5ec641eafefcf98fed81fa87ee323fd7aab6da0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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>
|