diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/perl/perl_5.8.7.bb | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/perl/perl_5.8.7.bb')
-rw-r--r-- | meta/packages/perl/perl_5.8.7.bb | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/meta/packages/perl/perl_5.8.7.bb b/meta/packages/perl/perl_5.8.7.bb new file mode 100644 index 0000000000..456cc95c84 --- /dev/null +++ b/meta/packages/perl/perl_5.8.7.bb | |||
@@ -0,0 +1,101 @@ | |||
1 | MAINTAINER="David Karlstrom <daka@thg.se>" | ||
2 | |||
3 | include perl.inc | ||
4 | |||
5 | SRC_URI += "file://config.sh-armeb-linux \ | ||
6 | file://config.sh-arm-linux \ | ||
7 | file://config.sh-i386-linux" | ||
8 | |||
9 | PR = "r15" | ||
10 | |||
11 | do_configure() { | ||
12 | ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl | ||
13 | cp ${HOSTPERL} hostperl | ||
14 | cd Cross | ||
15 | rm Makefile.SH.patch | ||
16 | cp ${WORKDIR}/Makefile.SH.patch . | ||
17 | cp ${WORKDIR}/config.sh-mipsel-linux . | ||
18 | cp ${WORKDIR}/config.sh-i686-linux . | ||
19 | cp ${WORKDIR}/config.sh-i386-linux . | ||
20 | cp ${WORKDIR}/config.sh-armeb-linux . | ||
21 | #perl insists on an extra config.sh for arm EABI | ||
22 | cp config.sh-arm-linux config.sh-arm-linux-gnueabi | ||
23 | # nslu2 LE uclibc builds do not work with the default config.sh | ||
24 | if test "${MACHINE}" = nslu2 | ||
25 | then | ||
26 | rm -f ./config.sh-arm-linux | ||
27 | cp ${WORKDIR}/config.sh-arm-linux . | ||
28 | fi | ||
29 | for i in config.sh-*-linux; do | ||
30 | a="`echo $i|sed -e 's,^config.sh-,,; s,-linux$,,'`" | ||
31 | newfile="`echo $i|sed -e 's,-linux$,-linux-uclibc,g'`" | ||
32 | cat $i | sed -e "s,${a}-linux,${a}-linux-uclibc,g; \ | ||
33 | s,d_sockatmark='define',d_sockatmark='undef',g;" > $newfile | ||
34 | done | ||
35 | sed -i -e 's,./install_me_here,${D},g' config.sh-${TARGET_ARCH}-${TARGET_OS} | ||
36 | rm -f config | ||
37 | echo "ARCH = ${TARGET_ARCH}" > config | ||
38 | echo "OS = ${TARGET_OS}" >> config | ||
39 | oe_runmake patch | ||
40 | } | ||
41 | |||
42 | do_install_append() { | ||
43 | ln -s libperl.so.${PV} ${D}/${libdir}/libperl.so.5 | ||
44 | sed -i -e "s,${D},,g" ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/Config_heavy.pl | ||
45 | } | ||
46 | |||
47 | # Create a perl-modules package recommending all the other perl | ||
48 | # packages (actually the non modules packages and not created too) | ||
49 | ALLOW_EMPTY_perl-modules = 1 | ||
50 | PACKAGES_append = " perl-modules" | ||
51 | RRECOMMENDS_perl-modules = "${PACKAGES}" | ||
52 | RPROVIDES_perl-lib = "perl-lib" | ||
53 | |||
54 | |||
55 | include perl-rdepends_${PV}.inc | ||
56 | |||
57 | # To create/update the perl-rdepends_${PV}.inc use this piece of ugly script (modified for your arch/paths etc): | ||
58 | # daka@DaKa2:/home/slug/slugos/tmp/work/perl-5.8.7-r14/install$ egrep -r "use|require" * | grep ";$" | egrep ".pm:use |.pm:require " | grep -v v5.6.0 | grep -v 5.00 | grep -v \$module | sed -e "s, \+, ,g" | cut -f1,2 -d" " | sed -e "s,;, ,g" | sed -e "s,(), ,g" | sed -e "s,::,-,g" | sort | uniq | tr [:upper:] [:lower:] | sed -e "s,/[^ ]\+ , += \"perl-module-,g" | sed -e "s, \?$, \",g" | sed -e "s,_,-,g" | sed -e "s,^,RDEPENDS_,g" | sed -e "s,armeb-linux,\$\{TARGET_ARCH\}-\$\{TARGET_OS\},g" | egrep -v "perl-module-5|perl-module-tk|perl-module-mac-internetconfig|perl-module-ndbm-file|perl-module-html-treebuilder|perl-module-lwp-simple|perl-module-vms-filespec|perl-module-fcgi|perl-module-vms-stdio|perl-module-mac-buildtools" > /home/slug/openembedded/packages/perl/perl-rdepends_5.8.7.inc | ||
59 | |||
60 | # Some packages changed names in 5.8.7-r14, RPROVIDE them | ||
61 | RPROVIDES_perl-module-b-asmdata = "perl-module-${TARGET_SYS}-b-asmdata" | ||
62 | RPROVIDES_perl-module-b-assembler = "perl-module-${TARGET_SYS}-b-assembler" | ||
63 | RPROVIDES_perl-module-b-bblock = "perl-module-${TARGET_SYS}-b-bblock" | ||
64 | RPROVIDES_perl-module-b-bytecode = "perl-module-${TARGET_SYS}-b-bytecode" | ||
65 | RPROVIDES_perl-module-b-cc = "perl-module-${TARGET_SYS}-b-cc" | ||
66 | RPROVIDES_perl-module-b-concise = "perl-module-${TARGET_SYS}-b-concise" | ||
67 | RPROVIDES_perl-module-b-debug = "perl-module-${TARGET_SYS}-b-debug" | ||
68 | RPROVIDES_perl-module-b-deparse = "perl-module-${TARGET_SYS}-b-deparse" | ||
69 | RPROVIDES_perl-module-b-disassembler = "perl-module-${TARGET_SYS}-b-disassembler" | ||
70 | RPROVIDES_perl-module-b-lint = "perl-module-${TARGET_SYS}-b-lint" | ||
71 | RPROVIDES_perl-module-b-showlex = "perl-module-${TARGET_SYS}-b-showlex" | ||
72 | RPROVIDES_perl-module-b-stackobj = "perl-module-${TARGET_SYS}-b-stackobj" | ||
73 | RPROVIDES_perl-module-b-stash = "perl-module-${TARGET_SYS}-b-stash" | ||
74 | RPROVIDES_perl-module-b-terse = "perl-module-${TARGET_SYS}-b-terse" | ||
75 | RPROVIDES_perl-module-b-xref = "perl-module-${TARGET_SYS}-b-xref" | ||
76 | RPROVIDES_perl-module-config = "perl-module-${TARGET_SYS}-config" | ||
77 | RPROVIDES_perl-module-config-heavy = "perl-module-${TARGET_SYS}-config-heavy" | ||
78 | RPROVIDES_perl-module-encode-alias = "perl-module-${TARGET_SYS}-encode-alias" | ||
79 | RPROVIDES_perl-module-encode-cjkconstants = "perl-module-${TARGET_SYS}-encode-cjkconstants" | ||
80 | RPROVIDES_perl-module-encode-config = "perl-module-${TARGET_SYS}-encode-config" | ||
81 | RPROVIDES_perl-module-encode-encoder = "perl-module-${TARGET_SYS}-encode-encoder" | ||
82 | RPROVIDES_perl-module-encode-encoding = "perl-module-${TARGET_SYS}-encode-encoding" | ||
83 | RPROVIDES_perl-module-encode-guess = "perl-module-${TARGET_SYS}-encode-guess" | ||
84 | RPROVIDES_perl-module-encoding = "perl-module-${TARGET_SYS}-encoding" | ||
85 | RPROVIDES_perl-module-errno = "perl-module-${TARGET_SYS}-errno" | ||
86 | RPROVIDES_perl-module-io-dir = "perl-module-${TARGET_SYS}-io-dir" | ||
87 | RPROVIDES_perl-module-io-file = "perl-module-${TARGET_SYS}-io-file" | ||
88 | RPROVIDES_perl-module-io-handle = "perl-module-${TARGET_SYS}-io-handle" | ||
89 | RPROVIDES_perl-module-io-pipe = "perl-module-${TARGET_SYS}-io-pipe" | ||
90 | RPROVIDES_perl-module-io-poll = "perl-module-${TARGET_SYS}-io-poll" | ||
91 | RPROVIDES_perl-module-io-seekable = "perl-module-${TARGET_SYS}-io-seekable" | ||
92 | RPROVIDES_perl-module-io-select = "perl-module-${TARGET_SYS}-io-select" | ||
93 | RPROVIDES_perl-module-io-socket = "perl-module-${TARGET_SYS}-io-socket" | ||
94 | RPROVIDES_perl-module-ipc-msg = "perl-module-${TARGET_SYS}-ipc-msg" | ||
95 | RPROVIDES_perl-module-ipc-semaphore = "perl-module-${TARGET_SYS}-ipc-semaphore" | ||
96 | RPROVIDES_perl-module-lib = "perl-module-${TARGET_SYS}-lib" | ||
97 | RPROVIDES_perl-module-mime-quotedprint = "perl-module-${TARGET_SYS}-mime-quotedprint" | ||
98 | RPROVIDES_perl-module-o = "perl-module-${TARGET_SYS}-o" | ||
99 | RPROVIDES_perl-module-ops = "perl-module-${TARGET_SYS}-ops" | ||
100 | RPROVIDES_perl-module-safe = "perl-module-${TARGET_SYS}-safe" | ||
101 | RPROVIDES_perl-module-xsloader = "perl-module-${TARGET_SYS}-xsloader" | ||