]> code.ossystems Code Review - openembedded-core.git/commitdiff
meta: qt4: fix postprocessing of pkg-config files
authorSimon Busch <morphis@gravedo.de>
Sun, 25 Sep 2011 12:57:43 +0000 (14:57 +0200)
committerSaul Wold <sgw@linux.intel.com>
Wed, 28 Sep 2011 06:54:28 +0000 (23:54 -0700)
When building qt4-embedded the generated and cleaned pkg-config files for qt are wrong.
The Cflags variable contains something like ${includedir}/qtopia/QtCore where
${includedir} is already /usr/include/qtopia/QtCore.

This patch reverts the fix up of the Cflags variable implemented in do_install.

Signed-off-by: Simon Busch <morphis@gravedo.de>
meta/recipes-qt/qt4/qt4-embedded.inc
meta/recipes-qt/qt4/qt4-x11-free.inc
meta/recipes-qt/qt4/qt4.inc

index 9914c61d6fec6ff2ccbabf84a7901670f2c3f331..1ede922e68f7fe1105b2ba88f34e1c12686e776a 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "libs"
 LICENSE = "LGPLv2.1 | GPLv3"
 HOMEPAGE = "http://qt.nokia.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r30"
+INC_PR = "r31"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
index 0a714be87ab91608a5667d4c356eda0ae678513a..a360ec3440af63dc6b009105909acd6ed644fc84 100644 (file)
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com"
 SECTION = "x11/libs"
 DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
 
-INC_PR = "r27"
+INC_PR = "r28"
 
 QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
 QT_GLFLAGS_qemux86 = "-opengl"
index 5545be700a65afcaa057ce9cdbff9195c1d079a9..7f3e1a478507c24fa2162aecad2d938c95c3c579 100644 (file)
@@ -293,7 +293,6 @@ do_install() {
                        -e s#'$(OE_QMAKE_LIBS_X11)'#"${OE_QMAKE_LIBS_X11}"#g \
                        -e s#" -Wl,-rpath-link,${S}/lib"##g \
                        -e s#" -Wl,-rpath-link,${libdir}"##g \
-                       -e 's#I/usr/include#Iincludedir}#g' \ 
                        -e 's#Iin#I${in#g' \
                        ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc
 
@@ -310,8 +309,7 @@ do_install() {
 
        # 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):prefix}/include:" \
-                               -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \
+               sed -i -e "s:prefix}include/${QT_DIR_NAME}/$(basename $pc .pc):prefix}/include:" \
                                -e 's:IP{:I${:g' $pc
        done