summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-29 17:33:21 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-30 21:40:12 (GMT)
commit45d6ac63c4172b02e88e717ca958d2aeea42d1ee (patch)
treedf306f5b638db0e1065810d1e1eb1757f0324999
parent46ebdc895954e7dac1fb5a335a1e64af70153cbd (diff)
downloadbuildroot-master.tar.gz
buildroot-master.tar.bz2
perl: use <pkg>_EXTRA_DOWNLOADSHEADmaster
Instead of manually using the DOWNLOAD macro (which should remain an internal macro), this commit converts the Perl package to use <pkg>_EXTRA_DOWNLOADS, now that it has been extended to allow full URLs. [Thomas: as suggested by Yann, keep comment explaining how we handle perl-cross.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--package/perl/perl.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index 133e8aa..afa9083 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -17,6 +17,8 @@ PERL_CROSS_BASE_VERSION = 5.$(PERL_VERSION_MAJOR).2
# DO NOT refactor with the github helper (the result is not the same)
PERL_CROSS_SITE = http://raw.github.com/arsv/perl-cross/releases
PERL_CROSS_SOURCE = perl-$(PERL_CROSS_BASE_VERSION)-cross-$(PERL_CROSS_VERSION).tar.gz
+PERL_EXTRA_DOWNLOADS = $(PERL_CROSS_SITE)/$(PERL_CROSS_SOURCE)
+
PERL_CROSS_OLD_POD = perl$(subst .,,$(PERL_CROSS_BASE_VERSION))delta.pod
PERL_CROSS_NEW_POD = perl$(subst .,,$(PERL_VERSION))delta.pod
@@ -24,12 +26,6 @@ PERL_CROSS_NEW_POD = perl$(subst .,,$(PERL_VERSION))delta.pod
# be extracted over the perl sources, so we don't define that
# as a separate package. Instead, it is downloaded and extracted
# together with perl
-
-define PERL_CROSS_DOWNLOAD
- $(call DOWNLOAD,$(PERL_CROSS_SITE:/=)/$(PERL_CROSS_SOURCE))
-endef
-PERL_POST_DOWNLOAD_HOOKS += PERL_CROSS_DOWNLOAD
-
define PERL_CROSS_EXTRACT
$(call suitable-extractor,$(PERL_CROSS_SOURCE)) $(DL_DIR)/$(PERL_CROSS_SOURCE) | \
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -