summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan_build.bbclass
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2014-08-27 07:21:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 23:44:36 +0100
commit00317221bf462e99d3f30e0b075dfe894d80acf1 (patch)
treeace8b66771666a6c888ce2ffc5e6e21fbcbcc8c0 /meta/classes/cpan_build.bbclass
parentfa9bb3070bac86802f3a894797681386472e95a2 (diff)
downloadpoky-00317221bf462e99d3f30e0b075dfe894d80acf1.tar.gz
classes/cpan_build.bbclass: add EXTRA_CPAN_BUILD_FLAGS
Some packages have additional configuration options that are currently not accessible through cpan_build.bbclass. Similar to cpan.bbclass, add EXTRA_CPAN_BUILD_FLAGS to pass the optional parameters to perl Build.PL. (From OE-Core rev: bef6c3f4ebcd19ea3845aab27a165c370102b62c) Signed-off-by: Tim Orling <TicoTimo@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan_build.bbclass')
-rw-r--r--meta/classes/cpan_build.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass
index 5b0ad61b4c..2eb8162314 100644
--- a/meta/classes/cpan_build.bbclass
+++ b/meta/classes/cpan_build.bbclass
@@ -3,6 +3,8 @@
3# 3#
4inherit cpan-base perlnative 4inherit cpan-base perlnative
5 5
6EXTRA_CPAN_BUILD_FLAGS ?= ""
7
6# Env var which tells perl if it should use host (no) or target (yes) settings 8# Env var which tells perl if it should use host (no) or target (yes) settings
7export PERLCONFIGTARGET = "${@is_target(d)}" 9export PERLCONFIGTARGET = "${@is_target(d)}"
8export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" 10export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
@@ -36,7 +38,8 @@ cpan_build_do_configure () {
36 --install_path script=${bindir} \ 38 --install_path script=${bindir} \
37 --install_path bin=${bindir} \ 39 --install_path bin=${bindir} \
38 --install_path bindoc=${mandir}/man1 \ 40 --install_path bindoc=${mandir}/man1 \
39 --install_path libdoc=${mandir}/man3 41 --install_path libdoc=${mandir}/man3 \
42 ${EXTRA_CPAN_BUILD_FLAGS}
40} 43}
41 44
42cpan_build_do_compile () { 45cpan_build_do_compile () {