summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl-native_5.12.2.bb25
1 files changed, 15 insertions, 10 deletions
diff --git a/meta/recipes-devtools/perl/perl-native_5.12.2.bb b/meta/recipes-devtools/perl/perl-native_5.12.2.bb
index 14da569ba7..a634da5c23 100644
--- a/meta/recipes-devtools/perl/perl-native_5.12.2.bb
+++ b/meta/recipes-devtools/perl/perl-native_5.12.2.bb
@@ -4,8 +4,7 @@ SECTION = "libs"
4LICENSE = "Artistic|GPL" 4LICENSE = "Artistic|GPL"
5LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ 5LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
6 file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" 6 file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
7DEPENDS = "virtual/db-native gdbm-native" 7PR = "r3"
8PR = "r2"
9 8
10LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ 9LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
11 file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" 10 file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
@@ -29,19 +28,21 @@ do_configure () {
29 -Dcflags="${CFLAGS}" \ 28 -Dcflags="${CFLAGS}" \
30 -Dldflags="${LDFLAGS}" \ 29 -Dldflags="${LDFLAGS}" \
31 -Dcf_by="Open Embedded" \ 30 -Dcf_by="Open Embedded" \
31 \
32 -Dprefix=${prefix} \ 32 -Dprefix=${prefix} \
33 -Dvendorprefix=${prefix} \ 33 -Dvendorprefix=${prefix} \
34 -Dvendorprefix=${prefix} \ 34 -Dvendorprefix=${prefix} \
35 -Dsiteprefix=${prefix} \ 35 -Dsiteprefix=${prefix} \
36 \ 36 \
37 -Dprivlib=${STAGING_LIBDIR}/perl/${PV} \ 37 -Dprivlib=.../../lib/perl/${PV} \
38 -Darchlib=${STAGING_LIBDIR}/perl/${PV} \ 38 -Darchlib=.../../lib/perl/${PV} \
39 -Dvendorlib=${STAGING_LIBDIR}/perl/${PV} \ 39 -Dvendorlib=.../../lib/perl/${PV} \
40 -Dvendorarch=${STAGING_LIBDIR}/perl/${PV} \ 40 -Dvendorarch=.../../lib/perl/${PV} \
41 -Dsitelib=${STAGING_LIBDIR}/perl/${PV} \ 41 -Dsitelib=.../../lib/perl/${PV} \
42 -Dsitearch=${STAGING_LIBDIR}/perl/${PV} \ 42 -Dsitearch=.../../lib/perl/${PV} \
43 -Duserelocatableinc="y" \
43 \ 44 \
44 -Duseshrplib \ 45 -Uuseshrplib \
45 -Dusethreads \ 46 -Dusethreads \
46 -Duseithreads \ 47 -Duseithreads \
47 -Duselargefiles \ 48 -Duselargefiles \
@@ -89,8 +90,12 @@ do_install () {
89 install $i ${D}${libdir}/perl/${PV}/CORE 90 install $i ${D}${libdir}/perl/${PV}/CORE
90 done 91 done
91 92
92 create_wrapper ${D}${bindir}/perl PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/5.12.2:${STAGING_LIBDIR}/perl/' 93 # Make sure we use /usr/bin/env perl
94 for PERLSCRIPT in `grep -rIEl '#!.*/perl' ${D}${bindir}`; do
95 sed -i -e '1s|^#!.*|#!/usr/bin/env perl|' $PERLSCRIPT
96 done
93} 97}
98
94do_install_append_nylon() { 99do_install_append_nylon() {
95 # get rid of definitions not supported by the gcc version we use for nylon... 100 # get rid of definitions not supported by the gcc version we use for nylon...
96 for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do 101 for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do