author | Stacy Yeh <stacy.yeh@oracle.com> |
Thu, 21 May 2015 13:48:49 -0700 | |
changeset 4339 | 6501cf9c29f9 |
parent 4165 | cd344a63e64f |
permissions | -rw-r--r-- |
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 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= php |
3727
425608dcd0e3
19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents:
2225
diff
changeset
|
26 |
COMPONENT_VERSION= 5.3.29 |
846
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
27 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_ARCHIVE_HASH= \ |
3727
425608dcd0e3
19838509 upgrade php to version 5.3.29
Craig Mohrman <craig.mohrman@oracle.com>
parents:
2225
diff
changeset
|
30 |
sha256:c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091 |
846
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
31 |
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
|
32 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
33 |
PATCH_DIR = ../php-sapi/patches |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
34 |
|
1654
6f9989ec7bd5
PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1402
diff
changeset
|
35 |
include ../php-sapi/php.mk |
6f9989ec7bd5
PSARC 2013/306 zendopcache version 7.0.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1402
diff
changeset
|
36 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3727
diff
changeset
|
37 |
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
|
38 |
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
|
39 |
include $(WS_MAKE_RULES)/ips.mk |
846
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 |
include ../common.mk |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
42 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
43 |
CONFIGURE_OPTIONS += \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
44 |
--disable-all \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
45 |
$(COMMON_CONFIG_OPTIONS) \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
46 |
--with-config-file-path=$(NSAPI_CONF_DIR) \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
47 |
--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
|
48 |
--disable-discard-path \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
49 |
--enable-cgi \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
50 |
--enable-fastcgi \ |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
51 |
--enable-force-cgi-redirect |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
52 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
53 |
CONFIGURE_ENV += $(CONF_ENVLINE) |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
54 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_INSTALL_TARGETS = install-sapi |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
56 |
|
4165
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
57 |
# 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
|
58 |
$(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
|
59 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1755
diff
changeset
|
60 |
configure: $(CONFIGURE_32) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1755
diff
changeset
|
61 |
|
846
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
62 |
build: $(BUILD_32) |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
63 |
|
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
64 |
install: $(INSTALL_32) |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
65 |
|
4165
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
66 |
# 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
|
67 |
# 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
|
68 |
# 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
|
69 |
# 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
|
70 |
# 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
|
71 |
# test and compare results. |
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
72 |
# 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
|
73 |
# $ gmake build |
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
74 |
# $ gmake -i -k test |
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
75 |
# 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
|
76 |
|
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
77 |
# test failures; keep going |
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
78 |
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
|
79 |
|
cd344a63e64f
20854739 the phps do not build on s12-71
Craig Mohrman <craig.mohrman@oracle.com>
parents:
3817
diff
changeset
|
80 |
# 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
|
81 |
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
|
82 |
|
846
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
83 |
test: $(TEST_32) |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
84 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4165
diff
changeset
|
85 |
system-test: $(SYSTEM_TEST_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4165
diff
changeset
|
86 |
|
846
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
87 |
# php-sapi does the publish |
fe258446a1ae
6714149 integrate PHP 5.3 within OpenSolaris
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff
changeset
|
88 |
publish: install |