pkgconfig.bbclass: unbreak stuff
authorHenning Heinold <heinold@inf.fu-berlin.de>
Tue, 23 Sep 2008 21:17:15 +0000 (21:17 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Tue, 23 Sep 2008 21:17:15 +0000 (21:17 +0000)
* sorry I missed and did not test what autotools.bbclass really does
* let search for .pc in the source-dir and fix it there

classes/pkgconfig.bbclass

index 4192a04..6b9b80d 100644 (file)
@@ -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