aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2012-09-13 01:39:31 -0400
committerdavilla <davilla@4pi.com>2012-09-13 01:39:31 -0400
commit13e3ada783db4fc77cc13e3edb95ba8456ae6399 (patch)
tree810b08e51a7df92f662e42b9f1846ed899ff69f3 /tools
parentdc91c917ea517ee16293e9fb6c7ccf3d7abf74da (diff)
[osx/ios] add swig to build depends
Diffstat (limited to 'tools')
-rw-r--r--tools/darwin/depends/Makefile.in2
-rw-r--r--tools/darwin/depends/config.site_ios.in2
-rw-r--r--tools/darwin/depends/config.site_ios.mk.in2
-rw-r--r--tools/darwin/depends/config.site_osx.in2
-rw-r--r--tools/darwin/depends/config.site_osx.mk.in2
-rw-r--r--tools/darwin/depends/swig/Makefile39
6 files changed, 44 insertions, 5 deletions
diff --git a/tools/darwin/depends/Makefile.in b/tools/darwin/depends/Makefile.in
index 35604607ce..45e8ea5cbb 100644
--- a/tools/darwin/depends/Makefile.in
+++ b/tools/darwin/depends/Makefile.in
@@ -1,6 +1,6 @@
include Makefile.include
-BUILDTOOLS = gas-preprocessor help2man m4 autoconf automake libtool pkg-config yasm cmake sed tar dpkg
+BUILDTOOLS = gas-preprocessor help2man m4 autoconf automake libtool pkg-config yasm cmake sed tar dpkg swig
SUBDIRS := \
Backrow pcre expat gettext readline sqlite3 \
diff --git a/tools/darwin/depends/config.site_ios.in b/tools/darwin/depends/config.site_ios.in
index b4f089560b..589e87f5c7 100644
--- a/tools/darwin/depends/config.site_ios.in
+++ b/tools/darwin/depends/config.site_ios.in
@@ -40,7 +40,7 @@ export M4=@use_toolchain@/bin/m4
export CCAS="--tag CC @use_toolchain@/bin/gas-preprocessor.pl ${CC}"
export STRIP=${platform_path}/usr/bin/strip
export RANLIB=${platform_path}/usr/bin/ranlib
-export SWIG_EXE=/usr/bin/swig
+export SWIG_EXE=@use_toolchain@/bin/swig
export JAVA_EXE=/usr/bin/java
export JAVE_HOME=`/usr/libexec/java_home`
export ACLOCAL="@use_toolchain@/bin/aclocal -I ${prefix}/share/aclocal -I @use_toolchain@/share/aclocal"
diff --git a/tools/darwin/depends/config.site_ios.mk.in b/tools/darwin/depends/config.site_ios.mk.in
index 4b4cc588be..9866f02f1b 100644
--- a/tools/darwin/depends/config.site_ios.mk.in
+++ b/tools/darwin/depends/config.site_ios.mk.in
@@ -39,7 +39,7 @@ export M4=@use_toolchain@/bin/m4
export CCAS=--tag CC @use_toolchain@/bin/gas-preprocessor.pl ${CC}
export STRIP=${platform_path}/usr/bin/strip
export RANLIB=${platform_path}/usr/bin/ranlib
-export SWIG_EXE=/usr/bin/swig
+export SWIG_EXE=@use_toolchain@/bin/swig
export JAVA_EXE=/usr/bin/java
export JAVE_HOME=`/usr/libexec/java_home`
export ACLOCAL=@use_toolchain@/bin/aclocal -I ${PREFIX}/share/aclocal -I @use_toolchain@/share/aclocal
diff --git a/tools/darwin/depends/config.site_osx.in b/tools/darwin/depends/config.site_osx.in
index 3c8416b4a8..ad50e866d8 100644
--- a/tools/darwin/depends/config.site_osx.in
+++ b/tools/darwin/depends/config.site_osx.in
@@ -54,7 +54,7 @@ export AS=${platform_path}/usr/bin/as
export M4=@use_toolchain@/bin/m4
export STRIP=${platform_path}/usr/bin/strip
export RANLIB=${platform_path}/usr/bin/ranlib
-export SWIG_EXE=/usr/bin/swig
+export SWIG_EXE=@use_toolchain@/bin/swig
export JAVA_EXE=/usr/bin/java
export JAVE_HOME=`/usr/libexec/java_home`
export ACLOCAL="@use_toolchain@/bin/aclocal -I ${prefix}/share/aclocal -I @use_toolchain@/share/aclocal"
diff --git a/tools/darwin/depends/config.site_osx.mk.in b/tools/darwin/depends/config.site_osx.mk.in
index 02bfac7601..4ab4900cf4 100644
--- a/tools/darwin/depends/config.site_osx.mk.in
+++ b/tools/darwin/depends/config.site_osx.mk.in
@@ -51,7 +51,7 @@ export AS=${platform_path}/usr/bin/as
export M4=@use_toolchain@/bin/m4
export STRIP=${platform_path}/usr/bin/strip
export RANLIB=${platform_path}/usr/bin/ranlib
-export SWIG_EXE=/usr/bin/swig
+export SWIG_EXE=@use_toolchain@/bin/swig
export JAVA_EXE=/usr/bin/java
export JAVE_HOME=`/usr/libexec/java_home`
export ACLOCAL=@use_toolchain@/bin/aclocal -I ${PREFIX}/share/aclocal -I @use_toolchain@/share/aclocal
diff --git a/tools/darwin/depends/swig/Makefile b/tools/darwin/depends/swig/Makefile
new file mode 100644
index 0000000000..88323609c2
--- /dev/null
+++ b/tools/darwin/depends/swig/Makefile
@@ -0,0 +1,39 @@
+include ../Makefile.include
+
+# lib name, version
+APPNAME=swig
+VERSION=2.0.8
+SOURCE=$(APPNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+export PATH:=$(TOOLCHAIN)/bin:$(PATH)
+CONFIGURE=./configure --prefix=$(TOOLCHAIN) \
+ --without-pcre --without-alllang --without-x
+
+APP=$(SOURCE)/bin/$(APPNAME)
+APPBIN=$(TOOLCHAIN)/bin/$(APPNAME)
+
+all: $(APPBIN)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
+ rm -rf $(SOURCE)
+ $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ echo $(SOURCE) > .gitignore
+ cd $(SOURCE); $(CONFIGURE)
+
+$(APP): $(SOURCE)
+ make -j $(MAKE_JOBS) -C $(SOURCE)
+
+$(APPBIN):
+ make $(APP)
+ make -C $(SOURCE) install
+
+clean:
+ make -C $(SOURCE) clean
+
+distclean::
+ rm -rf $(SOURCE)