2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-10 12:29:25 +02:00
|
|
|
#
|
|
|
|
# swig
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-10 12:29:25 +02:00
|
|
|
|
2015-11-28 12:52:19 +01:00
|
|
|
SWIG_VERSION_MAJOR = 3.0
|
2017-05-10 15:00:57 +02:00
|
|
|
SWIG_VERSION = $(SWIG_VERSION_MAJOR).12
|
2013-04-10 12:29:25 +02:00
|
|
|
SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
|
2016-07-03 00:21:03 +02:00
|
|
|
HOST_SWIG_DEPENDENCIES = host-bison
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_SWIG_CONF_OPTS = \
|
2013-11-24 09:34:02 +01:00
|
|
|
--without-pcre \
|
|
|
|
--disable-ccache \
|
|
|
|
--without-octave
|
2017-03-30 15:43:39 +02:00
|
|
|
SWIG_LICENSE = GPL-3.0+, BSD-2-Clause, BSD-3-Clause
|
2013-04-10 12:29:25 +02:00
|
|
|
SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
|
|
|
|
|
2015-11-28 12:52:19 +01:00
|
|
|
# CMake looks first at swig3.0, then swig2.0 and then swig. However,
|
|
|
|
# when doing the search, it will look into the PATH for swig2.0 first,
|
|
|
|
# and then for swig.
|
2017-07-05 13:14:19 +02:00
|
|
|
# While the PATH contains first our $(HOST_DIR)/bin, it also contains
|
2015-11-28 12:52:19 +01:00
|
|
|
# /usr/bin and other system directories. Therefore, if there is an
|
|
|
|
# installed swig3.0 on the system, it will get the preference over the
|
2017-07-05 13:14:19 +02:00
|
|
|
# swig installed in $(HOST_DIR)/bin, which isn't nice. To prevent
|
2015-11-28 12:52:19 +01:00
|
|
|
# this from happening we create a symbolic link swig3.0 -> swig, so that
|
|
|
|
# our swig always gets used.
|
2014-09-22 13:31:08 +02:00
|
|
|
|
|
|
|
define HOST_SWIG_INSTALL_SYMLINK
|
2017-07-05 13:14:19 +02:00
|
|
|
ln -fs swig $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
|
2014-09-22 13:31:08 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
|
|
|
|
|
2013-04-10 12:29:25 +02:00
|
|
|
$(eval $(host-autotools-package))
|
2014-10-05 11:40:06 +02:00
|
|
|
|
2017-07-05 13:14:19 +02:00
|
|
|
SWIG = $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
|