[oe-commits] Tim Orling : classes/cpan_build.bbclass: add EXTRA_CPAN_BUILD_FLAGS

git at git.openembedded.org git at git.openembedded.org
Sat Aug 30 07:39:39 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: bef6c3f4ebcd19ea3845aab27a165c370102b62c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=bef6c3f4ebcd19ea3845aab27a165c370102b62c

Author: Tim Orling <ticotimo at gmail.com>
Date:   Wed Aug 27 07:21:21 2014 -0700

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.

Signed-off-by: Tim Orling <TicoTimo at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/cpan_build.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass
index 5b0ad61..2eb8162 100644
--- a/meta/classes/cpan_build.bbclass
+++ b/meta/classes/cpan_build.bbclass
@@ -3,6 +3,8 @@
 #
 inherit cpan-base perlnative
 
+EXTRA_CPAN_BUILD_FLAGS ?= ""
+
 # Env var which tells perl if it should use host (no) or target (yes) settings
 export PERLCONFIGTARGET = "${@is_target(d)}"
 export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
@@ -36,7 +38,8 @@ cpan_build_do_configure () {
 				--install_path script=${bindir} \
 				--install_path bin=${bindir} \
 				--install_path bindoc=${mandir}/man1 \
-				--install_path libdoc=${mandir}/man3
+				--install_path libdoc=${mandir}/man3 \
+                                ${EXTRA_CPAN_BUILD_FLAGS}
 }
 
 cpan_build_do_compile () {



More information about the Openembedded-commits mailing list