904N/A#
904N/A# CDDL HEADER START
904N/A#
904N/A# The contents of this file are subject to the terms of the
904N/A# Common Development and Distribution License (the "License").
904N/A# You may not use this file except in compliance with the License.
904N/A#
904N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
904N/A# or http://www.opensolaris.org/os/licensing.
904N/A# See the License for the specific language governing permissions
904N/A# and limitations under the License.
904N/A#
904N/A# When distributing Covered Code, include this CDDL HEADER in each
904N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
904N/A# If applicable, add the following below this CDDL HEADER, with the
904N/A# fields enclosed by brackets "[]" replaced with your own identifying
904N/A# information: Portions Copyright [yyyy] [name of copyright owner]
904N/A#
904N/A# CDDL HEADER END
904N/A#
4171N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
904N/A#
904N/Ainclude ../../../make-rules/shared-macros.mk
904N/A
904N/ACOMPONENT_NAME= php
904N/ACOMPONENT_VERSION= 5.3.29
904N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
904N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
904N/ACOMPONENT_ARCHIVE_HASH= \
904N/A sha256:c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091
904N/ACOMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
904N/A
904N/APATCH_DIR = ../php-sapi/patches
904N/A
904N/Ainclude ../php-sapi/php.mk
904N/A
904N/Ainclude $(WS_MAKE_RULES)/prep.mk
904N/Ainclude $(WS_MAKE_RULES)/configure.mk
904N/Ainclude $(WS_MAKE_RULES)/ips.mk
904N/A
3469N/Ainclude ../common.mk
904N/A
904N/ACONFIGURE_OPTIONS += \
904N/A --disable-all \
904N/A $(COMMON_CONFIG_OPTIONS) \
904N/A --with-config-file-path=$(NSAPI_CONF_DIR) \
904N/A --with-config-file-scan-dir=$(MODULES_CONF_DIR) \
904N/A --disable-discard-path \
904N/A --enable-cgi \
904N/A --enable-fastcgi \
904N/A --enable-force-cgi-redirect
904N/A
904N/ACONFIGURE_ENV += $(CONF_ENVLINE)
4171N/A
4171N/ACOMPONENT_INSTALL_TARGETS = install-sapi
4171N/A
4171N/A# Test results not quite stable but good enough for human eyes
4171N/A$(SKIP_TEST_AT_TOP_LEVEL)
4171N/A
configure: $(CONFIGURE_32)
build: $(BUILD_32)
install: $(INSTALL_32)
# These test and compare results are not quite stable enough
# to use in automated testing but good enough to eye
# ball and get a sense that php is working correctly.
# Individual tests can be run afterwards.
# Several random tests may PASS/FAIL on each run thus invalidating
# test and compare results.
# To use the master test result file do:
# $ gmake build
# $ gmake -i -k test
# because very likely the comparison phase will fail.
# test failures; keep going
COMPONENT_TEST_ARGS += -k -i
# different results for different architectures
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH$(BITS)).master
test: $(TEST_32)
# php-sapi does the publish
publish: install