Makefile revision 4780
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
0bddff542cf2ae1b6595020f2f72ca482c6b438fAutomatic Updater#
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# or http://www.opensolaris.org/os/licensing.
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# See the License for the specific language governing permissions
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and limitations under the License.
c89d02f2fb4c06168236d600e86831cff324f763Mark Andrews#
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# parfait is suddenly unhappy with us (21638460)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsexport PARFAIT_BUILD=no
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updaterinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_NAME= swig
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_VERSION= 3.0.5
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_PROJECT_URL= http://www.swig.org/
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson sha256:9f4cb9e8f213f041853646f58fe5e8428d63250d05f5c943b6fa759c77322a3c
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/swig/swig/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_BUGDB= utility/swig
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntTPNO= 22223
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(WS_MAKE_RULES)/prep.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude $(WS_MAKE_RULES)/configure.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(WS_MAKE_RULES)/ips.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# This is needed because the community provided 'check' target is not viewpath aware
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --with-javaincl="$(JAVA_HOME)/include"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# The additional swig specific set of transforms to be applied to the
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# test results to try to normalize them.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_TEST_TRANSFORMS += \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater '-e "/Entering directory/d" ' \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater '-e "/Leaving directory/d" '
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# The test-suite can be run in a partialcheck mode where just SWIG is
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# executed, that is, the compile, link and running of the testcases is
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# not performed. Note that the partialcheck does not require the target
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# language to be correctly configured and detected. Just execute the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# languages that we care about and that are known to work.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_TEST_TARGETS = \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater partialcheck-guile-test-suite \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater partialcheck-lua-test-suite \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews partialcheck-perl5-test-suite \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater partialcheck-php-test-suite \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews partialcheck-python-test-suite \
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater partialcheck-ruby-test-suite
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsASLR_MODE = $(ASLR_ENABLE)
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsconfigure: $(CONFIGURE_64)
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsbuild: $(BUILD_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinstall: $(INSTALL_64)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updatertest: $(TEST_64)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewssystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += library/pcre
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterREQUIRED_PACKAGES += library/zlib
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterREQUIRED_PACKAGES += system/library
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += system/library/c++-runtime
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterREQUIRED_PACKAGES += system/library/math
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterREQUIRED_PACKAGES += system/linker
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater