aboutsummaryrefslogtreecommitdiff
path: root/package/perl/perl.mk
diff options
context:
space:
mode:
authorGravatar Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>2013-08-02 11:05:14 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-09-06 23:30:27 +0200
commitf8d89f051032a8835bdb77edec518e73170006c1 (patch)
treeec2976891f2a09075b7f827db208947bddb0d354 /package/perl/perl.mk
parent741cbccb746b4bda41c5a51bf2d9d8977c902439 (diff)
downloadbuildroot-f8d89f051032a8835bdb77edec518e73170006c1.tar.gz
buildroot-f8d89f051032a8835bdb77edec518e73170006c1.tar.bz2
infra: introduce suitable-extractor helper function
In order to simplify determining the right extractor tool for a given file type, this patch introduces a make function 'suitable-extractor'. Its usage is $(call suitable-extractor,filename), and it returns the path to the suitable extractor. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/perl/perl.mk')
-rw-r--r--package/perl/perl.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index 25314f041e..5ef0b24151 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -30,7 +30,7 @@ endef
PERL_POST_DOWNLOAD_HOOKS += PERL_CROSS_DOWNLOAD
define PERL_CROSS_EXTRACT
- $(INFLATE$(suffix $(PERL_CROSS_SOURCE))) $(DL_DIR)/$(PERL_CROSS_SOURCE) | \
+ $(call suitable-extractor,$(PERL_CROSS_SOURCE)) $(DL_DIR)/$(PERL_CROSS_SOURCE) | \
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
endef
PERL_POST_EXTRACT_HOOKS += PERL_CROSS_EXTRACT