diff options
Diffstat (limited to 'meta/classes/cpan.bbclass')
-rw-r--r-- | meta/classes/cpan.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 9b8431bed0..cbf428d3a2 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # This is for perl modules that use the old Makefile.PL build system | 2 | # This is for perl modules that use the old Makefile.PL build system |
3 | # | 3 | # |
4 | inherit cpan-base | 4 | inherit cpan-base perlnative |
5 | 5 | ||
6 | EXTRA_CPANFLAGS ?= "" | 6 | EXTRA_CPANFLAGS ?= "" |
7 | EXTRA_PERLFLAGS ?= "" | 7 | EXTRA_PERLFLAGS ?= "" |
@@ -10,16 +10,16 @@ EXTRA_PERLFLAGS ?= "" | |||
10 | export PERLCONFIGTARGET = "${@is_target(d)}" | 10 | export PERLCONFIGTARGET = "${@is_target(d)}" |
11 | 11 | ||
12 | # Env var which tells perl where the perl include files are | 12 | # Env var which tells perl where the perl include files are |
13 | export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE" | 13 | export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE" |
14 | export PERL_LIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" | 14 | export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" |
15 | export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" | 15 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" |
16 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}/" | 16 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/" |
17 | 17 | ||
18 | cpan_do_configure () { | 18 | cpan_do_configure () { |
19 | export PERL5LIB="${PERL_ARCHLIB}" | 19 | export PERL5LIB="${PERL_ARCHLIB}" |
20 | yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL ${EXTRA_CPANFLAGS} | 20 | yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL ${EXTRA_CPANFLAGS} |
21 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | 21 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then |
22 | . ${STAGING_LIBDIR}/perl/config.sh | 22 | . ${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh |
23 | # Use find since there can be a Makefile generated for each Makefile.PL | 23 | # Use find since there can be a Makefile generated for each Makefile.PL |
24 | for f in `find -name Makefile.PL`; do | 24 | for f in `find -name Makefile.PL`; do |
25 | f2=`echo $f | sed -e 's/.PL//'` | 25 | f2=`echo $f | sed -e 's/.PL//'` |