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]
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/make-rules
/shared-macros.mk
26 COMPONENT_VERSION
= 2.0.8
27 COMPONENT_PROJECT_URL
= http
://www.swig.org
/
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
30 COMPONENT_ARCHIVE_HASH
= \
31 sha256
:aeeefa20bbe1c03bacf23f0af9e7d6193e8b807b7585470615b71b1ee0c8ca4f
32 COMPONENT_ARCHIVE_URL
= http
://downloads.sourceforge.net
/project
/swig
/swig
/swig-2.0
.8/$(COMPONENT_ARCHIVE
)
33 COMPONENT_BUGDB
= utility
/swig
35 include ..
/..
/make-rules
/prep.mk
36 include ..
/..
/make-rules
/configure.mk
37 include ..
/..
/make-rules
/ips.mk
39 PATH
=$(SPRO_VROOT
)/bin
:$(JAVA_HOME
)/bin
:/usr
/bin
41 # This is needed because the community provided 'check' target is not viewpath aware
42 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
44 CONFIGURE_ENV
+= JAVA_HOME
="$(JAVA_HOME)"
45 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
46 CONFIGURE_OPTIONS
+= CXXFLAGS
="$(CXXFLAGS)"
47 CONFIGURE_OPTIONS
+= --with-javaincl
="$(JAVA_HOME)/include"
49 ASLR_MODE
= $(ASLR_ENABLE
)
52 build
: $(BUILD_32_and_64
)
54 install: $(INSTALL_32_and_64
)
56 # Fails due to deprecated OCAML example and boost library problems
57 test: $(TEST_32_and_64
)
59 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
61 include ..
/..
/make-rules
/depend.mk