diff options
author | Chris Larson <clarson@kergoth.com> | 2005-03-09 11:20:46 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2005-03-09 11:20:46 +0000 |
commit | 2282c9abc0525f9cf07aa2c9ab781dbc03293a04 (patch) | |
tree | 727d8ebc525960a115e650327bc6c93a1c950693 | |
parent | 4219e8ab43016c7fc943befa6c7797e752158b4e (diff) |
Have the perl build create a config.sh-armeb-linux, based on the arm-linux one. Completely untested.
BKrev: 422edc0ewtcYZm0i-91FaO-4XFxYNQ
-rw-r--r-- | packages/perl/perl.inc | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/perl/perl.inc b/packages/perl/perl.inc index e69de29bb2..59e7ee2a5e 100644 --- a/packages/perl/perl.inc +++ b/packages/perl/perl.inc @@ -0,0 +1,69 @@ +DESCRIPTION = "Perl is a popular scripting language." +HOMEPAGE = "http://www.perl.org/" +LICENSE = "Artistic|GPL" +SECTION = "devel" +PRIORITY = "optional" +DEPENDS = "db3 perl-native" + +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://uclibc.patch;patch=1 \ + file://Makefile.SH.patch \ + file://config.sh-mipsel-linux \ + file://config.sh-i686-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 . + cp ${WORKDIR}/config.sh-i686-linux . + cat config.sh-arm-linux | sed -e "s,arm-linux,armeb-linux,g" > config.sh-armeb-linux + for i in config.sh-*-linux; do + a="`echo $i|sed -e 's,^config.sh-,,; s,-linux$,,'`" + newfile="`echo $i|sed -e 's,-linux$,-linux-uclibc,g'`" + cat $i | sed -e "s,${a}-linux,${a}-linux-uclibc,g" > $newfile + done + sed -i -e 's,./install_me_here,${D},g' 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} + ( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl ) +} + +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) + archlibdir = bb.data.expand('${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}', d) + do_split_packages(d, archlibdir, '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) + do_split_packages(d, archlibdir, '(.*)\.(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/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/" +FILES_${PN}-pod = "/usr/lib/perl5/${PV}/pod" +FILES_perl-misc = "/usr/bin/" |