diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/perl/perl.inc | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/perl/perl.inc')
-rw-r--r-- | recipes/perl/perl.inc | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes/perl/perl.inc b/recipes/perl/perl.inc new file mode 100644 index 0000000000..00184a9dac --- /dev/null +++ b/recipes/perl/perl.inc @@ -0,0 +1,63 @@ +DESCRIPTION = "Perl is a popular scripting language." +HOMEPAGE = "http://www.perl.org/" +LICENSE = "Artistic|GPL" +SECTION = "devel" +PRIORITY = "optional" +DEPENDS = "virtual/db perl-native" + +SRC_URI = "ftp://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" + +HOSTPERL="${STAGING_BINDIR_NATIVE}/perl${PV}" + +do_compile() { + sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL + cd Cross + # You must use gcc to link on sh + OPTIONS="" + if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then + OPTIONS="LD=${TARGET_SYS}-gcc" + fi + # You must use gcc to link on powerpc also + if test ${TARGET_ARCH} = "powerpc" ; then + OPTIONS="LD=${TARGET_SYS}-gcc" + fi + + oe_runmake perl $OPTIONS +} + +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 -f perl; ln -s perl${PV} perl ) +} + +do_stage() { + install -d ${STAGING_DIR_HOST}/perl/ + install config.sh ${STAGING_DIR_HOST}/perl/ +} + +PACKAGES_DYNAMIC = "perl-module-*" + +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/(.*)(?!\.debug)/', '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) + do_split_packages(d, libdir, '(.*)\.(pm|pl)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True) +} + +PACKAGES = "perl-dbg 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/*" +FILES_${PN}-dbg += " \ + ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/.debug \ + ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/.debug \ + ${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/auto/*/*/*/.debug" + |