aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-09-08 22:38:10 +0200
committerwsnipex <wsnipex@a1.net>2013-10-07 09:06:47 +0200
commit027b1f4b505979c443ae50db9b9f6bb7da633d5b (patch)
tree4f9a53b6d63d1244bcf61416ec0880efe15753ac
parent854e0239eeb18777fece4d002f9115c43dccccf7 (diff)
[depends] - for darwin add xz as dependency for allowing extraction of tar.xz files
-rw-r--r--tools/depends/native/Makefile3
-rw-r--r--tools/depends/native/xz-native/Makefile39
2 files changed, 41 insertions, 1 deletions
diff --git a/tools/depends/native/Makefile b/tools/depends/native/Makefile
index 8dc74a2902..6ab3d4b7c1 100644
--- a/tools/depends/native/Makefile
+++ b/tools/depends/native/Makefile
@@ -13,7 +13,7 @@ NATIVE= m4-native gettext-native autoconf-native automake-native \
ifeq ($(OS),ios)
- NATIVE += dpkg-native tar-native
+ NATIVE += dpkg-native xz-native tar-native
endif
.PHONY: $(NATIVE) native
@@ -31,6 +31,7 @@ swig-native: pcre-native
libsdl_image-native: libsdl-native libpng-native libjpeg-turbo-native tiff-native
distribute-native: python26-native
distutilscross-native: python26-native distribute-native
+tar-native: xz-native
#liblzo2 has stale packaged automake files that cause borked host/build detection
liblzo2-native: automake-native
diff --git a/tools/depends/native/xz-native/Makefile b/tools/depends/native/xz-native/Makefile
new file mode 100644
index 0000000000..81fd541ea0
--- /dev/null
+++ b/tools/depends/native/xz-native/Makefile
@@ -0,0 +1,39 @@
+include ../../Makefile.include
+PREFIX=$(NATIVEPREFIX)
+PLATFORM=$(NATIVEPLATFORM)
+DEPS= ../../Makefile.include.in Makefile
+
+# app name, version
+APPNAME=xz
+VERSION=5.0.5
+SOURCE=$(APPNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.bz2
+
+export LIBTOOL=builds/unix/libtool
+export PATH:=$(PREFIX)/bin:$(PATH)
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+APP=$(SOURCE)/src/xz/xz
+
+all: .installed-$(PLATFORM)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
+ -rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); $(CONFIGURE)
+ touch $@
+
+$(APP): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)
+
+.installed-$(PLATFORM): $(APP)
+ $(MAKE) -C $(PLATFORM) install
+
+clean:
+ $(MAKE) -C $(PLATFORM) clean
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)