[oe-commits] Koen Kooi : qt4: make .pc files work with sysroot support

git version control git at git.openembedded.org
Fri Mar 19 10:16:23 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 971efeefff1520607b704cdded86deed43c459fb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=971efeefff1520607b704cdded86deed43c459fb

Author: Koen Kooi <koen at openembedded.org>
Date:   Thu Mar 18 21:16:24 2010 +0100

qt4: make .pc files work with sysroot support

---

 recipes/qt4/qt4.inc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/recipes/qt4/qt4.inc b/recipes/qt4/qt4.inc
index b6d575d..14b0a96 100644
--- a/recipes/qt4/qt4.inc
+++ b/recipes/qt4/qt4.inc
@@ -260,6 +260,13 @@ do_install() {
            sed -i -e /Requires/s#"${name}"#"${name}${QT_LIBINFIX}"#g ${D}${libdir}/pkgconfig/*.pc
     done
 
+	# QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so manually fix it up here:
+	for pc in ${D}${libdir}/pkgconfig/*.pc ; do
+		sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):includedir}:" \
+		       -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \
+		       -e 's:IP{:I${:g' $pc
+	done
+
     install -d ${D}/${libdir}/fonts
     touch ${D}/${libdir}/fonts/fontdir
 }





More information about the Openembedded-commits mailing list