aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/Makefile2
-rw-r--r--tools/depends/native/swig/Makefile28
-rw-r--r--tools/depends/native/swig/SWIG-VERSION4
3 files changed, 14 insertions, 20 deletions
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile
index d23c2cb5bc..f3543d2498 100644
--- a/tools/depends/native/Makefile
+++ b/tools/depends/native/Makefile
@@ -86,7 +86,7 @@ openssl: zlib
pcre2: cmake
pugixml: cmake
python3: $(EXPAT) $(LIBFFI) pkg-config zlib openssl autoconf-archive
-swig: pcre
+swig: bison cmake pcre2
tar: xz automake
TexturePacker: cmake libpng liblzo2 giflib libjpeg-turbo
wayland-scanner: expat ninja pkg-config
diff --git a/tools/depends/native/swig/Makefile b/tools/depends/native/swig/Makefile
index 045cbcc626..2e876dd001 100644
--- a/tools/depends/native/swig/Makefile
+++ b/tools/depends/native/swig/Makefile
@@ -1,41 +1,31 @@
-include ../../Makefile.include
+include ../../Makefile.include SWIG-VERSION ../../download-files.include
PREFIX=$(NATIVEPREFIX)
PLATFORM=$(NATIVEPLATFORM)
-DEPS = ../../Makefile.include Makefile ../../download-files.include
+DEPS = ../../Makefile.include Makefile SWIG-VERSION ../../download-files.include
-# lib name, version
-LIBNAME=swig
-VERSION=4.0.2
-SOURCE=$(LIBNAME)-$(VERSION)
-ARCHIVE=$(SOURCE).tar.gz
-SHA512=05e7da70ce6d9a733b96c0bcfa3c1b82765bd859f48c74759bbf4bb1467acb1809caa310cba5e2b3280cd704fca249eaa0624821dffae1d2a75097c7f55d14ed
-include ../../download-files.include
-
-# configuration settings
-CONFIGURE=./configure --prefix=$(PREFIX) --without-alllang --without-x --disable-ccache
-
-LIBDYLIB=$(PLATFORM)/swig
+LIBDYLIB=$(PLATFORM)/build/swig
all: .installed-$(PLATFORM)
$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
- rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM)/build; $(CMAKE_FOR_BUILD) $(CMAKE_OPTIONS) ..
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/build
.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM) install
+ $(MAKE) -C $(PLATFORM)/build install
touch $@
clean:
- $(MAKE) -C $(PLATFORM) clean
+ $(MAKE) -C $(PLATFORM)/build clean
rm -f .installed-$(PLATFORM)
+
distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
diff --git a/tools/depends/native/swig/SWIG-VERSION b/tools/depends/native/swig/SWIG-VERSION
new file mode 100644
index 0000000000..8258fe08c4
--- /dev/null
+++ b/tools/depends/native/swig/SWIG-VERSION
@@ -0,0 +1,4 @@
+LIBNAME=swig
+VERSION=4.2.0
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
+SHA512=b7f508b25bc6e882ed6123f6c7ad12b02a7b74de09ac6e5789968e9c2f51407d1e3dafd5ea495087b4fb0f447ecce17e6070471479c67c4265166d8342a10862