16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 |
23 |
24 include ../../../make-rules/shared-macros.mk |
24 include ../../../make-rules/shared-macros.mk |
25 |
25 |
26 COMPONENT_NAME= php |
26 COMPONENT_NAME= php |
27 COMPONENT_VERSION= 5.3.27 |
27 COMPONENT_VERSION= 5.3.28 |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:e12db21c623b82a2244c4dd9b06bb75af20868c1b748a105a6829a5acc36b287 |
31 sha256:0cac960c651c4fbb3d21cf2f2b279a06e21948fb35a0d1439b97296cac1d8513 |
32 COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
32 COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
33 COMPONENT_PROJECT_URL= http://www.php.net/ |
33 COMPONENT_PROJECT_URL= http://www.php.net/ |
34 |
34 |
35 # |
35 # |
36 # webserver7-spi only for php NSAPI |
36 # webserver7-spi only for php NSAPI |
46 # Came from Sun's Netscape (web stack) group originally? |
46 # Came from Sun's Netscape (web stack) group originally? |
47 COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
47 COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
48 |
48 |
49 PATCH_DIR = ../php-sapi/patches |
49 PATCH_DIR = ../php-sapi/patches |
50 |
50 |
|
51 include ../php-sapi/php.mk |
|
52 |
51 include $(WS_TOP)/make-rules/prep.mk |
53 include $(WS_TOP)/make-rules/prep.mk |
52 include $(WS_TOP)/make-rules/configure.mk |
54 include $(WS_TOP)/make-rules/configure.mk |
53 include $(WS_TOP)/make-rules/ips.mk |
55 include $(WS_TOP)/make-rules/ips.mk |
54 |
56 |
55 include ../common.mk |
57 include ../common.mk |
56 include ../php-sapi/php.mk |
|
57 |
58 |
58 COMPONENT_POST_UNPACK_ACTION += && ( \ |
59 COMPONENT_POST_UNPACK_ACTION += && ( \ |
59 $(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \ |
60 $(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \ |
60 cd $(COMPONENT_DIR); \ |
61 cd $(COMPONENT_DIR); \ |
61 $(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \ |
62 $(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \ |
95 CONFIGURE_ENV += $(ZTS_CONF_ENVLINE) |
96 CONFIGURE_ENV += $(ZTS_CONF_ENVLINE) |
96 |
97 |
97 COMPONENT_POST_BUILD_ACTION = ( \ |
98 COMPONENT_POST_BUILD_ACTION = ( \ |
98 cat $(BUILD_DIR_32)/scripts/phpize | \ |
99 cat $(BUILD_DIR_32)/scripts/phpize | \ |
99 sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \ |
100 sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \ |
100 sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ |
101 sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \ |
101 sed -e "s%^includedir=.*%includedir=$(SOURCE_DIR)%" | \ |
102 sed -e "s%^includedir=.*%includedir=$(BUILD_DIR_32)%" | \ |
102 sed -e "s%^phpdir=.*%phpdir=$(SOURCE_DIR)%" | \ |
103 sed -e "s%^phpdir=.*%phpdir=$(BUILD_DIR_32)%" | \ |
103 sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \ |
104 sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \ |
104 sed -e 's%cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build%cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build%' \ |
105 sed -e 's%cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build%cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build%' \ |
105 > phpize-proto.zts ; \ |
106 > phpize-proto.zts ; \ |
106 chmod 755 phpize-proto.zts ) |
107 chmod 755 phpize-proto.zts ) |
107 |
108 |