components/php-5_3/php-nsapi/Makefile
branchs11-update
changeset 2947 38d16c6d5c60
parent 2923 d19580922ffe
child 1755 ad1cb0530c69
equal deleted inserted replaced
2946:74c77317f502 2947:38d16c6d5c60
    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
    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); \
    78 	--with-gettext=shared \
    79 	--with-gettext=shared \
    79 	--with-iconv=shared \
    80 	--with-iconv=shared \
    80 	--with-imap=shared,$(IMAP_DIR) \
    81 	--with-imap=shared,$(IMAP_DIR) \
    81 	--with-imap-ssl=shared,/usr \
    82 	--with-imap-ssl=shared,/usr \
    82 	--with-ldap=shared \
    83 	--with-ldap=shared \
    83 	--with-mysql=shared,$(MYSQL_DIR) \
    84 	--with-mysql=shared,mysqlnd \
    84 	--with-mysql-sock=/tmp/mysql.sock \
    85 	--with-mysql-sock=/tmp/mysql.sock \
    85 	--with-mysqli=shared,$(MYSQL_DIR)/bin/mysql_config \
    86 	--with-mysqli=shared,mysqlnd \
    86 	--with-nsapi=$(COMPONENT_DIR)/webserver7-spi \
    87 	--with-nsapi=$(COMPONENT_DIR)/webserver7-spi \
    87 	--with-openssl=shared \
    88 	--with-openssl=shared \
    88 	--with-pear=$(PEAR_DIR) \
    89 	--with-pear=$(PEAR_DIR) \
    89 	--with-pdo-mysql=shared,$(MYSQL_DIR) \
    90 	--with-pdo-mysql=shared,mysqlnd \
    90 	--with-pdo-sqlite=shared \
    91 	--with-pdo-sqlite=shared \
    91 	--with-snmp=shared,/usr \
    92 	--with-snmp=shared,/usr \
    92 	--with-sqlite3=shared \
    93 	--with-sqlite3=shared \
    93 	--with-tidy=shared,/usr
    94 	--with-tidy=shared,/usr
    94 
    95 
    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