summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-07-28 18:56:26 +0000
committerKoen Kooi <koen@openembedded.org>2007-07-28 18:56:26 +0000
commit0c5bd68a0aa61ffd98cae9e47f914e1066cfe44b (patch)
treee1d7864be7a1493d4ea4d8cdffc1731757e16074 /classes
parent25e7d287d8307628e083822d656d671cd75d4961 (diff)
pkgconfig.bbclass: more munging
Diffstat (limited to 'classes')
-rw-r--r--classes/pkgconfig.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass
index cd6e04731e..3256977517 100644
--- a/classes/pkgconfig.bbclass
+++ b/classes/pkgconfig.bbclass
@@ -24,7 +24,7 @@ def get_pkgconfig_mangle(d):
do_install_append () {
for pc in `find ${D} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
- sed -i ${@get_pkgconfig_mangle(d)} ${pc}
+ sed -i ${@get_pkgconfig_mangle(d)} -e 's:${D}::g' ${pc}
done
}
@@ -32,6 +32,6 @@ do_stage_append () {
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
install -d ${PKG_CONFIG_PATH}
- cat $pc | sed ${@get_pkgconfig_mangle(d)} > ${PKG_CONFIG_PATH}/$pcname
+ cat $pc | sed ${@get_pkgconfig_mangle(d)} -e 's:${D}${libdir}\S*:${STAGING_LIBDIR}:g' -e 's:${D}${prefix}/include\S*:${STAGING_INCDIR}:g' > ${PKG_CONFIG_PATH}/$pcname
done
}