]> git.sesse.net Git - vlc/commitdiff
Contribs: Add xzcat decompression tool
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 3 Feb 2015 10:39:03 +0000 (11:39 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 3 Feb 2015 10:39:41 +0000 (11:39 +0100)
contrib/src/main.mak

index 9ef4a2515724009d0bd427a907f4426dd50206c6..f0773b956c10f5888017578456144fcc99f933cf 100644 (file)
@@ -185,6 +185,10 @@ endif
 ACLOCAL_AMFLAGS += -I$(PREFIX)/share/aclocal
 export ACLOCAL_AMFLAGS
 
+#########
+# Tools #
+#########
+
 PKG_CONFIG ?= pkg-config
 ifdef HAVE_CROSS_COMPILE
 # This inhibits .pc file from within the cross-compilation toolchain sysroot.
@@ -226,6 +230,12 @@ else
 download = $(error Neither curl nor wget found!)
 endif
 
+ifeq ($(shell which xzcat >/dev/null 2>&1 || echo FAIL),)
+XZCAT = xzcat
+else
+XZCAT ?= $(error xz and lzma client not found!)
+endif
+
 ifeq ($(shell which bzcat >/dev/null 2>&1 || echo FAIL),)
 BZCAT = bzcat
 else