components/php-5_3/php-nsapi/Makefile
author Craig Mohrman <craig.mohrman@oracle.com>
Wed, 22 Apr 2015 06:22:45 -0700
changeset 4165 cd344a63e64f
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
20854739 the phps do not build on s12-71 20460992 PHP should have some master test results to compare against
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
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    24
include ../../../make-rules/shared-macros.mk
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    25
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    26
COMPONENT_NAME=		php
3727
425608dcd0e3 19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents: 2225
diff changeset
    27
COMPONENT_VERSION=	5.3.29
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH= \
3727
425608dcd0e3 19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents: 2225
diff changeset
    31
    sha256:c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    32
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
    33
COMPONENT_PROJECT_URL=	http://www.php.net/
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    34
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    35
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    36
# webserver7-spi only for php NSAPI
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    37
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    38
COMPONENT_NAME_1=	webserver7-spi
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    39
#COMPONENT_VERSION_1=	NONE
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    40
COMPONENT_SRC_1=	$(COMPONENT_NAME_1)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    41
COMPONENT_ARCHIVE_1=	$(COMPONENT_NAME_1).tar.bz2
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    42
COMPONENT_ARCHIVE_HASH_1= \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    43
    sha256:9739fe99ed270955546313322775940c6b7e8eb802707d248342406ebe5b1c97
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    44
#
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    45
# The Netscape server?
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    46
# Came from Sun's Netscape (web stack) group originally?
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    47
COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    48
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    49
PATCH_DIR = ../php-sapi/patches
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    50
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    51
include ../php-sapi/php.mk
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    52
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3727
diff changeset
    53
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
    54
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
    55
include $(WS_MAKE_RULES)/ips.mk
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    56
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    57
include ../common.mk
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    58
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    59
COMPONENT_POST_UNPACK_ACTION += && ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
    60
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    61
	$(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    62
	cd $(COMPONENT_DIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    63
	$(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    64
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    65
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    66
CONFIGURE_OPTIONS  += \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    67
	--disable-all \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    68
	$(COMMON_CONFIG_OPTIONS) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    69
	--with-config-file-path=$(CONF_DIR) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    70
	--with-config-file-scan-dir=$(CONF_DIR)/conf.d \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    71
	--disable-cgi \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    72
	--disable-fastcgi \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    73
	--enable-discard-path \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    74
	--enable-maintainer-zts \
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-bz2=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    78
	--with-curl=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    79
	--with-gd=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    80
	--with-gettext=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    81
	--with-iconv=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    82
	--with-imap=shared,$(IMAP_DIR) \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    83
	--with-imap-ssl=shared,/usr \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    84
	--with-ldap=shared \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    85
	--with-mysql=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    86
	--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
    87
	--with-mysqli=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    88
	--with-nsapi=$(COMPONENT_DIR)/webserver7-spi \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    89
	--with-openssl=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    90
	--with-pear=$(PEAR_DIR) \
1654
6f9989ec7bd5 PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1402
diff changeset
    91
	--with-pdo-mysql=shared,mysqlnd \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    92
	--with-pdo-sqlite=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    93
	--with-snmp=shared,/usr \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    94
	--with-sqlite3=shared \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    95
	--with-tidy=shared,/usr
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    96
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    97
CONFIGURE_ENV += $(ZTS_CONF_ENVLINE)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    98
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    99
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
   100
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   101
	cat $(BUILD_DIR_32)/scripts/phpize | \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   102
	 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
   103
	 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
   104
	 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
   105
	 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
   106
	 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
   107
	 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
   108
	 > phpize-proto.zts ; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   109
	chmod 755 phpize-proto.zts )
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   110
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   111
ADD_NSAPI_MODULE_SUPPORT = ( \
2211
a99bbd5139c0 19978720 php manual patches need adjusting after new gpatch introduced
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1755
diff changeset
   112
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   113
	$(MKDIR) $(PROTO_DIR)/$(TOP_DIR)/nsapi/; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   114
	$(CP) $(BUILD_DIR_32)/libs/libphp5.so \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   115
		$(PROTO_DIR)/$(TOP_DIR)/nsapi/libphp5.so; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   116
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   117
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   118
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
   119
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   120
	cd $(COMPONENT_DIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   121
	$(GSED) -e "s@extension_dir = \(.*\)@extension_dir=$(PHP_ROOT_ZTS_EXT)@"< ../php-sapi/build/prototype/$(MACH)/$(CONFDIR)/php.ini > php.ini; \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   122
	$(MKDIR) $(PROTO_DIR)/$(NSAPI_CONFDIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   123
	$(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(NSAPI_CONFDIR); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   124
	)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   125
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   126
COMPONENT_INSTALL_TARGETS = libphp5.la install-modules
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   127
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   128
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
   129
	set -e; \
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   130
	$(ADD_NSAPI_MODULE_SUPPORT); \
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   131
	$(FIX_CONFIG_FILES); \
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
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   134
CLEAN_PATHS += webserver7-spi phpize-proto.zts php.ini
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   135
4165
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   136
# 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
   137
$(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
   138
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2211
diff changeset
   139
configure:	$(CONFIGURE_32)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2211
diff changeset
   140
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   141
build:		$(BUILD_32)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   142
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   143
install:	$(INSTALL_32)
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   144
4165
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   145
# 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
   146
# 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
   147
# 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
   148
# 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
   149
# 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
   150
# test and compare results.
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   151
# 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
   152
# $ gmake build
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   153
# $ gmake -i -k test
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   154
# 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
   155
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   156
# test failures; keep going
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   157
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
   158
cd344a63e64f 20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents: 3817
diff changeset
   159
# 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
   160
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
   161
846
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   162
test:		$(TEST_32)
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
# php-sapi does the publish
fe258446a1ae 6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
   165
publish:	install