Initial Commit
- initial default booting image
This commit is contained in:
8
package/swig/Config.in.host
Normal file
8
package/swig/Config.in.host
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_HOST_SWIG
|
||||
bool "host swig"
|
||||
help
|
||||
swig is a software development tool that connects programs
|
||||
written in C and C++ with a variety of high-level
|
||||
programming languages.
|
||||
|
||||
https://www.swig.org/
|
||||
8
package/swig/swig-wrapper.in
Normal file
8
package/swig/swig-wrapper.in
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# wrapper to make swig relocatable
|
||||
|
||||
if [ -z "${SWIG_LIB}" ]; then
|
||||
export SWIG_LIB="${0%/*}/../share/swig/@SWIG_VERSION@"
|
||||
fi
|
||||
|
||||
exec "$(realpath "${0}").br_real" "$@"
|
||||
5
package/swig/swig.hash
Normal file
5
package/swig/swig.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally computed:
|
||||
sha256 2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b swig-4.1.1.tar.gz
|
||||
sha256 f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e LICENSE
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE-GPL
|
||||
sha256 7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2 LICENSE-UNIVERSITIES
|
||||
52
package/swig/swig.mk
Normal file
52
package/swig/swig.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# swig
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SWIG_VERSION_MAJOR = 4.1
|
||||
SWIG_VERSION = $(SWIG_VERSION_MAJOR).1
|
||||
SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
|
||||
HOST_SWIG_DEPENDENCIES = host-bison host-pcre2
|
||||
HOST_SWIG_CONF_OPTS = \
|
||||
--with-pcre \
|
||||
--disable-ccache \
|
||||
--without-octave
|
||||
SWIG_LICENSE = GPL-3.0+, BSD-2-Clause, BSD-3-Clause
|
||||
SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
|
||||
|
||||
# Swig has a compiled in absolute path to its data files, so it does
|
||||
# not work when copied somewhere else for the SDK. Issue was reported
|
||||
# upstream but rejected in https://github.com/swig/swig/issues/253 so
|
||||
# instead add a wrapper to work around this
|
||||
|
||||
define HOST_SWIG_INSTALL_WRAPPER
|
||||
mv -f $(HOST_DIR)/bin/swig $(HOST_DIR)/bin/swig.br_real
|
||||
$(INSTALL) -m 0755 -D package/swig/swig-wrapper.in \
|
||||
$(HOST_DIR)/bin/swig
|
||||
$(SED) 's,@SWIG_VERSION@,$(SWIG_VERSION),g' \
|
||||
$(HOST_DIR)/bin/swig
|
||||
endef
|
||||
|
||||
HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_WRAPPER
|
||||
|
||||
# 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.
|
||||
# While the PATH contains first our $(HOST_DIR)/bin, it also contains
|
||||
# /usr/bin and other system directories. Therefore, if there is an
|
||||
# installed swig3.0 on the system, it will get the preference over the
|
||||
# swig installed in $(HOST_DIR)/bin, which isn't nice. To prevent
|
||||
# this from happening we create a symbolic link swig3.0 -> swig, so that
|
||||
# our swig always gets used.
|
||||
|
||||
define HOST_SWIG_INSTALL_SYMLINK
|
||||
ln -fs swig $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
|
||||
ln -fs swig $(HOST_DIR)/bin/swig3.0
|
||||
endef
|
||||
|
||||
HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
|
||||
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
SWIG = $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
|
||||
Reference in New Issue
Block a user