intltool: Better fix of perl path not breaking native nor cross build.
authorStanislav Brabec <utx@penguin.cz>
Tue, 9 Sep 2008 19:41:39 +0000 (19:41 +0000)
committerStanislav Brabec <utx@penguin.cz>
Tue, 9 Sep 2008 19:41:39 +0000 (19:41 +0000)
packages/intltool/intltool-native_0.40.3.bb
packages/intltool/intltool_0.40.3.bb

index a90b667..b9550cc 100644 (file)
@@ -5,7 +5,7 @@ PR = "r2"
 inherit native
 DEPENDS = "libxml-parser-perl-native"
 
-export PERL = "/usr/bin/env perl"
+EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/env perl'"
 
 do_configure_prepend() {
        cd ${S}
index 218cb6d..b4000dc 100644 (file)
@@ -2,8 +2,10 @@ require intltool.inc
 
 PR = "r2"
 
+EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/perl'"
+
 do_configure_prepend() {
-       sed -i -e s:\\\$\(PERL\):/usr/bin/perl:g Makefile.am
+       sed -i -e s:\\\$\(PERL\):\$\(PERL_TARGET\):g Makefile.am
 }      
 
 do_configure_append() {