[vlc-commits] extra/tools: add GNU tar (with J = xz support)
Rafaël Carré
git at videolan.org
Tue Nov 8 05:41:54 CET 2011
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Nov 7 23:34:24 2011 -0500| [7f2a7295080e823f220d2ff1cae82ccf31dd7d43] | committer: Rafaël Carré
extra/tools: add GNU tar (with J = xz support)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f2a7295080e823f220d2ff1cae82ccf31dd7d43
---
extras/tools/packages.mak | 3 +++
extras/tools/tools.mak | 19 ++++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index ddd8ad4..bdf5b4b 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -16,5 +16,8 @@ PKGCFG_VERSION=0.23
#PKGCFG_URL=http://downloads.videolan.org/pub/videolan/testing/contrib/pkg-config-$(PKGCFG_VERSION).tar.gz
PKGCFG_URL=http://pkgconfig.freedesktop.org/releases/pkg-config-$(PKGCFG_VERSION).tar.gz
+TAR_VERSION=1.26
+TAR_URL=$(GNU)/tar/tar-$(TAR_VERSION).tar.bz2
+
XZ_VERSION=5.0.3
XZ_URL=http://tukaani.org/xz/xz-$(XZ_VERSION).tar.bz2
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index da4fe29..deadf11 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -69,6 +69,23 @@ CLEAN_PKG += libtool
DISTCLEAN_PKG += libtool-$(LIBTOOL_VERSION).tar.gz
CLEAN_FILE += .libtool
+# GNU tar (with xz support)
+
+tar-$(TAR_VERSION).tar.bz2:
+ $(download) $(TAR_URL)
+
+tar: tar-$(TAR_VERSION).tar.bz2
+ $(UNPACK)
+ $(MOVE)
+
+.tar: tar .tar
+ (cd $<; ./configure --prefix=$(PREFIX) && make && make install)
+ touch $@
+
+CLEAN_PKG += tar
+DISTCLEAN_PKG += tar-$(tar_VERSION).tar.bz2
+CLEAN_FILE += .tar
+
# xz
xz-$(XZ_VERSION).tar.bz2:
@@ -78,7 +95,7 @@ xz: xz-$(XZ_VERSION).tar.bz2
$(UNPACK)
$(MOVE)
-.xz: xz
+.xz: xz .tar
(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
touch $@
More information about the vlc-commits
mailing list