diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-08-08 00:51:38 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-08-08 00:51:38 (GMT) |
commit | 754f485bd2f475b6d39ab2198e48b5c9e7fd4e29 (patch) | |
tree | 55b6527cb67b878831d8e26bf51d0e8b512a454e /Makefile | |
parent | 4cc9e46f4881b0d1aa0a9464f5879a4899e3825d (diff) | |
download | mxe-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) |