aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2012-01-15 12:13:42 -0500
committerdavilla <davilla@4pi.com>2012-01-15 12:13:59 -0500
commitdb65fb577fd54a1890dbaecba931543b9bc1fa8a (patch)
tree04dfdfe407809e4f6981e2d810d34e82381609d9 /tools
parent22ee5054ec9c12996373230b7ce673f39ae396a1 (diff)
[osx/ios] add tinyxml as system lib for osx/ios
Diffstat (limited to 'tools')
-rw-r--r--tools/darwin/depends/Makefile.in2
-rw-r--r--tools/darwin/depends/tinyxml/Makefile39
2 files changed, 40 insertions, 1 deletions
diff --git a/tools/darwin/depends/Makefile.in b/tools/darwin/depends/Makefile.in
index b14a767ff8..54c67268a7 100644
--- a/tools/darwin/depends/Makefile.in
+++ b/tools/darwin/depends/Makefile.in
@@ -12,7 +12,7 @@ SUBDIRS := \
libGLEW libsdl libsdl_mixer libsdl_image \
libmicrohttpd libmodplug libbluray libyajl \
libgpg-error libgcrypt afpfs-ng \
- libplist libshairport libcec \
+ libplist libshairport libcec tinyxml \
samba python26 distribute distutilscross \
mysqlclient boost \
diff --git a/tools/darwin/depends/tinyxml/Makefile b/tools/darwin/depends/tinyxml/Makefile
new file mode 100644
index 0000000000..75fe5aed80
--- /dev/null
+++ b/tools/darwin/depends/tinyxml/Makefile
@@ -0,0 +1,39 @@
+include ../Makefile.include
+
+# lib name, version
+LIBNAME=tinyxml
+VERSION=2.6.2
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+
+LIBDYLIB=$(SOURCE)/.libs/$(LIBNAME).dylib
+
+all: $(LIBDYLIB) .installed
+
+$(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); autoreconf -vif
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -j 1 -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ rm -rf $(SOURCE) .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed
+