components/php-5_3/php-sapi/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Mon, 27 Apr 2015 10:19:50 -0500
changeset 4196 d697072a92f5
parent 4165 cd344a63e64f
child 4339 6501cf9c29f9
permissions -rw-r--r--
19782029 userland should be able to build from SCM repositories
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     1
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     3
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     7
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    12
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    18
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    20
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3727
diff changeset
    21
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    22
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    24
934
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    25
# NOTE:
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    26
#    Currently the version numbers in the package manifests, one
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    27
#    level up, are manually set because the COMPONENT_VERSION, like
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    28
#    below, is not available at the top level where this is IPS
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    29
#    published from.
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    30
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    31
COMPONENT_NAME=		php
3727
425608dcd0e3 19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents: 2225
diff changeset
    32
COMPONENT_VERSION=	5.3.29
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    33
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
3727
425608dcd0e3 19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents: 2225
diff changeset
    36
    sha256:c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    38
COMPONENT_PROJECT_URL=	http://www.php.net/
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    39
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    40
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    41
# php documentation
934
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    42
COMPONENT_NAME_1=       php_manual_en
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    43
COMPONENT_VERSION_1=	20120717
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    44
COMPONENT_SRC_1=        $(COMPONENT_NAME_1)_$(COMPONENT_VERSION_1)
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    45
COMPONENT_ARCHIVE_1=    $(COMPONENT_SRC_1).tar.gz
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    46
COMPONENT_ARCHIVE_HASH_1= \
934
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    47
    sha256:4c5d45e5f49bb164d40154fdef57b3193e7b77e306055559e60615c8ca9a3c30
4196
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 4165
diff changeset
    48
COMPONENT_POST_UNPACK_ACTION_1= $(MV) php-chunked-xhtml $(@D)
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    49
#
934
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    50
# This next download URL is completely hocus pocus.
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    51
# php.net does not freeze their documentation to match the software versions.
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    52
# So we need to take a snapshot of PHP's documentation by downloading what
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    53
# they currently have from this URL:
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    54
# COMPONENT_ARCHIVE_URL_1=http://us.php.net/get/php_manual_en.tar.gz/from/this/mirror
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    55
# Then move that download to the name being constructed in the variables
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    56
# above.  Finally, forward a copy to the gatekeeping staff to place
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    57
# the copy in userland's download cache so that the following download URL
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    58
# will pick it up.
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
    59
COMPONENT_ARCHIVE_URL_1=http://us.php.net/get/$(COMPONENT_ARCHIVE_1)/from/this/mirror
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    60
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    61
include ./php.mk
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    62
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    63
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3727
diff changeset
    64
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3727
diff changeset
    65
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3727
diff changeset
    66
