author | Jon Tibble <meths@btinternet.com> |
Fri, 10 Feb 2012 16:19:42 +0000 | |
branch | oi_151a |
changeset 114 | b6d40d0a7b17 |
parent 93 | 3b6624e0d022 |
child 198 | be4eee29f428 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
40 | 21 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 22 |
# |
40 | 23 |
#pragma ident "@(#)Makefile.sfw 1.40 10/07/09 SMI" |
0 | 24 |
|
25 |
PHP_REL=5.2 |
|
26 |
# |
|
27 |
# This value is generated based on the NAME and VERSION values in the METADATA |
|
28 |
# file in this directory. You should not update it directly, instead update |
|
29 |
# the METADATA file values that it is derived from. |
|
30 |
# |
|
31 |
PHP_VER=$(COMPONENT_VERSION:sh) |
|
32 |
PHP_DIR=php-$(PHP_VER) |
|
33 |
PHP_CGI=$(PHP_DIR)-cgi |
|
7 | 34 |
PHP_LOC=$(SRC)/cmd/php5 |
35 |
PHP_CGI_BIN=$(PHP_LOC)/$(PHP_DIR)-cgi/sapi/cgi/php-cgi |
|
6 | 36 |
PHP_NSAPI=$(PHP_DIR)-nsapi |
0 | 37 |
|
38 |
TOP_DIR=/usr/php/$(PHP_REL) |
|
6 | 39 |
MODULES_DIR=$(TOP_DIR)/modules |
0 | 40 |
CONF_DIR=/etc/php/$(PHP_REL) |
6 | 41 |
MODULES_CONF_DIR=$(CONF_DIR)/conf.d |
0 | 42 |
PEAR_DIR=/var/php/$(PHP_REL)/pear |
43 |
SAMPLES_DIR=$(TOP_DIR)/samples |
|
44 |
||
6 | 45 |
NSAPI_CONF_DIR=$(CONF_DIR)/nsapi |
46 |
ZTS_MODULES_DIR=$(TOP_DIR)/zts-modules |
|
47 |
ZTS_MODULES_CONF_DIR=$(CONF_DIR)/zts-conf.d |
|
48 |
||
0 | 49 |
MYSQL_VERSION=5.1 |
50 |
MYSQL_DIR=/usr/mysql/$(MYSQL_VERSION) |
|
51 |
MYSQL_LIBDIR=$(MYSQL_DIR)/lib/mysql |
|
52 |
||
53 |
SUHOSIN_VERSION=0.9.29 |
|
54 |
SUHOSIN_DIR=suhosin-$(SUHOSIN_VERSION) |
|
6 | 55 |
SUHOSIN_ZTS=$(SUHOSIN_DIR)-zts |
0 | 56 |
|
57 |
TCPWRAP_VERSION=1.1.3 |
|
58 |
TCPWRAP_DIR=tcpwrap-$(TCPWRAP_VERSION) |
|
6 | 59 |
TCPWRAP_ZTS=$(TCPWRAP_DIR)-zts |
0 | 60 |
|
61 |
IDN_VERSION=0.2.0 |
|
62 |
IDN_DIR=idn-$(IDN_VERSION) |
|
6 | 63 |
IDN_ZTS=$(IDN_DIR)-zts |
0 | 64 |
|
65 |
APC_VERSION=3.0.19 |
|
66 |
APC_DIR=APC-$(APC_VERSION) |
|
6 | 67 |
APC_ZTS=$(APC_DIR)-zts |
0 | 68 |
|
69 |
XDEBUG_VERSION=2.0.5 |
|
70 |
XDEBUG_DIR=xdebug-$(XDEBUG_VERSION) |
|
6 | 71 |
XDEBUG_ZTS=$(XDEBUG_DIR)-zts |
0 | 72 |
|
73 |
MEMCACHE_VERSION=2.2.5 |
|
74 |
MEMCACHE_DIR=memcache-$(MEMCACHE_VERSION) |
|
6 | 75 |
MEMCACHE_ZTS=$(MEMCACHE_DIR)-zts |
0 | 76 |
|
77 |
IMAP_CLIENT_VERSION=-2007e |
|
7 | 78 |
IMAP_CLIENT_DIR=$(PHP_LOC)/imap$(IMAP_CLIENT_VERSION)/c-client |
79 |
IMAP_DIR=$(PHP_LOC)/imap$(IMAP_CLIENT_VERSION) |
|
0 | 80 |
|
81 |
PHP_LFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
|
6 | 82 |
|
83 |
PHP_ZTS_CFLAGS=-mt -D_REENTRANT |
|
84 |
||
0 | 85 |
PHP_CFLAGS_i386=-xjobs=16 |
86 |
PHP_CFLAGS_sparc=-dalign -xjobs=16 |
|
87 |
PHP_CFLAGS=-fsimple=2 -xnorunpath -xO4 -xalias_level=basic -xipo=0 \ |
|
88 |
-xlibmopt -xprefetch_level=1 -xprefetch=auto -xstrconst -zlazyload |
|
89 |
||
90 |
||
91 |
all: build_php build_php_extensions |
|
92 |
||
93 |
test: test_php |
|
94 |
||
95 |
install: install_php install_php_extensions |
|
96 |
ksh93 ./install-php5 |
|
97 |
||
98 |
clean: clean_php clean_php_extensions clean_pear |
|
99 |
-rm -f php-config-proto phpize-proto package.xml package2.xml \ |
|
100 |
phpize php-config php.ini-patched |
|
6 | 101 |
-rm -f php-config-proto.zts phpize-proto.zts php-config.zts |
0 | 102 |
|
103 |
clean_php: |
|
6 | 104 |
-rm -rf $(PHP_DIR) $(PHP_CGI) $(PHP_NSAPI) $(IMAP_DIR) \ |
0 | 105 |
$(ROOT)/$(TOP_DIR) $(ROOT)/$(CONF_DIR) |
106 |
||
107 |
clean_php_extensions: |
|
3 | 108 |
-rm -rf $(SUHOSIN_DIR) $(TCPWRAP_DIR) $(IDN_DIR) \ |
0 | 109 |
$(APC_DIR) $(XDEBUG_DIR) $(MEMCACHE_DIR) |
6 | 110 |
-rm -rf $(SUHOSIN_ZTS) $(TCPWRAP_ZTS) $(IDN_ZTS) \ |
111 |
$(APC_ZTS) $(XDEBUG_ZTS) $(MEMCACHE_ZTS) |
|
0 | 112 |
|
113 |
clean_pear: |
|
114 |
-rm -rf $(ROOT)/$(PEAR_DIR) |
|
115 |
||
116 |
include ../Makefile.cmd |
|
117 |
include $(SRC)/cmd/apache2/apache.build.env |
|
118 |
||
119 |
PRECONF_ENVLINE= \ |
|
120 |
PATH=/usr/gnu/bin:/usr/bin \ |
|
121 |
MAKE=$(GMAKE) |
|
122 |
||
6 | 123 |
CONF_ENVLINE= \ |
124 |
CC=$(CC) \ |
|
0 | 125 |
CXX=$(CCC) \ |
126 |
LD="$(CCC) -norunpath" \ |
|
127 |
CPPFLAGS="-I../CPPFLAGSTEST -D_POSIX_PTHREAD_SEMANTICS" \ |
|
128 |
CFLAGS="$(CFLAGS) $(PHP_LFS) $(PHP_CFLAGS) $(PHP_CFLAGS_$(MACH))" \ |
|
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
129 |
LDFLAGS="-L$(ROOT)/usr/postgres/8.3/lib -L$(ROOT)$(MYSQL_LIBDIR) -lrt" \ |
0 | 130 |
LIBS="-lsocket -lnsl -ldl -lposix4" \ |
6 | 131 |
EXTENSION_DIR=$(MODULES_DIR) \ |
0 | 132 |
PHP_PEAR_CACHE_DIR=/var/tmp/pear/cache \ |
133 |
PHP_PEAR_DOWNLOAD_DIR=/var/tmp/pear/cache \ |
|
134 |
PHP_PEAR_EXTENSION_DIR=/var/php/$(PHP_REL)/modules \ |
|
135 |
PHP_PEAR_INSTALL_DIR=/var/php/$(PHP_REL)/pear \ |
|
136 |
PHP_PEAR_SIG_BIN=/usr/gnu/bin/gpg \ |
|
137 |
PATH=$(SFW_PATH) \ |
|
138 |
MAKE=$(CCSMAKE) \ |
|
139 |
DESTDIR=$(ROOT) \ |
|
140 |
INSTALL_ROOT=$(ROOT) \ |
|
141 |
INSTALL=/usr/ucb/install |
|
142 |
||
6 | 143 |
ZTS_CONF_ENVLINE= \ |
144 |
CC=$(CC) \ |
|
145 |
CXX=$(CCC) \ |
|
146 |
LD="$(CCC) -norunpath" \ |
|
147 |
CPPFLAGS="-I../CPPFLAGSTEST -D_POSIX_PTHREAD_SEMANTICS" \ |
|
148 |
CFLAGS="$(CFLAGS) $(PHP_CFLAGS) $(PHP_CFLAGS_$(MACH)) $(PHP_ZTS_CFLAGS)" \ |
|
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
149 |
LDFLAGS="-L$(ROOT)/usr/postgres/8.3/lib -L$(ROOT)$(MYSQL_LIBDIR) -lrt" \ |
6 | 150 |
LIBS="-lsocket -lnsl -ldl -lposix4" \ |
151 |
EXTENSION_DIR=$(ZTS_MODULES_DIR) \ |
|
152 |
PATH=$(SFW_PATH) \ |
|
153 |
MAKE=$(CCSMAKE) \ |
|
154 |
DESTDIR=$(ROOT) \ |
|
155 |
INSTALL_ROOT=$(ROOT) \ |
|
156 |
INSTALL=/usr/ucb/install |
|
157 |
||
0 | 158 |
ENVLINE= \ |
159 |
LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \ |
|
160 |
$(CONF_ENVLINE) |
|
161 |
||
6 | 162 |
ZTS_ENVLINE= \ |
163 |
LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \ |
|
164 |
$(ZTS_CONF_ENVLINE) |
|
0 | 165 |
|
166 |
# ----- Main PHP Targets ----- |
|
167 |
# |
|
168 |
# SAPI Support |
|
169 |
# ------------ |
|
170 |
# The various SAPI configure options are mutually exclusive. This means |
|
171 |
# that a separate './configure ; make' build cycle must be done for each SAPI |
|
172 |
# which needs to be built. |
|
173 |
# |
|
174 |
# Currently mod_php (for Apache) and fast/cgi support get built. |
|
175 |
# |
|
176 |
# The source tree extracted into $(PHP_DIR) is the primary build tree. It |
|
177 |
# is used to build not only mod_php but also all other extensions. The main |
|
178 |
# install target is invoked only in this tree. |
|
179 |
# |
|
180 |
# The $(PHP_CGI) source tree is used only to build fast/cgi support and |
|
181 |
# only files relevant to that feature are installed off this tree. |
|
182 |
# |
|
183 |
# |
|
184 |
# Configuration Notes |
|
185 |
# ------------------- |
|
186 |
# |
|
187 |
# The following flags appear to build fine today but are not yet included: |
|
188 |
# |
|
189 |
# --with-pspell=shared \ LSARC/2006/231 obsoleted SUNWaspell |
|
190 |
# |
|
191 |
# The following flags can't be built with components available in sfw today. |
|
192 |
# These can be added as the dependencies become available. |
|
193 |
# See here for dependency info: |
|
194 |
# http://mail.opensolaris.org/pipermail/webstack-discuss/2007-August/000146.html |
|
195 |
# |
|
196 |
# --with-gdbm W - DEP.2 |
|
197 |
# |
|
198 |
# --with-gmp W - DEP.3 |
|
199 |
# |
|
200 |
# --with-ldap-sasl W - DEP.5 |
|
201 |
# |
|
202 |
# --enable-embedded-mysqli E - DEP.6 |
|
203 |
# |
|
204 |
# --with-mssql W - DEP.7 |
|
205 |
# --with-pdo-dblib W - DEP.7 |
|
206 |
# |
|
207 |
# --with-ncurses W - DEP.8 |
|
208 |
# |
|
209 |
# --with-pdo-odbc W,unixODBC - DEP.9 |
|
210 |
# |
|
211 |
# --with-unixODBC |
|
212 |
||
213 |
build_imap: $(IMAP_CLIENT_DIR)/libc-client.a |
|
214 |
||
6 | 215 |
build_php: build_imap build_modphp5 build_cgi build_nsapi |
216 |
||
217 |
build_modphp5: $(PHP_DIR)/libs/libphp5.so |
|
218 |
||
219 |
build_cgi: $(PHP_CGI)/sapi/cgi/php-cgi |
|
220 |
||
221 |
build_nsapi: $(PHP_NSAPI)/libs/libphp5.so |
|
222 |
||
223 |
$(PHP_DIR)/libs/libphp5.so: $(PHP_DIR)/config.status |
|
0 | 224 |
# Building main PHP source tree |
225 |
(cd $(PHP_DIR); env - $(ENVLINE) $(CCSMAKE) -e all) |
|
6 | 226 |
|
227 |
$(PHP_CGI)/sapi/cgi/php-cgi: $(PHP_CGI)/config.status |
|
0 | 228 |
# Building fast/cgi support tree |
229 |
(cd $(PHP_CGI); env - $(ENVLINE) $(CCSMAKE) -e all) |
|
230 |
||
6 | 231 |
$(PHP_NSAPI)/libs/libphp5.so: $(PHP_NSAPI)/config.status |
232 |
# Building nsapi support tree |
|
233 |
(cd $(PHP_NSAPI); env - $(ZTS_ENVLINE) $(CCSMAKE) -e all) |
|
234 |
||
235 |
test_php: build_cgi |
|
0 | 236 |
(cd $(PHP_CGI); env - $(ENVLINE) $(CCSMAKE) -e test) |
237 |
||
238 |
install_php: clean_pear build_php |
|
239 |
mkdir -p $(ROOT)/var/tmp/pear/cache |
|
240 |
(cd $(PHP_DIR); env - $(ENVLINE) $(CCSMAKE) -e install) |
|
6 | 241 |
(cd $(PHP_NSAPI); env - $(ZTS_ENVLINE) $(CCSMAKE) -e libphp5.la install-modules) |
0 | 242 |
|
243 |
# The following options are shared by the different SAPI compilation targets: |
|
244 |
||
245 |
COMMON_CONFIG_OPTIONS= \ |
|
246 |
--bindir=$(TOP_DIR)/bin \ |
|
247 |
--datadir=$(TOP_DIR)/share \ |
|
248 |
--disable-dbase \ |
|
249 |
--disable-debug \ |
|
250 |
--disable-dmalloc \ |
|
251 |
--disable-inline-optimization \ |
|
252 |
--disable-libgcc \ |
|
253 |
--disable-libtool-lock \ |
|
254 |
--disable-rpath \ |
|
255 |
--disable-static \ |
|
256 |
--enable-bcmath \ |
|
257 |
--enable-calendar \ |
|
258 |
--enable-ctype \ |
|
259 |
--enable-cli \ |
|
260 |
--enable-dom \ |
|
261 |
--enable-dtrace \ |
|
262 |
--enable-exif \ |
|
263 |
--enable-flatfile \ |
|
264 |
--enable-filter \ |
|
265 |
--enable-gd-jis-conv \ |
|
266 |
--enable-gd-native-ttf \ |
|
267 |
--enable-hash \ |
|
268 |
--enable-inifile \ |
|
269 |
--enable-ipv6 \ |
|
270 |
--enable-json \ |
|
271 |
--enable-magic-quotes \ |
|
272 |
--enable-mbregex \ |
|
273 |
--enable-mbstring \ |
|
274 |
--enable-mod-charset \ |
|
275 |
--enable-pcntl \ |
|
276 |
--enable-posix \ |
|
277 |
--enable-reflection \ |
|
278 |
--with-libxml-dir=/usr \ |
|
279 |
--enable-libxml \ |
|
280 |
--enable-sqlite-utf8 \ |
|
281 |
--enable-session \ |
|
282 |
--enable-shared \ |
|
283 |
--enable-shmop \ |
|
284 |
--enable-short-tags \ |
|
285 |
--enable-simplexml \ |
|
286 |
--enable-soap \ |
|
287 |
--enable-sockets \ |
|
288 |
--enable-spl \ |
|
289 |
--enable-sysvmsg \ |
|
290 |
--enable-sysvsem \ |
|
291 |
--enable-sysvshm \ |
|
292 |
--enable-tokenizer \ |
|
293 |
--enable-xml \ |
|
294 |
--enable-xmlreader \ |
|
295 |
--enable-xmlwriter \ |
|
296 |
--enable-zend-multibyte \ |
|
297 |
--enable-zip \ |
|
298 |
--exec-prefix=$(TOP_DIR) \ |
|
299 |
--includedir=$(TOP_DIR)/include \ |
|
300 |
--libdir=$(TOP_DIR)/lib \ |
|
301 |
--libexecdir=$(TOP_DIR)/modules \ |
|
302 |
--mandir=$(TOP_DIR)/man \ |
|
303 |
--oldincludedir=$(TOP_DIR)/share \ |
|
304 |
--prefix=$(TOP_DIR) \ |
|
305 |
--sbindir=$(TOP_DIR)/sbin \ |
|
306 |
--sysconfdir=$(CONF_DIR) \ |
|
307 |
--with-cdb \ |
|
308 |
--with-exec-dir=$(TOP_DIR)/bin \ |
|
309 |
--with-freetype-dir=/usr/sfw \ |
|
310 |
--with-jpeg-dir=/usr \ |
|
311 |
--with-kerberos \ |
|
312 |
--with-layout=PHP \ |
|
313 |
--with-mcrypt=shared,$(ROOT)/usr \ |
|
314 |
--with-pcre-dir=$(ROOT)/usr \ |
|
315 |
--with-pcre-regex \ |
|
316 |
--with-png-dir=/usr \ |
|
317 |
--with-xmlrpc \ |
|
7 | 318 |
--with-xpm-dir=/usr/X11 \ |
0 | 319 |
--with-xsl \ |
6 | 320 |
--with-zlib \ |
0 | 321 |
--with-zend-vm=CALL \ |
322 |
--without-dbm \ |
|
323 |
--without-t1lib |
|
324 |
||
325 |
# The following options are used only apache SAPI compilation. |
|
326 |
# However, modules compiled as shared can also used by other SAPI's. |
|
327 |
||
6 | 328 |
$(PHP_DIR)/config.status: $(PHP_DIR)/configure $(PHP_NSAPI)/configure |
0 | 329 |
# Configuring main PHP source tree |
330 |
(cd $(PHP_DIR); env - $(CONF_ENVLINE) \ |
|
331 |
LD_LIBRARY_PATH="$(ROOT)/usr/apr/1.3/lib:$(ROOT)/usr/apr-util/1.3/lib" \ |
|
332 |
./configure \ |
|
333 |
$(COMMON_CONFIG_OPTIONS) \ |
|
334 |
--disable-cgi \ |
|
335 |
--disable-fastcgi \ |
|
336 |
--enable-discard-path \ |
|
337 |
--enable-ftp=shared \ |
|
338 |
--enable-pdo=shared \ |
|
339 |
--with-apxs2=$(ROOT)$(APACHE_USR_PREFIX)/bin/apxs \ |
|
340 |
--with-bz2=shared \ |
|
6 | 341 |
--with-config-file-path=$(CONF_DIR) \ |
342 |
--with-config-file-scan-dir=$(MODULES_CONF_DIR) \ |
|
0 | 343 |
--with-curl=shared,$(ROOT)/usr \ |
344 |
--with-curlwrappers \ |
|
345 |
--with-gd=shared \ |
|
346 |
--with-gettext=shared \ |
|
347 |
--with-iconv=shared \ |
|
348 |
--with-imap=shared,$(IMAP_DIR) \ |
|
349 |
--with-imap-ssl=shared,$(ROOT)/usr \ |
|
350 |
--with-ldap=shared \ |
|
351 |
--with-mysql=shared,$(ROOT)$(MYSQL_DIR) \ |
|
352 |
--with-mysql-sock=/tmp/mysql.sock \ |
|
353 |
--with-mysqli=shared,$(ROOT)$(MYSQL_DIR)/bin/mysql_config \ |
|
354 |
--with-openssl=shared \ |
|
355 |
--with-pear=$(PEAR_DIR) \ |
|
356 |
--with-pdo-mysql=shared,$(ROOT)$(MYSQL_DIR) \ |
|
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
357 |
--with-pdo-pgsql=shared,$(ROOT)/usr/postgres/8.3 \ |
0 | 358 |
--with-pdo-sqlite=shared \ |
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
359 |
--with-pgsql=shared,$(ROOT)/usr/postgres/8.3 \ |
2 | 360 |
--with-snmp=shared,$(ROOT)/usr \ |
0 | 361 |
--with-sqlite=shared \ |
362 |
--with-tidy=shared,$(ROOT)/usr \ |
|
363 |
--without-tsrm-pthreads ) |
|
364 |
||
6 | 365 |
$(PHP_CGI)/config.status: $(PHP_DIR)/configure |
0 | 366 |
# Configuring fast/cgi source tree |
367 |
(cd $(PHP_CGI); env - $(CONF_ENVLINE) \ |
|
368 |
./configure \ |
|
369 |
--disable-all \ |
|
370 |
$(COMMON_CONFIG_OPTIONS) \ |
|
6 | 371 |
--with-config-file-path=$(NSAPI_CONF_DIR) \ |
372 |
--with-config-file-scan-dir=$(MODULES_CONF_DIR) \ |
|
0 | 373 |
--disable-discard-path \ |
374 |
--enable-cgi \ |
|
375 |
--enable-fastcgi \ |
|
376 |
--enable-force-cgi-redirect ) |
|
377 |
||
6 | 378 |
$(PHP_NSAPI)/config.status: $(PHP_DIR)/configure |
379 |
# Configuring nsapi source tree |
|
380 |
(cd $(PHP_NSAPI); env - $(ZTS_CONF_ENVLINE) \ |
|
381 |
./configure \ |
|
382 |
--disable-all \ |
|
383 |
$(COMMON_CONFIG_OPTIONS) \ |
|
384 |
--with-config-file-path=$(CONF_DIR) \ |
|
385 |
--with-config-file-scan-dir=$(CONF_DIR)/conf.d \ |
|
386 |
--disable-cgi \ |
|
387 |
--disable-fastcgi \ |
|
388 |
--enable-discard-path \ |
|
389 |
--enable-maintainer-zts \ |
|
390 |
--enable-ftp=shared \ |
|
391 |
--enable-pdo=shared \ |
|
392 |
--with-bz2=shared \ |
|
393 |
--with-curl=shared,$(ROOT)/usr \ |
|
394 |
--with-gd=shared \ |
|
395 |
--with-gettext=shared \ |
|
396 |
--with-iconv=shared \ |
|
397 |
--with-imap=shared,$(IMAP_DIR) \ |
|
398 |
--with-imap-ssl=shared,$(ROOT)/usr \ |
|
399 |
--with-ldap=shared \ |
|
400 |
--with-mysql=shared,$(ROOT)$(MYSQL_DIR) \ |
|
401 |
--with-mysql-sock=/tmp/mysql.sock \ |
|
402 |
--with-mysqli=shared,$(ROOT)$(MYSQL_DIR)/bin/mysql_config \ |
|
7 | 403 |
--with-nsapi=$(PHP_LOC)/webserver7-spi \ |
6 | 404 |
--with-openssl=shared \ |
405 |
--with-pear=$(PEAR_DIR) \ |
|
406 |
--with-pdo-mysql=shared,$(ROOT)$(MYSQL_DIR) \ |
|
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
407 |
--with-pdo-pgsql=shared,$(ROOT)/usr/postgres/8.3 \ |
6 | 408 |
--with-pdo-sqlite=shared \ |
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
40
diff
changeset
|
409 |
--with-pgsql=shared,$(ROOT)/usr/postgres/8.3 \ |
6 | 410 |
--with-snmp=shared,$(ROOT)/usr \ |
411 |
--with-sqlite=shared \ |
|
412 |
--with-tidy=shared,$(ROOT)/usr ) |
|
0 | 413 |
|
414 |
$(PHP_DIR)/configure: $(PHP_DIR).tar.bz2 |
|
415 |
bunzip2 -dc $(PHP_DIR).tar.bz2 | tar xopf - |
|
2 | 416 |
(cp /usr/include/zlib.h $(PHP_DIR)/ext/zlib/my_zlib.h) |
0 | 417 |
# avoid running apxs with -a option when installing mod_php |
418 |
# because we move libphp later |
|
419 |
(cd $(PHP_DIR) && \ |
|
420 |
gpatch -p1 -i ../patches/php_build_config.m4.patch && \ |
|
421 |
gpatch -p1 -i ../patches/php_dtrace.patch && \ |
|
422 |
gpatch -p1 -i ../patches/php_Makefile.global.patch && \ |
|
423 |
gpatch -p1 -i ../patches/php_dl.c.patch && \ |
|
2 | 424 |
gpatch -p1 -i ../patches/php_6818228.patch && \ |
425 |
gpatch -p1 -i ../patches/php_6825797.patch && \ |
|
5 | 426 |
gpatch -p1 -i ../patches/php_6912354.patch && \ |
427 |
gpatch -p1 -i ../patches/php_perf_zend_execute_inline.patch && \ |
|
4 | 428 |
gpatch -p1 -i ../patches/php_perf_safe_address.patch && \ |
6 | 429 |
gpatch -p1 -i ../patches/php_pdo_stmt_race.patch && \ |
430 |
gpatch -p1 -i ../patches/php_perf_nsapi.c.patch && \ |
|
0 | 431 |
gpatch -p1 -i ../patches/php_run-tests.php.patch) |
432 |
(cd $(PHP_DIR); env - $(PRECONF_ENVLINE) \ |
|
433 |
./buildconf --force ) |
|
434 |
(cd $(PHP_DIR); \ |
|
435 |
cat configure | \ |
|
436 |
sed -e "s#-i -a -n php5#-i -n php5#" > configure.tmp; \ |
|
437 |
mv configure configure.orig; \ |
|
438 |
mv configure.tmp configure; \ |
|
439 |
chmod 755 configure ) |
|
440 |
touch $(PHP_DIR)/configure |
|
6 | 441 |
|
0 | 442 |
# duplicate the source tree for fast/cgi compilation |
443 |
mkdir -p $(PHP_CGI) |
|
444 |
(cd $(PHP_DIR); tar cf - .) | (cd $(PHP_CGI); tar xpf -) |
|
445 |
||
6 | 446 |
# duplicate the source tree for nsapi compilation |
447 |
mkdir -p $(PHP_NSAPI) |
|
448 |
bunzip2 -dc webserver7-spi.tar.bz2 | tar xopf - |
|
449 |
(cd $(PHP_DIR); tar cf - .) | (cd $(PHP_NSAPI); tar xpf -) |
|
450 |
||
0 | 451 |
# Build IMap C-Client |
452 |
$(IMAP_CLIENT_DIR)/libc-client.a: |
|
453 |
gunzip -dc imap$(IMAP_CLIENT_VERSION).tar.gz | tar xopf - |
|
454 |
(cd $(IMAP_DIR) && \ |
|
455 |
gpatch -p1 -i ../patches/imap_Makefile.patch && \ |
|
456 |
gpatch -p1 -i ../patches/imap_unix_Makefile.patch && \ |
|
457 |
gpatch -p1 -i ../patches/imap_os_soln.h.patch && \ |
|
458 |
gpatch -p1 -i ../patches/imap_flocksim.c.patch ) |
|
459 |
(cd $(IMAP_DIR); env - \ |
|
460 |
MAKE=$(CCSMAKE) \ |
|
461 |
CC=$(CC) \ |
|
462 |
CFLAGS="$(CFLAGS) $(PHP_LFS) $(PHP_CFLAGS) $(PHP_CFLAGS_$(MACH))" \ |
|
463 |
$(CCSMAKE) -e soc c-client; \ |
|
464 |
mv $(IMAP_DIR)/c-client/c-client.a \ |
|
465 |
$(IMAP_DIR)/c-client/libc-client.a) |
|
466 |
||
467 |
# ----- Main extension targets ----- |
|
468 |
||
469 |
build_php_extensions: extensions_setup \ |
|
3 | 470 |
build_suhosin build_tcpwrap build_idn \ |
0 | 471 |
build_apc build_xdebug build_memcache |
472 |
||
473 |
||
474 |
install_php_extensions: build_php_extensions \ |
|
3 | 475 |
install_suhosin install_tcpwrap install_idn \ |
0 | 476 |
install_apc install_xdebug install_memcache |
477 |
||
6 | 478 |
extensions_setup: phpize-proto php-config-proto phpize-proto.zts php-config-proto.zts |
0 | 479 |
|
480 |
phpize-proto: build_php |
|
481 |
cat $(PHP_DIR)/scripts/phpize | \ |
|
482 |
sed -e "s#^prefix=.*#prefix=`pwd`/$(PHP_DIR)#" | \ |
|
483 |
sed -e "s#^includedir=.*#includedir=`pwd`/$(PHP_DIR)#" | \ |
|
484 |
sed -e "s#^phpdir=.*#phpdir=`pwd`/$(PHP_DIR)#" | \ |
|
485 |
sed -e "s#phpdir/phpize.m4#phpdir/scripts/phpize.m4#" | \ |
|
486 |
sed -e 's#cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build#cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build#' \ |
|
487 |
> phpize-proto |
|
488 |
chmod 755 phpize-proto |
|
489 |
||
490 |
php-config-proto: build_php |
|
491 |
cat $(PHP_DIR)/scripts/php-config | \ |
|
492 |
sed -e "s#^prefix=.*#prefix=`pwd`/$(PHP_DIR)#" | \ |
|
493 |
sed -e "s#^include_dir=.*#include_dir=`pwd`/$(PHP_DIR)#" \ |
|
494 |
> php-config-proto |
|
495 |
chmod 755 php-config-proto |
|
496 |
||
6 | 497 |
phpize-proto.zts: build_php |
498 |
cat $(PHP_NSAPI)/scripts/phpize | \ |
|
499 |
sed -e "s#^prefix=.*#prefix=`pwd`/$(PHP_NSAPI)#" | \ |
|
500 |
sed -e "s#^includedir=.*#includedir=`pwd`/$(PHP_NSAPI)#" | \ |
|
501 |
sed -e "s#^extension_dir=.*#extension_dir=`pwd`/$(ZTS_MODULES_DIR)#" | \ |
|
502 |
sed -e "s#^phpdir=.*#phpdir=`pwd`/$(PHP_NSAPI)#" | \ |
|
503 |
sed -e "s#phpdir/phpize.m4#phpdir/scripts/phpize.m4#" | \ |
|
504 |
sed -e 's#cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build#cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build#' \ |
|
505 |
> phpize-proto.zts |
|
506 |
chmod 755 phpize-proto.zts |
|
507 |
||
508 |
php-config-proto.zts: build_php |
|
509 |
cat $(PHP_DIR)/scripts/php-config | \ |
|
510 |
sed -e "s#^prefix=.*#prefix=`pwd`/$(PHP_NSAPI)#" | \ |
|
511 |
sed -e "s#^include_dir=.*#include_dir=`pwd`/$(PHP_NSAPI)#" | \ |
|
512 |
sed -e "s#^extension_dir=.*#extension_dir=`pwd`/$(ZTS_MODULES_DIR)#" \ |
|
513 |
> php-config-proto.zts |
|
514 |
chmod 755 php-config-proto.zts |
|
515 |
||
0 | 516 |
|
517 |
# ----- Extension targets for: suhosin ----- |
|
518 |
||
6 | 519 |
build_suhosin: extensions_setup $(SUHOSIN_DIR)/modules/suhosin.so $(SUHOSIN_ZTS)/modules/suhosin.so |
520 |
||
521 |
$(SUHOSIN_DIR)/modules/suhosin.so: $(SUHOSIN_DIR)/config.status |
|
0 | 522 |
(cd $(SUHOSIN_DIR); $(CCSMAKE) -e) |
523 |
||
6 | 524 |
$(SUHOSIN_ZTS)/modules/suhosin.so: $(SUHOSIN_ZTS)/config.status |
525 |
(cd $(SUHOSIN_ZTS); $(CCSMAKE) -e) |
|
526 |
||
527 |
install_suhosin: build_suhosin |
|
528 |
/usr/ucb/install $(SUHOSIN_DIR)/modules/suhosin.so $(ROOT)/$(MODULES_DIR) |
|
529 |
/usr/ucb/install $(SUHOSIN_ZTS)/modules/suhosin.so $(ROOT)/$(ZTS_MODULES_DIR) |
|
530 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/suhosin.so |
|
531 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/suhosin.so |
|
0 | 532 |
|
533 |
$(SUHOSIN_DIR)/config.status: $(SUHOSIN_DIR)/configure |
|
534 |
(cd $(SUHOSIN_DIR); \ |
|
535 |
env - $(ENVLINE) ../phpize-proto; \ |
|
536 |
env - $(ENVLINE) sh ./configure \ |
|
537 |
--enable-suhosin \ |
|
538 |
--with-php-config=../php-config-proto ) |
|
539 |
||
6 | 540 |
$(SUHOSIN_ZTS)/config.status: $(SUHOSIN_DIR)/configure |
541 |
(cd $(SUHOSIN_ZTS); \ |
|
542 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
543 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
544 |
--enable-suhosin \ |
|
545 |
--with-php-config=../php-config-proto.zts ) |
|
0 | 546 |
|
547 |
$(SUHOSIN_DIR)/configure: $(SUHOSIN_DIR).tar.gz |
|
548 |
gzip -dc $(SUHOSIN_DIR).tar.gz | tar xopf - |
|
549 |
touch $(SUHOSIN_DIR)/configure |
|
6 | 550 |
mkdir -p $(SUHOSIN_ZTS) |
551 |
(cd $(SUHOSIN_DIR); tar cf - .) | (cd $(SUHOSIN_ZTS); tar xpf -) |
|
0 | 552 |
|
553 |
# ----- Extension targets for: tcpwrap ----- |
|
554 |
||
6 | 555 |
build_tcpwrap: extensions_setup $(TCPWRAP_DIR)/modules/tcpwrap.so $(TCPWRAP_ZTS)/modules/tcpwrap.so |
556 |
||
557 |
$(TCPWRAP_DIR)/modules/tcpwrap.so: $(TCPWRAP_DIR)/config.status |
|
0 | 558 |
(cd $(TCPWRAP_DIR); $(CCSMAKE) -e) |
559 |
||
6 | 560 |
$(TCPWRAP_ZTS)/modules/tcpwrap.so: $(TCPWRAP_ZTS)/config.status |
561 |
(cd $(TCPWRAP_ZTS); $(CCSMAKE) -e) |
|
562 |
||
0 | 563 |
install_tcpwrap: build_tcpwrap |
6 | 564 |
/usr/ucb/install $(TCPWRAP_DIR)/modules/tcpwrap.so $(ROOT)/$(MODULES_DIR) |
565 |
/usr/ucb/install $(TCPWRAP_ZTS)/modules/tcpwrap.so $(ROOT)/$(ZTS_MODULES_DIR) |
|
566 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/tcpwrap.so |
|
567 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/tcpwrap.so |
|
0 | 568 |
|
569 |
$(TCPWRAP_DIR)/config.status: $(TCPWRAP_DIR)/configure |
|
570 |
(cd $(TCPWRAP_DIR); \ |
|
571 |
env - $(ENVLINE) ../phpize-proto; \ |
|
572 |
env - $(ENVLINE) sh ./configure \ |
|
573 |
--with-tcpwrap=$(ROOT)/usr/sfw \ |
|
574 |
--with-php-config=../php-config-proto ) |
|
575 |
||
6 | 576 |
$(TCPWRAP_ZTS)/config.status: $(TCPWRAP_DIR)/configure |
577 |
(cd $(TCPWRAP_ZTS); \ |
|
578 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
579 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
580 |
--with-tcpwrap=$(ROOT)/usr/sfw \ |
|
581 |
--with-php-config=../php-config-proto.zts ) |
|
582 |
||
0 | 583 |
$(TCPWRAP_DIR)/configure: $(TCPWRAP_DIR).tar.gz |
584 |
gzip -dc $(TCPWRAP_DIR).tar.gz | tar xopf - |
|
585 |
(cd $(TCPWRAP_DIR) && \ |
|
586 |
gpatch -p1 -i ../patches/tcpwrap_config.patch ) |
|
587 |
touch $(TCPWRAP_DIR)/configure |
|
6 | 588 |
mkdir -p $(TCPWRAP_ZTS) |
589 |
(cd $(TCPWRAP_DIR); tar cf - .) | (cd $(TCPWRAP_ZTS); tar xpf -) |
|
0 | 590 |
|
591 |
||
592 |
# ----- Extension targets for: idn ----- |
|
593 |
||
6 | 594 |
build_idn: extensions_setup $(IDN_DIR)/modules/idn.so $(IDN_ZTS)/modules/idn.so |
595 |
||
596 |
$(IDN_DIR)/modules/idn.so: $(IDN_DIR)/config.status |
|
0 | 597 |
(cd $(IDN_DIR); $(CCSMAKE) -e) |
598 |
||
6 | 599 |
$(IDN_ZTS)/modules/idn.so: $(IDN_ZTS)/config.status |
600 |
(cd $(IDN_ZTS); $(CCSMAKE) -e) |
|
601 |
||
0 | 602 |
install_idn: build_idn |
6 | 603 |
/usr/ucb/install $(IDN_DIR)/modules/idn.so $(ROOT)/$(MODULES_DIR)/ |
604 |
/usr/ucb/install $(IDN_ZTS)/modules/idn.so $(ROOT)/$(ZTS_MODULES_DIR)/ |
|
605 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/idn.so |
|
606 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/idn.so |
|
0 | 607 |
|
608 |
$(IDN_DIR)/config.status: $(IDN_DIR)/configure |
|
609 |
(cd $(IDN_DIR); \ |
|
610 |
env - $(ENVLINE) ../phpize-proto; \ |
|
611 |
env - $(ENVLINE) sh ./configure \ |
|
612 |
--with-idn \ |
|
613 |
--with-php-config=../php-config-proto ) |
|
614 |
||
6 | 615 |
$(IDN_ZTS)/config.status: $(IDN_DIR)/configure |
616 |
(cd $(IDN_ZTS); \ |
|
617 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
618 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
619 |
--with-idn \ |
|
620 |
--with-php-config=../php-config-proto.zts ) |
|
621 |
||
0 | 622 |
$(IDN_DIR)/configure: $(IDN_DIR).tar.gz |
623 |
gzip -dc $(IDN_DIR).tar.gz | tar xopf - |
|
624 |
(cd $(IDN_DIR) && \ |
|
625 |
gpatch -p1 -i ../patches/idn_config.patch) |
|
626 |
touch $(IDN_DIR)/configure |
|
6 | 627 |
mkdir -p $(IDN_ZTS) |
628 |
(cd $(IDN_DIR); tar cf - .) | (cd $(IDN_ZTS); tar xpf -) |
|
0 | 629 |
|
630 |
# ----- Extension targets for: APC ----- |
|
631 |
||
6 | 632 |
build_apc: extensions_setup $(APC_DIR)/modules/apc.so $(APC_ZTS)/modules/apc.so |
633 |
||
634 |
$(APC_DIR)/modules/apc.so: $(APC_DIR)/config.status |
|
635 |
(cd $(APC_DIR); $(CCSMAKE) -e) |
|
636 |
||
637 |
$(APC_ZTS)/modules/apc.so: $(APC_ZTS)/config.status |
|
638 |
(cd $(APC_ZTS); $(CCSMAKE) -e) |
|
0 | 639 |
|
640 |
install_apc: build_apc |
|
6 | 641 |
/usr/ucb/install $(APC_DIR)/modules/apc.so $(ROOT)/$(MODULES_DIR) |
642 |
/usr/ucb/install $(APC_ZTS)/modules/apc.so $(ROOT)/$(ZTS_MODULES_DIR) |
|
643 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/apc.so |
|
644 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/apc.so |
|
0 | 645 |
mkdir -p $(ROOT)/$(SAMPLES_DIR)/apc/ |
646 |
/usr/ucb/install -m 0555 $(APC_DIR)/apc.php $(ROOT)/$(SAMPLES_DIR)/apc/ |
|
647 |
||
648 |
$(APC_DIR)/config.status: $(APC_DIR)/configure |
|
649 |
(cd $(APC_DIR); \ |
|
650 |
env - $(ENVLINE) ../phpize-proto; \ |
|
651 |
env - $(ENVLINE) sh ./configure \ |
|
652 |
--enable-apc \ |
|
653 |
--enable-apc-mmap \ |
|
654 |
--with-php-config=../php-config-proto ) |
|
655 |
||
6 | 656 |
$(APC_ZTS)/config.status: $(APC_DIR)/configure |
657 |
(cd $(APC_ZTS); \ |
|
658 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
659 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
660 |
--enable-apc \ |
|
661 |
--enable-apc-mmap \ |
|
662 |
--with-php-config=../php-config-proto.zts ) |
|
0 | 663 |
|
664 |
$(APC_DIR)/configure: $(APC_DIR).tar.gz |
|
665 |
gzip -dc $(APC_DIR).tar.gz | tar xopf - |
|
666 |
(cd $(APC_DIR) && \ |
|
667 |
gpatch -p1 -i ../patches/apc_pool.c.patch && \ |
|
668 |
gpatch -p1 -i ../patches/apc_cache.c.patch && \ |
|
669 |
gpatch -p1 -i ../patches/apc_main.c.patch && \ |
|
3 | 670 |
gpatch -p1 -i ../patches/apc_sem.c.patch && \ |
671 |
gpatch -p1 -i ../patches/apc_reserved_offset.patch) |
|
0 | 672 |
touch $(APC_DIR)/configure |
6 | 673 |
mkdir -p $(APC_ZTS) |
674 |
(cd $(APC_DIR); tar cf - .) | (cd $(APC_ZTS); tar xpf -) |
|
0 | 675 |
|
676 |
# ----- Extension targets for: Xdebug ----- |
|
677 |
||
6 | 678 |
build_xdebug: extensions_setup $(XDEBUG_DIR)/modules/xdebug.so $(XDEBUG_ZTS)/modules/xdebug.so |
679 |
||
680 |
$(XDEBUG_DIR)/modules/xdebug.so: $(XDEBUG_DIR)/config.status |
|
0 | 681 |
(cd $(XDEBUG_DIR); $(CCSMAKE) -e) |
682 |
||
6 | 683 |
$(XDEBUG_ZTS)/modules/xdebug.so: $(XDEBUG_ZTS)/config.status |
684 |
(cd $(XDEBUG_ZTS); $(CCSMAKE) -e) |
|
685 |
||
0 | 686 |
install_xdebug: build_xdebug |
6 | 687 |
/usr/ucb/install $(XDEBUG_DIR)/modules/xdebug.so $(ROOT)/$(MODULES_DIR) |
688 |
/usr/ucb/install $(XDEBUG_ZTS)/modules/xdebug.so $(ROOT)/$(ZTS_MODULES_DIR) |
|
689 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/xdebug.so |
|
690 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/xdebug.so |
|
0 | 691 |
|
692 |
$(XDEBUG_DIR)/config.status: $(XDEBUG_DIR)/configure |
|
693 |
(cd $(XDEBUG_DIR); \ |
|
694 |
env - $(ENVLINE) ../phpize-proto; \ |
|
695 |
env - $(ENVLINE) sh ./configure \ |
|
696 |
--enable-xdebug \ |
|
697 |
--with-php-config=../php-config-proto ) |
|
698 |
||
6 | 699 |
$(XDEBUG_ZTS)/config.status: $(XDEBUG_DIR)/configure |
700 |
(cd $(XDEBUG_ZTS); \ |
|
701 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
702 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
703 |
--enable-xdebug \ |
|
704 |
--with-php-config=../php-config-proto.zts ) |
|
0 | 705 |
|
706 |
$(XDEBUG_DIR)/configure: $(XDEBUG_DIR).tar.gz |
|
707 |
gzip -dc $(XDEBUG_DIR).tar.gz | tar xopf - |
|
708 |
touch $(XDEBUG_DIR)/configure |
|
6 | 709 |
mkdir -p $(XDEBUG_ZTS) |
710 |
(cd $(XDEBUG_DIR); tar cf - .) | (cd $(XDEBUG_ZTS); tar xpf -) |
|
0 | 711 |
|
712 |
||
713 |
# ----- Extension targets for: Memcache ----- |
|
714 |
||
6 | 715 |
build_memcache: extensions_setup $(MEMCACHE_DIR)/modules/memcache.so $(MEMCACHE_ZTS)/modules/memcache.so |
716 |
||
717 |
$(MEMCACHE_DIR)/modules/memcache.so: $(MEMCACHE_DIR)/config.status |
|
0 | 718 |
(cd $(MEMCACHE_DIR); $(CCSMAKE) -e) |
719 |
||
6 | 720 |
$(MEMCACHE_ZTS)/modules/memcache.so: $(MEMCACHE_ZTS)/config.status |
721 |
(cd $(MEMCACHE_ZTS); $(CCSMAKE) -e) |
|
722 |
||
0 | 723 |
install_memcache: build_memcache |
6 | 724 |
/usr/ucb/install $(MEMCACHE_DIR)/modules/memcache.so $(ROOT)/$(MODULES_DIR)/ |
725 |
/usr/ucb/install $(MEMCACHE_ZTS)/modules/memcache.so $(ROOT)/$(ZTS_MODULES_DIR)/ |
|
726 |
$(SRC)/tools/post_process_so $(ROOT)/$(MODULES_DIR)/memcache.so |
|
727 |
$(SRC)/tools/post_process_so $(ROOT)/$(ZTS_MODULES_DIR)/memcache.so |
|
0 | 728 |
mkdir -p $(ROOT)/$(SAMPLES_DIR)/memcache/ |
729 |
/usr/ucb/install -m 0555 $(MEMCACHE_DIR)/memcache.php $(ROOT)/$(SAMPLES_DIR)/memcache/ |
|
730 |
||
731 |
$(MEMCACHE_DIR)/config.status: $(MEMCACHE_DIR)/configure |
|
732 |
(cd $(MEMCACHE_DIR); \ |
|
733 |
env - $(ENVLINE) ../phpize-proto; \ |
|
734 |
env - $(ENVLINE) sh ./configure \ |
|
735 |
--disable-debug \ |
|
736 |
--enable-memcache \ |
|
737 |
--with-php-config=../php-config-proto \ |
|
738 |
--with-zlib-dir=$(ROOT)/usr ) |
|
739 |
||
6 | 740 |
$(MEMCACHE_ZTS)/config.status: $(MEMCACHE_DIR)/configure |
741 |
(cd $(MEMCACHE_ZTS); \ |
|
742 |
env - $(ZTS_ENVLINE) ../phpize-proto.zts; \ |
|
743 |
env - $(ZTS_ENVLINE) sh ./configure \ |
|
744 |
--disable-debug \ |
|
745 |
--enable-memcache \ |
|
746 |
--with-php-config=../php-config-proto.zts \ |
|
747 |
--with-zlib-dir=$(ROOT)/usr ) |
|
0 | 748 |
|
749 |
$(MEMCACHE_DIR)/configure: $(MEMCACHE_DIR).tar.gz |
|
750 |
gzip -dc $(MEMCACHE_DIR).tar.gz | tar xopf - |
|
751 |
touch $(MEMCACHE_DIR)/configure |
|
6 | 752 |
mkdir -p $(MEMCACHE_ZTS) |
753 |
(cd $(MEMCACHE_DIR); tar cf - .) | (cd $(MEMCACHE_ZTS); tar xpf -) |
|
0 | 754 |
|
755 |
# ----- End of Extension targets ----- |
|
756 |
||
757 |
include ../Makefile.targ |