Skip to content

Commit

Permalink
[osx/ios] add swig to build depends
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Sep 13, 2012
1 parent dc91c91 commit 13e3ada
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/darwin/depends/Makefile.in
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion tools/darwin/depends/config.site_ios.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/darwin/depends/config.site_ios.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/darwin/depends/config.site_osx.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/darwin/depends/config.site_osx.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 39 additions & 0 deletions tools/darwin/depends/swig/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 13e3ada

Please sign in to comment.