summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt
diff options
context:
space:
mode:
authorDmitry Cherukhin <dima_ch@emcraft.com>2011-10-06 13:56:19 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-17 13:10:41 (GMT)
commit1b49585ff1b9f20f57d86276f03d564aacc80db3 (patch)
treec6156155be2a7414bf19c6578e2f2c070d227b4a /meta/recipes-qt
parentf60b6507e0f9473f3eb12883f857a231f99550db (diff)
downloadpoky-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>
Diffstat (limited to 'meta/recipes-qt')
-rw-r--r--meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb11
-rw-r--r--meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb10
-rw-r--r--meta/recipes-qt/qt4/qt-mobility_1.2.0.inc62
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 0000000..0c30e5f
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt-mobility-embedded_1.2.0.bb
@@ -0,0 +1,11 @@
1DESCRIPTION = "Qt Mobility 1.2.0 - version for Qt/Embedded"
2DEPENDS = "qt4-embedded"
3SECTION = "libs"
4qtm_embedded := "embedded"
5qtm_dir = "qtopia"
6qtm_glflags := "-=opengl"
7qtm_extra_config := "gstreamer-photography_enabled = no"
8
9inherit qt4e
10require 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 0000000..cd7d5b5
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt-mobility-x11_1.2.0.bb
@@ -0,0 +1,10 @@
1DESCRIPTION = "Qt Mobility 1.2.0 - version for Qt/X11"
2DEPENDS = "qt4-x11-free"
3SECTION = "x11/libs"
4qtm_embedded := ""
5qtm_dir = "qt4"
6qtm_glflags := "${@base_contains('DISTRO_FEATURES', 'opengl', '+=opengl', '-=opengl', d)} "
7qtm_extra_config := ""
8
9inherit qt4x11
10require 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 0000000..f665e64
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt-mobility_1.2.0.inc
@@ -0,0 +1,62 @@
1HOMEPAGE = "http://qt.nokia.com"
2DEPENDS += "pulseaudio bluez4"
3
4LICENSE = "LGPLv2.1"
5LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
6 file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
7
8SRC_URI = "http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-${PV}.tar.gz "
9
10SRC_URI[md5sum]="ea5db5a8d3dd4709c2926dceda646bd8"
11SRC_URI[sha256sum]="ee3c88975e04139ac9589f76d4be646d44fcbc4c8c1cf2db621abc154cf0ba44"
12
13S = "${WORKDIR}/qt-mobility-opensource-src-${PV}"
14
15qtm_bin := "/usr/bin/${qtm_dir}"
16qtm_lib := "/usr/lib"
17qtm_include := "/usr/include/${qtm_dir}"
18qtm_examples := "/usr/bin/${qtm_dir}/examples/QtMobility"
19qtm_demos := "/usr/bin/${qtm_dir}/demos/QtMobility"
20qtm_plugins := "/usr/lib/${qtm_dir}/plugins/QtMobility"
21qtm_data := "/usr/share/${qtm_dir}"
22qtm_imports := "/usr/lib/${qtm_dir}/imports"
23
24do_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
48do_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
57PACKAGES = "${PN}-dbg ${PN} ${PN}-dev"
58
59FILES_${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"
61FILES_${PN} = "${qtm_bin} ${qtm_examples} ${qtm_demos} ${qtm_lib}/*.so.1* ${qtm_plugins} ${qtm_imports}"
62FILES_${PN}-dev = "/usr"