swig: 64-bit only
[unleashed-userland.git] / components / developer / swig / Makefile
blob3783dc0f3d3a2619c5f2d8760a4ed644901f86bb
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= swig
26 COMPONENT_VERSION= 3.0.10
27 COMPONENT_SUMMARY= Simplified Wrapper and Interface Generator
28 COMPONENT_PROJECT_URL= http://www.swig.org/
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31 COMPONENT_ARCHIVE_HASH= \
32 sha256:2939aae39dec06095462f1b95ce1c958ac80d07b926e48871046d17c0094f44c
33 COMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/swig/$(COMPONENT_ARCHIVE)
34 COMPONENT_FMRI= developer/swig
35 COMPONENT_CLASSIFICATION= Development/Other Languages
36 COMPONENT_LICENSE= GPLv3
38 include $(WS_MAKE_RULES)/prep.mk
39 include $(WS_MAKE_RULES)/configure.mk
40 include $(WS_MAKE_RULES)/ips.mk
42 PATH=$(JAVA_HOME)/bin:/usr/bin
44 # This is needed because the community provided 'check' target is not viewpath aware
45 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
47 PHP.32=/usr/php/5.6/bin/php
48 PHP.64=/usr/php/5.6/bin/$(MACH64)/php
49 PHP=$(PHP.$(BITS))
51 CONFIGURE_ENV += JAVA_HOME="$(JAVA_HOME)"
52 CONFIGURE_OPTIONS += --with-javaincl="$(JAVA_HOME)/include"
53 CONFIGURE_OPTIONS += --with-python="$(PYTHON)"
54 CONFIGURE_OPTIONS += --with-perl="$(PERL)"
55 CONFIGURE_OPTIONS += --with-php="$(PHP)"
56 CONFIGURE_OPTIONS += --with-ruby="$(RUBY)"
58 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
60 ASLR_MODE = $(ASLR_ENABLE)
62 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
64 # The additional swig specific set of transforms to be applied to the
65 # test results to try to normalize them.
66 COMPONENT_TEST_TRANSFORMS += \
67 '-e "/Entering directory/d" ' \
68 '-e "/Leaving directory/d" '
70 # The test-suite can be run in a partialcheck mode where just SWIG is
71 # executed, that is, the compile, link and running of the testcases is
72 # not performed. Note that the partialcheck does not require the target
73 # language to be correctly configured and detected. Just execute the
74 # languages that we care about and that are known to work.
75 COMPONENT_TEST_TARGETS = \
76 partialcheck-guile-test-suite \
77 partialcheck-lua-test-suite \
78 partialcheck-perl5-test-suite \
79 partialcheck-php-test-suite \
80 partialcheck-python-test-suite \
81 partialcheck-ruby-test-suite
83 # common targets
84 build: $(BUILD_64)
86 install: $(INSTALL_64)
88 test: $(TEST_64)
90 REQUIRED_PACKAGES += developer/java/openjdk7
91 REQUIRED_PACKAGES += developer/parser/bison
92 REQUIRED_PACKAGES += library/pcre
93 REQUIRED_PACKAGES += library/zlib
94 REQUIRED_PACKAGES += runtime/lua
95 REQUIRED_PACKAGES += runtime/ocaml
96 REQUIRED_PACKAGES += runtime/perl-522
97 REQUIRED_PACKAGES += runtime/python-27
98 REQUIRED_PACKAGES += runtime/ruby-23
99 REQUIRED_PACKAGES += system/library
100 REQUIRED_PACKAGES += system/library/g++-6-runtime
101 REQUIRED_PACKAGES += system/library/gcc-6-runtime
102 REQUIRED_PACKAGES += web/php-56