changeset 1199:762fcdbfa1c6

handle *.bz2 files as *.tar.bz2 This is needed for package openal.
author Martin Gerhardy <martin.gerhardy@gmail.com>
date Sun, 26 Sep 2010 16:51:42 +0200
parents 26fc031aab3e
children d516fda09eef 406970e1c795
files Makefile
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Sep 26 16:38:48 2010 +0200
+++ b/Makefile	Sun Sep 26 16:51:42 2010 +0200
@@ -36,9 +36,10 @@
     $(if $(filter %.tgz,     $(1)),tar xzf '$(1)', \
     $(if $(filter %.tar.gz,  $(1)),tar xzf '$(1)', \
     $(if $(filter %.tar.bz2, $(1)),tar xjf '$(1)', \
+    $(if $(filter %.bz2,     $(1)),tar xjf '$(1)', \
     $(if $(filter %.tar.lzma,$(1)),xz -dc -F lzma '$(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))