diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-12-13 20:03:58 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-12-13 20:03:58 +0000 |
commit | 6bcf1b6f8117ee3afc03cbe4153f613c3c376943 (patch) | |
tree | c14d82e6615d4c5eeb5f3063d954bcfd8f380895 /packages/perl | |
parent | 37b6d996ecfe7c644831dd140af52c6346f36bb4 (diff) |
fix the perl compilage. dunno if it actually works though. oh and i would really recommend a bit less fine granular module packaging...
BKrev: 41bdf5aeuXXMwHJATXoDqMN49cv0bw
Diffstat (limited to 'packages/perl')
-rw-r--r-- | packages/perl/perl_5.8.3.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/packages/perl/perl_5.8.3.bb b/packages/perl/perl_5.8.3.bb index e69de29bb2..b4f32ac6ef 100644 --- a/packages/perl/perl_5.8.3.bb +++ b/packages/perl/perl_5.8.3.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "Perl is a popular scripting language." +HOMEPAGE = "http://www.perl.org/" +LICENSE = "Artistic|GPL" +SECTION = "devel" +PRIORITY = "optional" +DEPENDS = "db3 perl-native" +PR = "r1" + +SRC_URI = "http://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \ + file://Makefile.patch;patch=1 \ + file://config.sh-arm-linux.patch;patch=1 \ + file://libperl-5.8.3-create-libperl-soname.patch;patch=1;pnum=0 \ + file://Makefile.SH.patch \ + file://config.sh-mipsel-linux" + +HOSTPERL=${STAGING_BINDIR}/perl${PV} + +do_configure() { + ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl + cp ${HOSTPERL} hostperl + cd Cross + rm Makefile.SH.patch + cp ${WORKDIR}/Makefile.SH.patch . + cp ${WORKDIR}/config.sh-mipsel-linux . + cat config.sh-${TARGET_ARCH}-${TARGET_OS} | sed -e's,./install_me_here,${D},g' > config.sh-${TARGET_ARCH}-${TARGET_OS}.new + mv config.sh-${TARGET_ARCH}-${TARGET_OS}.new config.sh-${TARGET_ARCH}-${TARGET_OS} + rm -f config + echo "ARCH = ${TARGET_ARCH}" > config + echo "OS = ${TARGET_OS}" >> config + oe_runmake patch +} + +do_compile() { + cd Cross + oe_runmake perl +} + +do_install() { + oe_runmake install + mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV} +} + +do_stage() { + install -d ${STAGING_DIR}/${HOST_SYS}/perl/ + install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/ +} + +python populate_packages_prepend () { + libdir = bb.data.expand('${libdir}/perl5/${PV}', d) + do_split_packages(d, libdir, 'auto/(.*)/', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True) + do_split_packages(d, libdir, '(.*)\.(pm|pl)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True) +} + +PACKAGES = "perl perl-misc perl-lib perl-dev perl-pod" +FILES_${PN} = "/usr/bin/perl /usr/bin/perl${PV}" +FILES_${PN}-lib = "/usr/lib/libperl.so*" +FILES_${PN}-dev = "/usr/lib/perl5/5.8.3/CORE/" +FILES_${PN}-pod = "/usr/lib/perl5/${PV}/pod" +FILES_perl-misc = "/usr/bin/" |