diff options
Diffstat (limited to 'meta/recipes-qt/qt4/qt4-x11-free.inc')
-rw-r--r-- | meta/recipes-qt/qt4/qt4-x11-free.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc new file mode 100644 index 0000000000..835fc966f5 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc | |||
@@ -0,0 +1,40 @@ | |||
1 | require qt4.inc | ||
2 | |||
3 | SUMMARY = "Cross-platform UI toolkit and application framework (X11 version)" | ||
4 | DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version." | ||
5 | HOMEPAGE = "http://qt-project.org/" | ||
6 | SECTION = "x11/libs" | ||
7 | DEPENDS += "virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | ||
8 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}" | ||
9 | PROVIDES += "qt4-x11" | ||
10 | QT4DEPENDS = "" | ||
11 | |||
12 | INC_PR = "r50" | ||
13 | |||
14 | QT_GLFLAGS ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " | ||
15 | QT_GLFLAGS_qemux86 = "-opengl" | ||
16 | QT_GLFLAGS_qemuppc = "-opengl" | ||
17 | QT_X11_FLAGS ?= "-no-xinerama -no-xkb -no-gtkstyle" | ||
18 | QT_CONFIG_FLAGS += "${QT_X11_FLAGS}" | ||
19 | QT_BASE_LIB ?= "libqt" | ||
20 | |||
21 | # required by kdelibs4 | ||
22 | QT_KDE_FLAGS ?= "-accessibility -sm" | ||
23 | QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}" | ||
24 | |||
25 | inherit qt4x11 | ||
26 | |||
27 | do_install_append() { | ||
28 | # fix pkgconfig, libtool and prl files | ||
29 | sed -i -e 's#I/usr/include#Iincludedir}#g' \ | ||
30 | -e 's#Iin#I${in#g' \ | ||
31 | ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc | ||
32 | |||
33 | # QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so | ||
34 | # manually fix it up here: | ||
35 | for pc in ${D}${libdir}/pkgconfig/*.pc ; do | ||
36 | sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \ | ||
37 | -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \ | ||
38 | -e 's:IP{:I${:g' $pc | ||
39 | done | ||
40 | } | ||