#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# NOTE:
# Currently the version numbers in the package manifests, one
# level up, are manually set because the COMPONENT_VERSION, like
# below, is not available at the top level where this is IPS
# published from.
#
# php documentation
#
# This next download URL is completely hocus pocus.
# php.net does not freeze their documentation to match the software versions.
# So we need to take a snapshot of PHP's documentation by downloading what
# they currently have from this URL:
# COMPONENT_ARCHIVE_URL_1=http://us.php.net/get/php_manual_en.tar.gz/from/this/mirror
# Then move that download to the name being constructed in the variables
# above. Finally, forward a copy to the gatekeeping staff to place
# the copy in userland's download cache so that the following download URL
# will pick it up.
CONFIGURE_OPTIONS += \
--with-curlwrappers \
CONFIGURE_ENV += $(CONF_ENVLINE)
set -e; \
sed -e 's%(cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build)%(cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build)%' | \
( set -e; \
( set -e; \
> php-config-proto.zts ; \
chmod 755 php-config-proto.zts )
set -e; \
)
# Ship a default php.ini to simplify ease of use.
# Replace the php.ini-production symlink with a copy of the real file because
# gpatch no longer follows symlinks.
set -e; \
)
set -e; \
)
set -e; \
)
# patch installation to support pear installation.
set -e; \
)
# Create symbolic links
# Not strictly necessary but makes the proto area more correct.
set -e; \
)
set -e; \
)
# This package contains all 3 versions of php:
# sapi, cgi, nsapi
# Test results not quite stable but good enough for human eyes
# Besides running this test target it is also strongly advised to download
# and test with:
# Joomla! http://www.joomla.org/
# WordPress http://wordpress.org/
# 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.
# 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
test: $(TEST_32)