blob: 95965beb57bb8c7f3259a63ca7b02b8ca90079f7 (
plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# New ports collection makefile for: zend-framework
# Date created: 31 October 2006
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ZendFramework
PORTVERSION= 1.10.3
CATEGORIES= www
MASTER_SITES= http://framework.zend.com/releases/${DISTNAME}/ \
GENTOO/distfiles
.if !defined(NOPORTDOCS)
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-${PORTVERSION}-manual-en${EXTRACT_SUFX}
.endif
MAINTAINER= glarkin@FreeBSD.org
COMMENT= A framework for developing PHP web applications
NO_BUILD= yes
USE_PHP= spl
WANT_PHP_WEB= yes
IGNORE_WITH_PHP=4
USE_GETTEXT= yes
SUB_FILES= pkg-message
OPTIONS= \
EDOJO "Install embedded Dojo" On \
PDOJO "Install Dojo from ports" Off \
MYSQL "Install MySQL PDO support" Off \
MYSQLI "Install MySQLi support" Off \
DBLIB "Install DBLIB PDO support" Off \
PGSQL "Install PostgreSQL PDO support" Off \
ODBC "Install ODBC PDO support" Off \
SQLITE "Install SQLite v3 PDO support" Off \
REQPHP "Install required PHP dependencies" On \
OPTPHP "Install optional PHP dependencies" Off
.include <bsd.port.pre.mk>
# Check for mutually-exclusive options
.if defined(WITH_EDOJO) && defined(WITH_PDOJO)
IGNORE= please select only one type of Dojo installation
.endif
INSTALL_DIRS= library extras/library
.if defined(WITH_EDOJO)
DOJO= ""
INSTALL_DIRS+= externals/dojo/dijit externals/dojo/dojo \
externals/dojo/dojox externals/dojo/util
CONFLICTS+= dojo-1.*
.else
DOJO= "@comment "
.endif
PLIST_SUB+= DOJO=${DOJO}
.if defined(WITH_PDOJO)
RUN_DEPENDS+= dojo>=0:${PORTSDIR}/www/dojo
.endif
# Add all of the required and/or optional PHP extension dependencies,
# if chosen by the user.
#
# See http://framework.zend.com/manual/en/requirements.html for
# a table of what PHP extensions are required for what ZF classes.
.if defined(WITH_REQPHP)
USE_PHP+= apc ctype curl dom gd hash iconv mbstring ldap mcrypt \
memcache pcre pdo session simplexml soap spl \
sqlite xml zlib
.endif
.if defined(WITH_OPTPHP)
USE_PHP+= bcmath bitset json posix
.endif
.if defined(WITH_MYSQL)
USE_PHP+= pdo_mysql
.endif
.if defined(WITH_MYSQLI)
USE_PHP+= mysqli
.endif
.if defined(WITH_DBLIB)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_dblib.so:${PORTSDIR}/databases/php5-pdo_dblib
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
.endif
.if defined(WITH_ODBC)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php5-pdo_odbc
.endif
.if defined(WITH_SQLITE)
USE_PHP+= pdo_sqlite
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${INSTALL_DIRS}" ${DATADIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${DATADIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${DATADIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
@cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} zf.sh ${PREFIX}/bin/zf
@cd ${WRKSRC}/bin && ${INSTALL_DATA} zf.php ${PREFIX}/bin/zf.php
.if !defined(NOPORTEXAMPLES)
@cd ${WRKSRC} && ${COPYTREE_SHARE} "demos tests" ${EXAMPLESDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EXAMPLESDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${EXAMPLESDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
.endif
# Maintainer-mode target to speed up fixup of output from genplist
fix-new-plist:
@if [ -f pkg-plist.new ]; then \
${PERL} -ni.bak -e \
's#^(.*%%DATADIR%%/externals)#%%DOJO%%$$1#g; \
print;' pkg-plist.new; \
else \
${ECHO_CMD} Please run genplist to create pkg-plist.new; \
fi
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} "INSTALL.txt README.txt" ${DOCSDIR}
@${INSTALL} -d ${DOCSDIR}/manual
@cd ${WRKSRC}/documentation/manual/core/en && \
${COPYTREE_SHARE} . ${DOCSDIR}/manual
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|