components/php-5_3/php-sapi/Makefile
branchs11u1-sru
changeset 3086 649b12aa87ce
parent 2926 73b93bcb8a2c
equal deleted inserted replaced
3083:6826bd655a25 3086:649b12aa87ce
    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 include ../../../make-rules/shared-macros.mk
    23 include ../../../make-rules/shared-macros.mk
    24 
    24 
    25 # NOTE:
    25 # NOTE:
    26 #    Currently the version numbers in the package manifests, one
    26 #    Currently the version numbers in the package manifests, one
    27 #    level up, are manually set because the COMPONENT_VERSION, like
    27 #    level up, are manually set because the COMPONENT_VERSION, like
    28 #    below, is not available at the top level where this is IPS
    28 #    below, is not available at the top level where this is IPS
    29 #    published from.
    29 #    published from.
    30 
    30 
    31 COMPONENT_NAME=		php
    31 COMPONENT_NAME=		php
    32 COMPONENT_VERSION=	5.3.27
    32 COMPONENT_VERSION=	5.3.28
    33 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    33 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    34 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    34 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    35 COMPONENT_ARCHIVE_HASH= \
    35 COMPONENT_ARCHIVE_HASH= \
    36     sha256:e12db21c623b82a2244c4dd9b06bb75af20868c1b748a105a6829a5acc36b287
    36     sha256:0cac960c651c4fbb3d21cf2f2b279a06e21948fb35a0d1439b97296cac1d8513
    37 COMPONENT_ARCHIVE_URL=	http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
    37 COMPONENT_ARCHIVE_URL=	http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
    38 COMPONENT_PROJECT_URL=	http://www.php.net/
    38 COMPONENT_PROJECT_URL=	http://www.php.net/
    39 
    39 
    40 #
    40 #
    41 # php documentation
    41 # php documentation
    55 # above.  Finally, forward a copy to the gatekeeping staff to place
    55 # above.  Finally, forward a copy to the gatekeeping staff to place
    56 # the copy in userland's download cache so that the following download URL
    56 # the copy in userland's download cache so that the following download URL
    57 # will pick it up.
    57 # will pick it up.
    58 COMPONENT_ARCHIVE_URL_1=http://us.php.net/get/$(COMPONENT_ARCHIVE_1)/from/this/mirror
    58 COMPONENT_ARCHIVE_URL_1=http://us.php.net/get/$(COMPONENT_ARCHIVE_1)/from/this/mirror
    59 
    59 
       
    60 include ./php.mk
       
    61 
       
    62 
    60 include $(WS_TOP)/make-rules/prep.mk
    63 include $(WS_TOP)/make-rules/prep.mk
    61 include $(WS_TOP)/make-rules/configure.mk
    64 include $(WS_TOP)/make-rules/configure.mk
    62 include $(WS_TOP)/make-rules/ips.mk
    65 include $(WS_TOP)/make-rules/ips.mk
    63 
    66 
    64 include ../common.mk
    67 include ../common.mk
    65 include ./php.mk
       
    66 
    68 
    67 CONFIGURE_OPTIONS  += \
    69 CONFIGURE_OPTIONS  += \
    68 	$(COMMON_CONFIG_OPTIONS) \
    70 	$(COMMON_CONFIG_OPTIONS) \
    69 	--disable-cgi \
    71 	--disable-cgi \
    70 	--disable-fastcgi \
    72 	--disable-fastcgi \
    98 CONFIGURE_ENV += $(CONF_ENVLINE)
   100 CONFIGURE_ENV += $(CONF_ENVLINE)
    99 
   101 
   100 COMPONENT_POST_BUILD_ACTION = ( \
   102 COMPONENT_POST_BUILD_ACTION = ( \
   101 	cat $(BUILD_DIR_32)/scripts/phpize | \
   103 	cat $(BUILD_DIR_32)/scripts/phpize | \
   102 	 sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \
   104 	 sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \
   103 	 sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \
   105 	 sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \
   104 	 sed -e "s%^includedir=.*%includedir=$(SOURCE_DIR)%" | \
   106 	 sed -e "s%^includedir=.*%includedir=$(BUILD_DIR_32)%" | \
   105 	 sed -e "s%^phpdir=.*%phpdir=$(SOURCE_DIR)%"  | \
   107 	 sed -e "s%^phpdir=.*%phpdir=$(BUILD_DIR_32)%"  | \
   106 	 sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \
   108 	 sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \
   107 	 sed -e "s%$PHP_AUTOCONF   || exit 1%$PHP_AUTOCONF -f   || exit 1%" | \
   109 	 sed -e "s%$PHP_AUTOCONF   || exit 1%$PHP_AUTOCONF -f   || exit 1%" | \
   108 	 sed -e "s%$PHP_AUTOHEADER || exit 1%$PHP_AUTOHEADER -f || exit 1%" | \
   110 	 sed -e "s%$PHP_AUTOHEADER || exit 1%$PHP_AUTOHEADER -f || exit 1%" | \
   109 	 sed -e 's%(cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build)%(cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build)%' | \
   111 	 sed -e 's%(cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build)%(cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build)%' | \
   110 	 sed -e "s%^builddir=.*%builddir=$(BUILD_DIR_32)%" \
   112 	 sed -e "s%^builddir=.*%builddir=$(BUILD_DIR_32)%" \
   111 	 > phpize-proto ; \
   113 	 > phpize-proto ; \
   112 	chmod 755 phpize-proto ) ; \
   114 	chmod 755 phpize-proto ) ; \
   113 	( cat $(BUILD_DIR_32)/scripts/php-config | \
   115 	( cat $(BUILD_DIR_32)/scripts/php-config | \
   114 	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
   116 	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
   115 	 sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \
   117 	 sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \
   116 	 sed -e "s%^include_dir=.*%include_dir=$(SOURCE_DIR)%" \
   118 	 sed -e "s%^include_dir=.*%include_dir=$(BUILD_DIR_32)%" \
   117 	 > php-config-proto ; \
   119 	 > php-config-proto ; \
   118 	chmod 755 php-config-proto ) ; \
   120 	chmod 755 php-config-proto ) ; \
   119 	( cat $(BUILD_DIR_32)/scripts/php-config | \
   121 	( cat $(BUILD_DIR_32)/scripts/php-config | \
   120 	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
   122 	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
   121 	 sed -e "s%^prefix=.*%prefix=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \
   123 	 sed -e "s%^prefix=.*%prefix=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \
   136 		$(PROTO_DIR)/$(APACHE2_EXTDIR)/mod_php$(PHP_REL).so; \
   138 		$(PROTO_DIR)/$(APACHE2_EXTDIR)/mod_php$(PHP_REL).so; \
   137 	)
   139 	)
   138 
   140 
   139 # Ship a default php.ini to simplify ease of use.
   141 # Ship a default php.ini to simplify ease of use.
   140 FIX_CONFIG_FILES = ( \
   142 FIX_CONFIG_FILES = ( \
   141 	cd $(SOURCE_DIR); \
   143 	cd $(BUILD_DIR_32); \
   142 	$(GPATCH) -p0 -o php.ini-patched -i ../patches-other/php_ini.patch; \
   144 	$(GPATCH) -p0 -o php.ini-patched -i ../../patches-other/php_ini.patch; \
   143 	$(GSED) -e "[email protected]<<VERSION>>@$(PHP_REL)@g" < php.ini-patched > php.ini; \
   145 	$(GSED) -e "[email protected]<<VERSION>>@$(PHP_REL)@g" < php.ini-patched > php.ini; \
   144 	$(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(CONF_DIR)/php.ini; \
   146 	$(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(CONF_DIR)/php.ini; \
   145 	)
   147 	)
   146 
   148 
   147 INSTALL_DOCS = ( \
   149 INSTALL_DOCS = ( \