Makefile revision 3817
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# or http://www.opensolaris.org/os/licensing.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# and limitations under the License.
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/shared-macros.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_NAME= swig
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_VERSION= 2.0.8
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www.swig.org/
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_HASH= \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray sha256:aeeefa20bbe1c03bacf23f0af9e7d6193e8b807b7585470615b71b1ee0c8ca4f
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/swig/swig/swig-2.0.8/$(COMPONENT_ARCHIVE)
3a5046f0538ba9fb3a9429199544a9f4b93d9a4dLubos KoscoCOMPONENT_BUGDB= utility/swig
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos KoscoTPNO= 10991
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Koscoinclude $(WS_MAKE_RULES)/prep.mk
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Koscoinclude $(WS_MAKE_RULES)/configure.mk
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscoinclude $(WS_MAKE_RULES)/ips.mk
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# This is needed because the community provided 'check' target is not viewpath aware
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += --with-javaincl="$(JAVA_HOME)/include"
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The additional swig specific set of transforms to be applied to the
cd348e325366620fe047edcc849e3c9424828599Peter Bray# test results to try to normalize them.
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos KoscoCOMPONENT_TEST_TRANSFORMS += \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray '-e "/Entering directory/d" ' \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray '-e "/Leaving directory/d" '
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# The test-suite can be run in a partialcheck mode where just SWIG is
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# executed, that is, the compile, link and running of the testcases is
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# not performed. Note that the partialcheck does not require the target
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco# language to be correctly configured and detected. Just execute the
cd348e325366620fe047edcc849e3c9424828599Peter Bray# languages that we care about and that are known to work.
cd348e325366620fe047edcc849e3c9424828599Peter BrayCOMPONENT_TEST_TARGETS = \
cd348e325366620fe047edcc849e3c9424828599Peter Bray partialcheck-guile-test-suite \
cd348e325366620fe047edcc849e3c9424828599Peter Bray partialcheck-guilescm-test-suite \
cd348e325366620fe047edcc849e3c9424828599Peter Bray partialcheck-lua-test-suite \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray partialcheck-php-test-suite \
cd348e325366620fe047edcc849e3c9424828599Peter Bray partialcheck-python-test-suite \
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco partialcheck-ruby-test-suite
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayASLR_MODE = $(ASLR_ENABLE)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Koscoconfigure: $(CONFIGURE_64)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Koscobuild: $(BUILD_64)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Koscoinstall: $(INSTALL_64)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Braytest: $(TEST_64)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayREQUIRED_PACKAGES += library/pcre
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayREQUIRED_PACKAGES += library/zlib
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayREQUIRED_PACKAGES += system/library
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayREQUIRED_PACKAGES += system/library/c++-runtime
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayREQUIRED_PACKAGES += system/library/math
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayREQUIRED_PACKAGES += system/linker
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray