diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-20 15:19:39 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-20 15:19:39 +0000 |
commit | e09dab061470154bb14d172f79c5589d232b3c12 (patch) | |
tree | 0657681c4a60c3e7903591a0641a18d0ea6b7ac0 /meta/classes/cpan.bbclass | |
parent | 4015d48fcfec627821e9dd420b6c37fa1c60369e (diff) | |
download | poky-e09dab061470154bb14d172f79c5589d232b3c12.tar.gz |
classes: Sync with OE - mainly quoting fixes or other minor updates
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@885 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/cpan.bbclass')
-rw-r--r-- | meta/classes/cpan.bbclass | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 78b902f85d..74bbebf882 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass | |||
@@ -1,17 +1,32 @@ | |||
1 | # | ||
2 | # This is for perl modules that use the old Makefile.PL build system | ||
3 | # | ||
1 | FILES_${PN} += '${libdir}/perl5' | 4 | FILES_${PN} += '${libdir}/perl5' |
2 | EXTRA_CPANFLAGS = "" | 5 | EXTRA_CPANFLAGS = "" |
3 | 6 | ||
7 | DEPENDS += "perl-native" | ||
8 | RDEPENDS += "perl" | ||
9 | |||
4 | cpan_do_configure () { | 10 | cpan_do_configure () { |
5 | perl Makefile.PL ${EXTRA_CPANFLAGS} | 11 | perl Makefile.PL ${EXTRA_CPANFLAGS} |
6 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | 12 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then |
7 | . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh | 13 | . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh |
8 | sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" < Makefile > Makefile.new | 14 | sed -i -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:" \ |
9 | mv Makefile.new Makefile | 15 | -e "s:\(SITEARCHEXP = \).*:\1${sitearchexp}:" \ |
16 | -e "s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" \ | ||
17 | -e "s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" \ | ||
18 | -e "s:\(LDDLFLAGS.*\)${STAGING_DIR}/${BUILD_SYS}/lib:\1${STAGING_LIBDIR}:" \ | ||
19 | Makefile | ||
10 | fi | 20 | fi |
11 | } | 21 | } |
12 | 22 | ||
13 | cpan_do_compile () { | 23 | cpan_do_compile () { |
14 | oe_runmake PASTHRU_INC="${CFLAGS}" | 24 | # You must use gcc to link on sh |
25 | OPTIONS="" | ||
26 | if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then | ||
27 | OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc" | ||
28 | fi | ||
29 | oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" $OPTIONS | ||
15 | } | 30 | } |
16 | 31 | ||
17 | cpan_do_install () { | 32 | cpan_do_install () { |