summaryrefslogtreecommitdiffstats
path: root/meta/packages/perl/perl_5.8.7.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/perl/perl_5.8.7.bb
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-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.bb101
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 @@
1MAINTAINER="David Karlstrom <daka@thg.se>"
2
3include perl.inc
4
5SRC_URI += "file://config.sh-armeb-linux \
6 file://config.sh-arm-linux \
7 file://config.sh-i386-linux"
8
9PR = "r15"
10
11do_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
42do_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)
49ALLOW_EMPTY_perl-modules = 1
50PACKAGES_append = " perl-modules"
51RRECOMMENDS_perl-modules = "${PACKAGES}"
52RPROVIDES_perl-lib = "perl-lib"
53
54
55include 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
61RPROVIDES_perl-module-b-asmdata = "perl-module-${TARGET_SYS}-b-asmdata"
62RPROVIDES_perl-module-b-assembler = "perl-module-${TARGET_SYS}-b-assembler"
63RPROVIDES_perl-module-b-bblock = "perl-module-${TARGET_SYS}-b-bblock"
64RPROVIDES_perl-module-b-bytecode = "perl-module-${TARGET_SYS}-b-bytecode"
65RPROVIDES_perl-module-b-cc = "perl-module-${TARGET_SYS}-b-cc"
66RPROVIDES_perl-module-b-concise = "perl-module-${TARGET_SYS}-b-concise"
67RPROVIDES_perl-module-b-debug = "perl-module-${TARGET_SYS}-b-debug"
68RPROVIDES_perl-module-b-deparse = "perl-module-${TARGET_SYS}-b-deparse"
69RPROVIDES_perl-module-b-disassembler = "perl-module-${TARGET_SYS}-b-disassembler"
70RPROVIDES_perl-module-b-lint = "perl-module-${TARGET_SYS}-b-lint"
71RPROVIDES_perl-module-b-showlex = "perl-module-${TARGET_SYS}-b-showlex"
72RPROVIDES_perl-module-b-stackobj = "perl-module-${TARGET_SYS}-b-stackobj"
73RPROVIDES_perl-module-b-stash = "perl-module-${TARGET_SYS}-b-stash"
74RPROVIDES_perl-module-b-terse = "perl-module-${TARGET_SYS}-b-terse"
75RPROVIDES_perl-module-b-xref = "perl-module-${TARGET_SYS}-b-xref"
76RPROVIDES_perl-module-config = "perl-module-${TARGET_SYS}-config"
77RPROVIDES_perl-module-config-heavy = "perl-module-${TARGET_SYS}-config-heavy"
78RPROVIDES_perl-module-encode-alias = "perl-module-${TARGET_SYS}-encode-alias"
79RPROVIDES_perl-module-encode-cjkconstants = "perl-module-${TARGET_SYS}-encode-cjkconstants"
80RPROVIDES_perl-module-encode-config = "perl-module-${TARGET_SYS}-encode-config"
81RPROVIDES_perl-module-encode-encoder = "perl-module-${TARGET_SYS}-encode-encoder"
82RPROVIDES_perl-module-encode-encoding = "perl-module-${TARGET_SYS}-encode-encoding"
83RPROVIDES_perl-module-encode-guess = "perl-module-${TARGET_SYS}-encode-guess"
84RPROVIDES_perl-module-encoding = "perl-module-${TARGET_SYS}-encoding"
85RPROVIDES_perl-module-errno = "perl-module-${TARGET_SYS}-errno"
86RPROVIDES_perl-module-io-dir = "perl-module-${TARGET_SYS}-io-dir"
87RPROVIDES_perl-module-io-file = "perl-module-${TARGET_SYS}-io-file"
88RPROVIDES_perl-module-io-handle = "perl-module-${TARGET_SYS}-io-handle"
89RPROVIDES_perl-module-io-pipe = "perl-module-${TARGET_SYS}-io-pipe"
90RPROVIDES_perl-module-io-poll = "perl-module-${TARGET_SYS}-io-poll"
91RPROVIDES_perl-module-io-seekable = "perl-module-${TARGET_SYS}-io-seekable"
92RPROVIDES_perl-module-io-select = "perl-module-${TARGET_SYS}-io-select"
93RPROVIDES_perl-module-io-socket = "perl-module-${TARGET_SYS}-io-socket"
94RPROVIDES_perl-module-ipc-msg = "perl-module-${TARGET_SYS}-ipc-msg"
95RPROVIDES_perl-module-ipc-semaphore = "perl-module-${TARGET_SYS}-ipc-semaphore"
96RPROVIDES_perl-module-lib = "perl-module-${TARGET_SYS}-lib"
97RPROVIDES_perl-module-mime-quotedprint = "perl-module-${TARGET_SYS}-mime-quotedprint"
98RPROVIDES_perl-module-o = "perl-module-${TARGET_SYS}-o"
99RPROVIDES_perl-module-ops = "perl-module-${TARGET_SYS}-ops"
100RPROVIDES_perl-module-safe = "perl-module-${TARGET_SYS}-safe"
101RPROVIDES_perl-module-xsloader = "perl-module-${TARGET_SYS}-xsloader"