diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2008-09-23 21:17:15 +0000 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2008-09-23 21:17:15 +0000 |
commit | 6956642867addc748f7f1ee2f676eb71ee275bf0 (patch) | |
tree | 9601ce8658a8e75f496a1a470c1cbed5483f7164 /classes | |
parent | 7a4ee2053a6d1b515a612c0c20d034311ed3a9ac (diff) |
pkgconfig.bbclass: unbreak stuff
* sorry I missed and did not test what autotools.bbclass really does
* let search for .pc in the source-dir and fix it there
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pkgconfig.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass index 4192a04a0e..6b9b80d90b 100644 --- a/classes/pkgconfig.bbclass +++ b/classes/pkgconfig.bbclass @@ -2,18 +2,16 @@ inherit base DEPENDS_prepend = "pkgconfig-native " -FILES_${PN}-dev += "${libdir}/pkgconfig" +do_install_prepend () { -do_install_append () { - -for i in `find ${D}/ -name "*.pc"` ; do \ +for i in `find ${S}/ -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 ${D} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do + for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do pcname=`basename $pc` cat $pc > ${PKG_CONFIG_DIR}/$pcname done |