aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2014-07-29 20:18:14 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-29 20:22:37 +0200
commit4387568bbfa1c3f533c72993cbaba1f7f4e6e015 (patch)
treef04b69fa7c8a9aef7e23df1326892d2929914667 /package
parentedeee941c8e20fa5aad8edd5448553e89e7e858c (diff)
downloadbuildroot-4387568bbfa1c3f533c72993cbaba1f7f4e6e015.tar.gz
buildroot-4387568bbfa1c3f533c72993cbaba1f7f4e6e015.tar.bz2
perl: refactor with TARGET_FINALIZE_HOOKS
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/perl/perl.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/perl/perl.mk b/package/perl/perl.mk
index e4aad7f6c5..e01570ea7d 100644
--- a/package/perl/perl.mk
+++ b/package/perl/perl.mk
@@ -122,3 +122,15 @@ endef
PERL_POST_INSTALL_STAGING_HOOKS += PERL_ADD_CORE_H
$(eval $(generic-package))
+
+define PERL_FINALIZE_TARGET
+ rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod
+ rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE
+ find $(TARGET_DIR)/usr/lib/perl5/ -name 'extralibs.ld' -print0 | xargs -0 rm -f
+ find $(TARGET_DIR)/usr/lib/perl5/ -name '*.bs' -print0 | xargs -0 rm -f
+ find $(TARGET_DIR)/usr/lib/perl5/ -name '.packlist' -print0 | xargs -0 rm -f
+ find $(TARGET_DIR)/usr/lib/perl5/ -name 'autosplit.ix' -print0 | xargs -0 rm -f
+endef
+
+TARGET_FINALIZE_HOOKS += PERL_FINALIZE_TARGET
+