summaryrefslogtreecommitdiffstats
path: root/meta/packages/perl/perl-native_5.8.8.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/perl/perl-native_5.8.8.bb')
-rw-r--r--meta/packages/perl/perl-native_5.8.8.bb55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/packages/perl/perl-native_5.8.8.bb b/meta/packages/perl/perl-native_5.8.8.bb
new file mode 100644
index 0000000000..c9d9b51771
--- /dev/null
+++ b/meta/packages/perl/perl-native_5.8.8.bb
@@ -0,0 +1,55 @@
1DESCRIPTION = "Perl is a popular scripting language."
2HOMEPAGE = "http://www.perl.org/"
3SECTION = "libs"
4LICENSE = "Artistic|GPL"
5DEPENDS = "virtual/db-native gdbm-native"
6PR = "r7"
7
8FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
9
10SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \
11 file://perl-5.8.8-gcc-4.2.patch;patch=1 \
12 file://Configure-multilib.patch;patch=1 \
13 file://perl-configpm-switch.patch;patch=1 \
14 file://native-nopacklist.patch;patch=1 \
15 file://native-no-gdbminc.patch;patch=1"
16
17S = "${WORKDIR}/perl-${PV}"
18
19inherit native
20
21do_configure () {
22 ./Configure \
23 -Dcc="${CC}" \
24 -Dcflags="${CFLAGS}" \
25 -Dldflags="${LDFLAGS}" \
26 -Dcf_by="Open Embedded" \
27 -Dprefix=${prefix} \
28 -Dvendorprefix=${prefix} \
29 -Dsiteprefix=${prefix}/local \
30 -Duseshrplib \
31 -Dusethreads \
32 -Duseithreads \
33 -Duselargefiles \
34 -Ud_dosuid \
35 -Ui_db \
36 -Ui_ndbm \
37 -Ui_gdbm \
38 -Di_shadow \
39 -Di_syslog \
40 -Duseperlio \
41 -Dman3ext=3pm \
42 -Uafs \
43 -Ud_csh \
44 -Uusesfio \
45 -Uusenm -des
46 sed 's!${STAGING_DIR}/bin!${STAGING_BINDIR}!;
47 s!${STAGING_DIR}/lib!${STAGING_LIBDIR}!' < config.sh > config.sh.new
48 mv config.sh.new config.sh
49}
50do_stage_append() {
51 # We need a hostperl link for building perl
52 ln -sf ${STAGING_BINDIR_NATIVE}/perl${PV} ${STAGING_BINDIR_NATIVE}/hostperl
53}
54
55PARALLEL_MAKE = ""