python/hypothesis: update to 6.121.0
[oi-userland.git] / components / developer / swig / Makefile
blob0d5a302d4036ff3715e4a31d3e4ee861c8af4dee
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.
22 # Copyright (c) 2023 Friedrich Kink
25 include ../../../make-rules/shared-macros.mk
27 COMPONENT_NAME= swig
28 COMPONENT_VERSION= 4.1.1
29 COMPONENT_REVISION= 2
30 COMPONENT_SUMMARY= Simplified Wrapper and Interface Generator
31 COMPONENT_PROJECT_URL= https://www.swig.org/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
34 COMPONENT_ARCHIVE_HASH= sha256:2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b
35 COMPONENT_ARCHIVE_URL= https://prdownloads.sourceforge.net/swig/$(COMPONENT_ARCHIVE)
36 COMPONENT_FMRI= developer/swig
37 COMPONENT_CLASSIFICATION= Development/Other Languages
38 COMPONENT_LICENSE= GPLv3
39 COMPONENT_LICENSE_FILE= COPYRIGHT
41 include $(WS_MAKE_RULES)/common.mk
43 PATH=$(JAVA_HOME)/bin:/usr/bin
45 # This is needed because the community provided 'check' target is not viewpath aware
46 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
48 PHP=/usr/bin/php
49 RUBY_VERSION= 3.2
51 CONFIGURE_ENV += JAVA_HOME="$(JAVA11_HOME)"
52 CONFIGURE_OPTIONS += --with-javaincl="$(JAVA11_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 ASLR_MODE = $(ASLR_ENABLE)
60 # The additional swig specific set of transforms to be applied to the
61 # test results to try to normalize them.
62 COMPONENT_TEST_TRANSFORMS += \
63 '-e "/Entering directory/d" ' \
64 '-e "/^cp:/d" ' \
65 '-e "/: Warning /d" ' \
66 '-e "/Leaving directory/d" '
68 # The test-suite can be run in a partialcheck mode where just SWIG is
69 # executed, that is, the compile, link and running of the testcases is
70 # not performed. Note that the partialcheck does not require the target
71 # language to be correctly configured and detected. Just execute the
72 # languages that we care about and that are known to work.
73 COMPONENT_TEST_TARGETS = \
74 partialcheck-guile-test-suite \
75 partialcheck-lua-test-suite \
76 partialcheck-ocaml-test-suite \
77 partialcheck-perl5-test-suite \
78 partialcheck-php-test-suite \
79 partialcheck-python-test-suite \
80 partialcheck-ruby-test-suite
82 # Build dependencies
83 PYTHON_REQUIRED_PACKAGES += runtime/python
84 PERL_REQUIRED_PACKAGES += runtime/perl
85 REQUIRED_PACKAGES += runtime/java/openjdk11
86 REQUIRED_PACKAGES += developer/parser/bison-37
87 REQUIRED_PACKAGES += runtime/lua
88 REQUIRED_PACKAGES += runtime/ocaml
89 REQUIRED_PACKAGES += library/ocaml/ocaml-findlib
90 REQUIRED_PACKAGES += runtime/ruby-32
92 # Auto-generated dependencies
93 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
94 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
95 REQUIRED_PACKAGES += library/pcre2
96 REQUIRED_PACKAGES += library/zlib
97 REQUIRED_PACKAGES += system/library