4416N/A#
4416N/A# CDDL HEADER START
4416N/A#
4416N/A# The contents of this file are subject to the terms of the
4416N/A# Common Development and Distribution License (the "License").
4416N/A# You may not use this file except in compliance with the License.
4416N/A#
4416N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4416N/A# or http://www.opensolaris.org/os/licensing.
4416N/A# See the License for the specific language governing permissions
4416N/A# and limitations under the License.
4416N/A#
4416N/A# When distributing Covered Code, include this CDDL HEADER in each
4416N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4416N/A# If applicable, add the following below this CDDL HEADER, with the
4416N/A# fields enclosed by brackets "[]" replaced with your own identifying
4416N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4416N/A#
4416N/A# CDDL HEADER END
4416N/A#
4416N/A
4416N/A#
4416N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4416N/A#
4416N/A
4416N/A# Build intl extension separately to use Studio for proper linkage with ICU
4416N/A
4416N/Ainclude ../../../../make-rules/shared-macros.mk
4416N/Ainclude $(WS_COMPONENTS)/php/php-metadata.mk
4416N/A
4416N/Ainclude $(WS_MAKE_RULES)/prep.mk
4416N/Ainclude $(WS_MAKE_RULES)/configure.mk
4416N/A
4416N/A# CLEAN_PATHS by default only gets SOURCE_DIR, which we don't want to delete.
4416N/A# (removing BUILD_DIR is a separate rule in configure.mk)
4416N/ACLEAN_PATHS=
4416N/A
4416N/A# putting this line here - with no way to compute SOURCE_DIR in prep.mk -
4416N/A# means .prep goes in php56/intl.
4416N/ASOURCE_DIR = $(PHP_SOURCE_DIR)/ext/intl
4416N/ACLEAN_PATHS += .prep
4416N/A
4416N/A# phpize.mk will cloney SOURCE_DIR into BUILD_DIR_64
4416N/Ainclude $(PHP_TOP_DIR)/phpize.mk
4416N/A
4416N/ACONFIGURE_OPTIONS += --enable-intl=shared
4416N/A
4416N/A# The build tools (libtool?) insist on passing "-lCrun -lCstd" flags. These are
4416N/A# legacy Solaris Studio C++ runtime and standard libraries, which is wrong.
4416N/A# The only expedient method I found of removing these flags is to edit the
4416N/A# generated Makefile after configure runs.
4416N/ACOMPONENT_POST_CONFIGURE_ACTION += \
4416N/A $(GSED) -i -e 's/-lCrun//g' -e 's/-lCstd//g' $(BUILD_DIR_64)/Makefile
4416N/A
4416N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
4416N/A
4416N/ACOMPONENT_TEST_TARGETS = test
4416N/A
4416N/Aconfigure: $(CONFIGURE_64)
4416N/Abuild: $(BUILD_64)
4416N/Ainstall: $(INSTALL_64)
4416N/Atest: $(TEST_64)
4416N/A
4416N/AREQUIRED_PACKAGES += library/icu
4416N/AREQUIRED_PACKAGES += system/library/math