summaryrefslogtreecommitdiff
path: root/perl/perl_5.8.3.oe
blob: cb5461e2ab745c064c5c685ad792b0c1528a7a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DESCRIPTION = "Perl is a popular scripting language."
SECTION = "developing"
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://Makefile.SH.patch "

FILES_${PN} += "${libdir}/perl5"

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 .
	oe_runmake patch 
}

do_compile() {
	cd Cross
	oe_runmake perl
}

do_install() {
	rm -rf install_me_here
	make install
	mv install_me_here/* ${D}
	rmdir install_me_here
}

do_stage() {
	install -d ${STAGING_DIR}/${HOST_SYS}/perl/
	install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/
}