tool/ports: bare tarball support

Ref #2467
This commit is contained in:
Emery Hemingway 2017-07-27 08:59:16 -05:00 committed by Christian Helmuth
parent 604ff9ca2c
commit 812a0c9eed
1 changed files with 2 additions and 1 deletions

View File

@ -224,13 +224,14 @@ _unzip_opt = $(call _prefer,$(UNZIP_OPT($1)),$(UNZIP_OPT))
#
# Archive extraction functions for various archive types
#
_extract_function(tar) = tar xf $(ARCHIVE) -C $(DIR) $(call _tar_opt,$1)
_extract_function(tgz) = tar xfz $(ARCHIVE) -C $(DIR) $(call _tar_opt,$1)
_extract_function(tar.gz) = tar xfz $(ARCHIVE) -C $(DIR) $(call _tar_opt,$1)
_extract_function(tar.xz) = tar xfJ $(ARCHIVE) -C $(DIR) $(call _tar_opt,$1)
_extract_function(tar.bz2) = tar xfj $(ARCHIVE) -C $(DIR) $(call _tar_opt,$1)
_extract_function(zip) = unzip -o -q -d $(DIR) $(call _unzip_opt,$1) $(ARCHIVE)
_ARCHIVE_EXTS := tar.gz tar.xz tgz tar.bz2 zip
_ARCHIVE_EXTS := tar tar.gz tar.xz tgz tar.bz2 zip
#
# Function that returns the matching extraction function for a given archive