aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2012-09-12 23:09:46 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2012-09-12 23:56:58 -0400
commitf3475ac556ded1b94fa78172910d9198d225b080 (patch)
treec43630c341d21c70260a0638ab22f9bff1df3466 /tools
parent128d26c58e9a072dbf5767b7579d190bcdb18e1d (diff)
[droid] add native swig
Diffstat (limited to 'tools')
-rw-r--r--tools/android/depends/swig-native/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/tools/android/depends/swig-native/Makefile b/tools/android/depends/swig-native/Makefile
new file mode 100644
index 0000000000..512203a4ba
--- /dev/null
+++ b/tools/android/depends/swig-native/Makefile
@@ -0,0 +1,41 @@
+NATIVE_BUILD=1
+include ../Makefile.include
+DEPS= ../Makefile.include Makefile
+
+# lib name, version
+LIBNAME=swig
+VERSION=2.0.8
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX) --without-alllang --without-x
+
+LIBDYLIB=$(PLATFORM)/swig
+
+CLEAN_FILES=$(ARCHIVE) $(PLATFORM)
+
+all: .installed-$(PLATFORM)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); $(CONFIGURE)
+
+$(LIBDYLIB): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)
+
+.installed-$(PLATFORM): $(LIBDYLIB)
+ $(MAKE) -C $(PLATFORM) install
+ touch $@
+
+clean:
+ $(MAKE) -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)
+