|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME= php |
|
26 COMPONENT_VERSION= 5.2.17 |
|
27 PHP_REL= 5.2 |
|
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= sha1:5ba7edcb5ea187687001c4ccdbb94ac48f77fa92 |
|
31 COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
|
32 |
|
33 PATCH_DIR = ../php-sapi/patches |
|
34 |
|
35 include $(WS_TOP)/make-rules/prep.mk |
|
36 include $(WS_TOP)/make-rules/configure.mk |
|
37 include $(WS_TOP)/make-rules/ips.mk |
|
38 |
|
39 include ../common.mk |
|
40 include ../php-sapi/php.mk |
|
41 |
|
42 CONFIGURE_OPTIONS += \ |
|
43 --disable-all \ |
|
44 $(COMMON_CONFIG_OPTIONS) \ |
|
45 --with-config-file-path=$(NSAPI_CONF_DIR) \ |
|
46 --with-config-file-scan-dir=$(MODULES_CONF_DIR) \ |
|
47 --disable-discard-path \ |
|
48 --enable-cgi \ |
|
49 --enable-fastcgi \ |
|
50 --enable-force-cgi-redirect |
|
51 |
|
52 CONFIGURE_ENV += $(CONF_ENVLINE) |
|
53 |
|
54 COMPONENT_INSTALL_TARGETS = install-sapi |
|
55 |
|
56 # common targets |
|
57 build: $(BUILD_32) |
|
58 |
|
59 install: $(INSTALL_32) |
|
60 |
|
61 test: $(TEST_32) |
|
62 |
|
63 # php-sapi does the publish |
|
64 publish: install |
|
65 |
|
66 ## causes loop in gmake |
|
67 ##../php-sapi/build/$(MACH32)/.installed: |
|
68 ## (cd ../php-sapi ; $(MAKE) install) |
|
69 ## |
|
70 ##$(BUILD_DIR_32)/.configured: ../php-sapi/build/$(MACH32)/.installed |
|
71 |
|
72 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
73 |
|
74 include $(WS_TOP)/make-rules/depend.mk |