[Buildroot] [git commit] perl-gd: fix build of native part

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 1 22:13:08 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=9475997b247a21b654ebad2f41c1d9a16a3bd751
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

EUMM don't find .xs file in subdirectory (only .pm files are handled)
So, let move lib/GD.xs in the root directory.

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/perl-gd/perl-gd.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/perl-gd/perl-gd.mk b/package/perl-gd/perl-gd.mk
index ea8fd5c..2ad966c 100644
--- a/package/perl-gd/perl-gd.mk
+++ b/package/perl-gd/perl-gd.mk
@@ -12,6 +12,11 @@ PERL_GD_LICENSE = Artistic or GPLv1+
 PERL_GD_LICENSE_FILES = LICENSE
 PERL_GD_PREFER_INSTALLER = EUMM
 
+define PERL_GD_MOVE_XS
+	mv $(@D)/lib/GD.xs $(@D)/GD.xs
+endef
+PERL_GD_POST_PATCH_HOOKS += PERL_GD_MOVE_XS
+
 PERL_GD_CONF_OPTS = \
 	-options=FT,PNG \
 	-lib_gd_path=$(STAGING_DIR)/usr \


More information about the buildroot mailing list