summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-08 00:51:38 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-08 00:51:38 (GMT)
commit754f485bd2f475b6d39ab2198e48b5c9e7fd4e29 (patch)
tree55b6527cb67b878831d8e26bf51d0e8b512a454e /Makefile
parent4cc9e46f4881b0d1aa0a9464f5879a4899e3825d (diff)
downloadmxe-754f485bd2f475b6d39ab2198e48b5c9e7fd4e29.zip
mxe-754f485bd2f475b6d39ab2198e48b5c9e7fd4e29.tar.gz
mxe-754f485bd2f475b6d39ab2198e48b5c9e7fd4e29.tar.bz2
Support .tbz2 and .txz
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1540d5a..0054b97 100644
--- a/Makefile
+++ b/Makefile
@@ -93,11 +93,13 @@ SHORT_PKG_VERSION = \
UNPACK_ARCHIVE = \
$(if $(filter %.tgz, $(1)),tar xzf '$(1)', \
$(if $(filter %.tar.gz, $(1)),tar xzf '$(1)', \
+ $(if $(filter %.tbz2, $(1)),tar xjf '$(1)', \
$(if $(filter %.tar.bz2, $(1)),tar xjf '$(1)', \
$(if $(filter %.tar.lzma,$(1)),xz -dc -F lzma '$(1)' | tar xf -, \
- $(if $(filter %.tar.xz,$(1)),xz -dc '$(1)' | tar xf -, \
+ $(if $(filter %.txz, $(1)),xz -dc '$(1)' | tar xf -, \
+ $(if $(filter %.tar.xz, $(1)),xz -dc '$(1)' | tar xf -, \
$(if $(filter %.zip, $(1)),unzip -q '$(1)', \
- $(error Unknown archive format: $(1))))))))
+ $(error Unknown archive format: $(1))))))))))
UNPACK_PKG_ARCHIVE = \
$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE))