[oe-commits] : pkgconfig.bbclass: fix some bugs and add enhancement
OE GIT Trial
gittrial at amethyst.openembedded.net
Mon Sep 22 22:09:46 UTC 2008
Module: OE.dev
Branch: master
Commit: 4af383a2c539580faf17510543daad01987c12f4
URL: http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=4af383a2c539580faf17510543daad01987c12f4
Author: <woglinde2 at openembedded.org>
Date: Mon Sep 22 20:22:34 2008 +0000
pkgconfig.bbclass: fix some bugs and add enhancement
* add ${libdir}/pkgconfig to FILES_${PN}-dev per default
so all .pc files ends up in the right package
* fix QA errors when the .pc file contains bad PATH's at install
stage
* fix do_stage_append dont look up the sourcedir, look up in
image-dir to stage the .pc files
---
classes/pkgconfig.bbclass | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass
index d65f8a6..4192a04 100644
--- a/classes/pkgconfig.bbclass
+++ b/classes/pkgconfig.bbclass
@@ -2,9 +2,18 @@ inherit base
DEPENDS_prepend = "pkgconfig-native "
+FILES_${PN}-dev += "${libdir}/pkgconfig"
+
+do_install_append () {
+
+for i in `find ${D}/ -name "*.pc"` ; do \
+ sed -i -e 's:-L${STAGING_LIBDIR}::g' $i
+ done
+}
+
do_stage_append () {
install -d ${PKG_CONFIG_DIR}
- for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
+ for pc in `find ${D} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
cat $pc > ${PKG_CONFIG_DIR}/$pcname
done
More information about the Openembedded-commits
mailing list