diff options
Diffstat (limited to 'meta/recipes-qt/qt4')
-rw-r--r-- | meta/recipes-qt/qt4/qt4-x11-free.inc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc index f391028699..04b788560a 100644 --- a/meta/recipes-qt/qt4/qt4-x11-free.inc +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc | |||
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com" | |||
5 | SECTION = "x11/libs" | 5 | SECTION = "x11/libs" |
6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | 6 | DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" |
7 | 7 | ||
8 | INC_PR = "r32" | 8 | INC_PR = "r33" |
9 | 9 | ||
10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " | 10 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " |
11 | QT_GLFLAGS_qemux86 = "-opengl" | 11 | QT_GLFLAGS_qemux86 = "-opengl" |
@@ -16,3 +16,17 @@ QT_BASE_LIB ?= "libqt" | |||
16 | 16 | ||
17 | inherit qt4x11 | 17 | inherit qt4x11 |
18 | 18 | ||
19 | do_install_append() { | ||
20 | # fix pkgconfig, libtool and prl files | ||
21 | sed -i -e 's#I/usr/include#Iincludedir}#g' \ | ||
22 | -e 's#Iin#I${in#g' \ | ||
23 | ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc | ||
24 | |||
25 | # QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so | ||
26 | # manually fix it up here: | ||
27 | for pc in ${D}${libdir}/pkgconfig/*.pc ; do | ||
28 | sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \ | ||
29 | -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \ | ||
30 | -e 's:IP{:I${:g' $pc | ||
31 | done | ||
32 | } | ||