include $(WS_MAKE_RULES)/ips.mk
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    67
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    68
include ../common.mk
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    69
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS  += \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    71
	$(COMMON_CONFIG_OPTIONS) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    72
	--disable-cgi \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    73
	--disable-fastcgi \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    74
	--enable-discard-path \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    75
	--enable-ftp=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    76
	--enable-pdo=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    77
	--with-apxs2=$(APACHE_USR_PREFIX)/bin/apxs \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    78
	--with-bz2=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    79
	--with-config-file-path=$(CONF_DIR) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    80
	--with-config-file-scan-dir=$(MODULES_CONF_DIR) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    81
	--with-curl=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    82
	--with-curlwrappers \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    83
	--with-gd=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    84
	--with-gettext=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    85
	--with-iconv=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    86
	--with-imap=shared,$(IMAP_DIR) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    87
	--with-imap-ssl=shared,/usr \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    88
	--with-ldap=shared \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    89
	--with-mysql=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    90
	--with-mysql-sock=/tmp/mysql.sock \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    91
	--with-mysqli=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    92
	--with-openssl=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    93
	--with-pear=$(PEAR_DIR) \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    94
	--with-pdo-mysql=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    95
	--with-pdo-sqlite=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    96
	--with-snmp=shared,/usr \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    97
	--with-sqlite=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    98
	--with-tidy=shared,/usr \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    99
	--without-tsrm-pthreads
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   100
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   101
CONFIGURE_ENV += $(CONF_ENVLINE)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   102
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   103
COMPONENT_POST_BUILD_ACTION = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   104
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   105
	cat $(BUILD_DIR_32)/scripts/phpize | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   106
	 sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   107
	 sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   108
	 sed -e "s%^includedir=.*%includedir=$(BUILD_DIR_32)%" | \
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   109
	 sed -e "s%^phpdir=.*%phpdir=$(BUILD_DIR_32)%"  | \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   110
	 sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   111
	 sed -e "s%$PHP_AUTOCONF   || exit 1%$PHP_AUTOCONF -f   || exit 1%" | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   112
	 sed -e "s%$PHP_AUTOHEADER || exit 1%$PHP_AUTOHEADER -f || exit 1%" | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   113
	 sed -e 's%(cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build)%(cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build)%' | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   114
	 sed -e "s%^builddir=.*%builddir=$(BUILD_DIR_32)%" \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   115
	 > phpize-proto ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   116
	chmod 755 phpize-proto ) ; \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   117
	( set -e; \
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   118
	 cat $(BUILD_DIR_32)/scripts/php-config | \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   119
	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   120
	 sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   121
	 sed -e "s%^include_dir=.*%include_dir=$(BUILD_DIR_32)%" \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   122
	 > php-config-proto ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   123
	chmod 755 php-config-proto ) ; \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   124
	( set -e; \
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   125
	 cat $(BUILD_DIR_32)/scripts/php-config | \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   126
	 sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   127
	 sed -e "s%^prefix=.*%prefix=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   128
	 sed -e "s%^include_dir=.*%include_dir=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   129
	 sed -e "s%^extension_dir=.*%extension_dir=$(ZTS_MODULES_DIR)%" \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   130
	 > php-config-proto.zts ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   131
	chmod 755 php-config-proto.zts )
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   132
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   133
ADD_APACHE2_MODULE_SUPPORT = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   134
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   135
	$(MKDIR) $(PROTO_DIR)/$(APACHE2_PHP); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   136
	$(INSTALL) -m 0644 $(COMPONENT_DIR)/../Solaris/php$(PHP_REL).conf \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   137
		$(PROTO_DIR)/$(APACHE2_PHP)/php$(PHP_REL).conf; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   138
	$(GSED) -i -e "s@<<VERSION>>@$(PHP_REL)@g" \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   139
		$(PROTO_DIR)/$(APACHE2_PHP)/php$(PHP_REL).conf; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   140
	$(SYMLINK) php$(PHP_REL).conf \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   141
	                $(PROTO_DIR)/$(APACHE2_PHP)/php.conf; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   142
	$(CP) $(PROTO_DIR)/$(APACHE2_EXTDIR)/libphp5.so \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   143
		$(PROTO_DIR)/$(APACHE2_EXTDIR)/mod_php$(PHP_REL).so; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   144
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   145
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   146
# Ship a default php.ini to simplify ease of use.
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   147
# Replace the php.ini-production symlink with a copy of the real file because
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   148
# gpatch no longer follows symlinks.
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   149
FIX_CONFIG_FILES = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   150
	set -e; \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   151
	cd $(BUILD_DIR_32); \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   152
	$(RM) php.ini-production; \
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   153
	$(CP) $(SOURCE_DIR)/php.ini-production .; \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
   154
	$(GPATCH) -p0 -o php.ini-patched -i ../../patches-other/php_ini.patch; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   155
	$(GSED) -e "s@<<VERSION>>@$(PHP_REL)@g" < php.ini-patched > php.ini; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   156
	$(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(CONF_DIR)/php.ini; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   157
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   158
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   159
INSTALL_DOCS = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   160
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   161
	$(MKDIR) $(PROTO_DIR)/$(DOCDIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   162
	$(UNPACK) -r $(PROTO_DIR)/$(DOCDIR) $(COMPONENT_ARCHIVE_1); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   163
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   164
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   165
INSTALL_SAMPLES = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   166
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   167
	$(MKDIR) $(PROTO_DIR)/$(SCRIPTS_DIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   168
	$(MKDIR) $(COMPONENT_DIR)/tmp; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   169
	cd $(COMPONENT_DIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   170
	$(GSED) -e "s,\<\<INSTALL_DIR\>\>,$(PHP_ROOT)," \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   171
		-e "s,\<\<CONF_DIR\>\>,$(CONFDIR)," \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   172
		-e "s,\<\<NSAPI_CONF_DIR\>\>,$(NSAPI_CONFDIR)," \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   173
		-e "s,\<\<MODULES_CONF_DIR\>\>,$(MODULES_CONFDIR)," \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   174
		-e "s,\<\<ZTS_MODULES_CONF_DIR\>\>,$(ZTS_MODULES_CONFDIR)," \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   175
		< $(COMPONENT_DIR)/../Solaris/configure-sun-webserver \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   176
		> tmp/tmp; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   177
	$(INSTALL) -m 555 tmp/tmp \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   178
		$(PROTO_DIR)/$(SCRIPTS_DIR)/configure-sun-webserver; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   179
	cd $(PROTO_DIR)/$(PHP_BIN); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   180
	$(RM) configure-webserver7; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   181
	$(SYMLINK) ../samples/scripts/configure-sun-webserver \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   182
						configure-webserver7; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   183
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   184
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   185
# patch installation to support pear installation.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   186
PATCH_PEAR = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   187
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   188
	cd $(PROTO_DIR)/$(PHP_BIN); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   189
	$(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_pecl.patch; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   190
	$(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_php_config.patch; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   191
	cd $(PROTO_DIR)/$(PHP_LIB)/build; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   192
	$(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_Makefile_global.patch; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   193
	cd $(PROTO_DIR)/$(PEAR_DIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   194
	$(GPATCH) -N -p0 -i $(COMPONENT_DIR)/patches-other/pear_Builder_php.patch; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   195
	$(CP) $(COMPONENT_DIR)/config/pear/*.reg \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   196
					$(PROTO_DIR)/$(PEAR_DIR)/.channels/;  \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   197
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   198
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   199
# Create symbolic links
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   200
# Not strictly necessary but makes the proto area more correct.
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   201
CREATE_SYMLINKS = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   202
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   203
	cd $(PROTO_DIR)/usr/php; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   204
	$(RM) bin lib include modules doc man; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   205
	$(SYMLINK) $(PHP_REL)/bin . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   206
	$(SYMLINK) $(PHP_REL)/lib . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   207
	$(SYMLINK) $(PHP_REL)/include . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   208
	$(SYMLINK) $(PHP_REL)/modules . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   209
	$(SYMLINK) $(PHP_REL)/doc . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   210
	$(SYMLINK) $(PHP_REL)/man . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   211
	$(MKDIR) $(PROTO_DIR)/usr/bin; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   212
	cd $(PROTO_DIR)/usr/bin; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   213
	$(RM) php php-config phpize; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   214
	$(SYMLINK) ../php/$(PHP_REL)/bin/php . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   215
	$(SYMLINK) ../php/$(PHP_REL)/bin/php-config . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   216
	$(SYMLINK) ../php/$(PHP_REL)/bin/phpize . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   217
	$(SYMLINK) ../php/$(PHP_REL)/bin/phar . ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   218
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   219
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   220
COMPONENT_POST_INSTALL_ACTION = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   221
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   222
	$(ADD_APACHE2_MODULE_SUPPORT); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   223
	$(FIX_CONFIG_FILES); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   224
	$(FIX_CONFIG_FILES_2); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   225
	$(INSTALL_DOCS); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   226
	$(INSTALL_SAMPLES); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   227
	$(PATCH_PEAR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   228
	$(CREATE_SYMLINKS); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   229
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   230
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   231
# This package contains all 3 versions of php:
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   232
#	sapi, cgi, nsapi
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   233
PKG_PROTO_DIRS += $(COMPONENT_DIR)/../php-nsapi/build/prototype/$(MACH)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   234
PKG_PROTO_DIRS += $(COMPONENT_DIR)/../php-cgi/build/prototype/$(MACH)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   235
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   236
CLEAN_PATHS += phpize-proto php-config-proto php-config-proto.zts tmp
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   237
CLEAN_PATHS += php.ini-patched
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   238
4165
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   239
# Test results not quite stable but good enough for human eyes
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   240
$(SKIP_TEST_AT_TOP_LEVEL)
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   241
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2211
diff changeset
   242
configure:	$(CONFIGURE_32)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2211
diff changeset
   243
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   244
build:		$(BUILD_32)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   245
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   246
install:	$(INSTALL_32) PHP-NSAPI_INSTALL PHP-CGI_INSTALL
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   247
4165
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   248
# Besides running this test target it is also strongly advised to download
934
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
   249
# and test with:
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
   250
# Joomla!	http://www.joomla.org/
f44530931819 7177478 Problem with utility/php
Craig Mohrman <craig.mohrman@oracle.com>
parents: 846
diff changeset
   251
# WordPress	http://wordpress.org/
4165
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   252
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   253
# These test and compare results are not quite stable enough
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   254
# to use in automated testing but good enough to eye 
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   255
# ball and get a sense that php is working correctly.
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   256
# Individual tests can be run afterwards.
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   257
# Several random tests may PASS/FAIL on each run thus invalidating
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   258
# test and compare results.
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   259
# To use the master test result file do:
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   260
# $ gmake build
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   261
# $ gmake -i -k test
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   262
# because very likely the comparison phase will fail.
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   263
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   264
# test failures; keep going
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   265
COMPONENT_TEST_ARGS += -k -i
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   266
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   267
# different results for different architectures
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   268
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH$(BITS)).master
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   269
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   270
test:		$(TEST_32)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   271
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   272
../imap/build/$(MACH32)/.built:
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   273
	(cd ../imap ; $(MAKE) build)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   274
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   275
../php-nsapi/build/$(MACH32)/.installed:
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   276
	(cd ../php-nsapi ; $(MAKE) install)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   277
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   278
../php-cgi/build/$(MACH32)/.installed:
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   279
	(cd ../php-cgi ; $(MAKE) install)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   280
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   281
$(BUILD_DIR_32)/.configured:	../imap/build/$(MACH32)/.built
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   282
PHP-NSAPI_INSTALL:		../php-nsapi/build/$(MACH32)/.installed
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   283
PHP-CGI_INSTALL:		../php-cgi/build/$(MACH32)/.installed