diff options
author | Dmitry Cherukhin <dima_ch@emcraft.com> | 2011-10-06 15:56:19 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-17 14:10:41 +0100 |
commit | 1b49585ff1b9f20f57d86276f03d564aacc80db3 (patch) | |
tree | c6156155be2a7414bf19c6578e2f2c070d227b4a | |
parent | f60b6507e0f9473f3eb12883f857a231f99550db (diff) | |
download | poky-1b49585ff1b9f20f57d86276f03d564aacc80db3.tar.gz |
qt4: Added support for QtMobility 1.2
The QtMobility is a Qt add-on which allows to include standard mobile
functionality to Qt applications. For details, see
http://qt.nokia.com/products/qt-addons/mobility/
The patch is intended to add support for the QtMobility 1.2 package to OE.
Added two recipes:
1) qt-mobility-x11 builds the QtMobility 1.2 package
on the basis of Qt/X11 using the qt4-x11-free package;
2) qt-mobility-embedded builds the QtMobility 1.2 package
on the basis of Qt/Embedded using the qt4-embedded package.
(From OE-Core rev: 5395ab6dc7cf3f1e1fd082b28cef50001d235750)
Signed-off-by: Dmitry Cherukhin <dima_ch@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb | 11 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb | 10 | ||||
-rw-r--r-- | meta/recipes-qt/qt4/qt-mobility_1.2.0.inc | 62 |
3 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb b/meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb new file mode 100644 index 0000000000..0c30e5fcf4 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | DESCRIPTION = "Qt Mobility 1.2.0 - version for Qt/Embedded" | ||
2 | DEPENDS = "qt4-embedded" | ||
3 | SECTION = "libs" | ||
4 | qtm_embedded := "embedded" | ||
5 | qtm_dir = "qtopia" | ||
6 | qtm_glflags := "-=opengl" | ||
7 | qtm_extra_config := "gstreamer-photography_enabled = no" | ||
8 | |||
9 | inherit qt4e | ||
10 | require qt-mobility_${PV}.inc | ||
11 | |||
diff --git a/meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb b/meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb new file mode 100644 index 0000000000..cd7d5b5897 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | DESCRIPTION = "Qt Mobility 1.2.0 - version for Qt/X11" | ||
2 | DEPENDS = "qt4-x11-free" | ||
3 | SECTION = "x11/libs" | ||
4 | qtm_embedded := "" | ||
5 | qtm_dir = "qt4" | ||
6 | qtm_glflags := "${@base_contains('DISTRO_FEATURES', 'opengl', '+=opengl', '-=opengl', d)} " | ||
7 | qtm_extra_config := "" | ||
8 | |||
9 | inherit qt4x11 | ||
10 | require qt-mobility_${PV}.inc | ||
diff --git a/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc b/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc new file mode 100644 index 0000000000..f665e64162 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc | |||
@@ -0,0 +1,62 @@ | |||
1 | HOMEPAGE = "http://qt.nokia.com" | ||
2 | DEPENDS += "pulseaudio bluez4" | ||
3 | |||
4 | LICENSE = "LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
6 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
7 | |||
8 | SRC_URI = "http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-${PV}.tar.gz " | ||
9 | |||
10 | SRC_URI[md5sum]="ea5db5a8d3dd4709c2926dceda646bd8" | ||
11 | SRC_URI[sha256sum]="ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc154cf0ba44" | ||
12 | |||
13 | S = "${WORKDIR}/qt-mobility-opensource-src-${PV}" | ||
14 | |||
15 | qtm_bin := "/usr/bin/${qtm_dir}" | ||
16 | qtm_lib := "/usr/lib" | ||
17 | qtm_include := "/usr/include/${qtm_dir}" | ||
18 | qtm_examples := "/usr/bin/${qtm_dir}/examples/QtMobility" | ||
19 | qtm_demos := "/usr/bin/${qtm_dir}/demos/QtMobility" | ||
20 | qtm_plugins := "/usr/lib/${qtm_dir}/plugins/QtMobility" | ||
21 | qtm_data := "/usr/share/${qtm_dir}" | ||
22 | qtm_imports := "/usr/lib/${qtm_dir}/imports" | ||
23 | |||
24 | do_configure_prepend() { | ||
25 | cp qtmobility.pro qtmobility.pro.old | ||
26 | sed -e 's@...QT_INSTALL_DATA.@${qtm_data}@' <qtmobility.pro.old >qtmobility.pro | ||
27 | for NAME in plugins/declarative/*/*.pro | ||
28 | do | ||
29 | cp $NAME $NAME.old | ||
30 | sed -e 's@...QT_INSTALL_IMPORTS.@${qtm_imports}@' <$NAME.old >$NAME | ||
31 | done | ||
32 | cp staticconfig.pri staticconfig.pri.old | ||
33 | echo "include(${STAGING_DATADIR}/${qtm_dir}/mkspecs/qconfig.pri)" >staticconfig.pri | ||
34 | cat staticconfig.pri.old >>staticconfig.pri | ||
35 | ./configure -qmake-exec qmake2 -prefix /usr -examples -demos | ||
36 | echo QT_MOBILITY_BIN = ${qtm_bin} >>./config.pri | ||
37 | echo QT_MOBILITY_LIB = ${qtm_lib} >>./config.pri | ||
38 | echo QT_MOBILITY_INCLUDE = ${qtm_include} >>./config.pri | ||
39 | echo QT_MOBILITY_PLUGINS = ${qtm_plugins} >>./config.pri | ||
40 | echo QT_MOBILITY_EXAMPLES = ${qtm_examples} >>./config.pri | ||
41 | echo QT_MOBILITY_DEMOS = ${qtm_demos} >>./config.pri | ||
42 | echo QT_CONFIG ${qtm_glflags} >>./config.pri | ||
43 | echo bluez_enabled = yes >>./config.pri | ||
44 | echo ${qtm_extra_config} >>./config.pri | ||
45 | echo CONFIG += ${qtm_embedded} >>./config.pri | ||
46 | } | ||
47 | |||
48 | do_install() { | ||
49 | for NAME in */*.prf | ||
50 | do | ||
51 | cp $NAME $NAME.old | ||
52 | sed -e 's@/usr@${STAGING_BINDIR}/..@' <$NAME.old >$NAME | ||
53 | done | ||
54 | oe_runmake install INSTALL_ROOT=${D} | ||
55 | } | ||
56 | |||
57 | PACKAGES = "${PN}-dbg ${PN} ${PN}-dev" | ||
58 | |||
59 | FILES_${PN}-dbg = "${qtm_bin}/.debug ${qtm_examples}/.debug ${qtm_demos}/.debug ${qtm_lib}/.debug ${qtm_plugins}/*/.debug \ | ||
60 | ${qtm_imports}/*/.debug ${qtm_imports}/*/*/.debug /usr/src/debug" | ||
61 | FILES_${PN} = "${qtm_bin} ${qtm_examples} ${qtm_demos} ${qtm_lib}/*.so.1* ${qtm_plugins} ${qtm_imports}" | ||
62 | FILES_${PN}-dev = "/usr" | ||