diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-qt/qt4/qt4-x11-free.inc | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-qt/qt4/qt4-x11-free.inc')
-rw-r--r-- | meta/recipes-qt/qt4/qt4-x11-free.inc | 39 |
1 files changed, 39 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..73ed2bcbd9 --- /dev/null +++ b/meta/recipes-qt/qt4/qt4-x11-free.inc | |||
@@ -0,0 +1,39 @@ | |||
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/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | ||
8 | PROVIDES += "qt4-x11" | ||
9 | QT4DEPENDS = "" | ||
10 | |||
11 | INC_PR = "r50" | ||
12 | |||
13 | QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} " | ||
14 | QT_GLFLAGS_qemux86 = "-opengl" | ||
15 | QT_GLFLAGS_qemuppc = "-opengl" | ||
16 | QT_X11_FLAGS ?= "-no-xinerama -no-xkb -no-gtkstyle" | ||
17 | QT_CONFIG_FLAGS += "${QT_X11_FLAGS}" | ||
18 | QT_BASE_LIB ?= "libqt" | ||
19 | |||
20 | # required by kdelibs4 | ||
21 | QT_KDE_FLAGS ?= "-accessibility -sm" | ||
22 | QT_DISTRO_FLAGS ?= "${QT_KDE_FLAGS}" | ||
23 | |||
24 | inherit qt4x11 | ||
25 | |||
26 | do_install_append() { | ||
27 | # fix pkgconfig, libtool and prl files | ||
28 | sed -i -e 's#I/usr/include#Iincludedir}#g' \ | ||
29 | -e 's#Iin#I${in#g' \ | ||
30 | ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc | ||
31 | |||
32 | # QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so | ||
33 | # manually fix it up here: | ||
34 | for pc in ${D}${libdir}/pkgconfig/*.pc ; do | ||
35 | sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \ | ||
36 | -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \ | ||
37 | -e 's:IP{:I${:g' $pc | ||
38 | done | ||
39 | } | ||