qt4-embedded: fix decorations and mouse configs
authorKoen Kooi <koen@openembedded.org>
Sun, 9 May 2010 08:55:01 +0000 (10:55 +0200)
committerKoen Kooi <koen@openembedded.org>
Mon, 10 May 2010 15:24:41 +0000 (17:24 +0200)
Imported from http://arago-project.org/git/?p=arago.git;a=commitdiff;h=0fe5a365d34a07f93861741e25c5cfaaf662aa1c
Original patch done by Denys Dmytriyenko

recipes/qt4/files/qte.sh [new file with mode: 0644]
recipes/qt4/qt-4.6.2.inc
recipes/qt4/qt4-embedded.inc

diff --git a/recipes/qt4/files/qte.sh b/recipes/qt4/files/qte.sh
new file mode 100644 (file)
index 0000000..ddea77d
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
+
+export QWS_MOUSE_PROTO
index 3ec329f..ffd7a1d 100644 (file)
@@ -16,6 +16,9 @@ SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.
            file://linux.conf \
            "
 
+# Set necessary variables in the profile
+SRC_URI += "file://qte.sh"
+
 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
 
 do_configure_prepend() {
index 7e0be6e..888b1b8 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r18"
+INC_PR = "r19"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
@@ -24,18 +24,28 @@ SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-embedded-linux-opensource-src-${
            file://g++.conf \
            file://linux.conf \
            "
+
+# Set necessary variables in the profile
+SRC_URI += "file://qte.sh"
+
 S = "${WORKDIR}/qt-embedded-linux-opensource-src-${PV}"
 
 QT_CONFIG_FLAGS += " \
     -qtlibinfix ${QT_LIBINFIX} \
-    -qt-decoration-styled -plugin-decoration-default -plugin-decoration-windows \
     -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \
-    -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb \
+    -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \
     -qt-kbd-tty \
     -DQT_KEYPAD_NAVIGATION \
     "
 
 require qt4.inc
 
+do_install_append() {
+       install -d ${D}${sysconfdir}/profile.d/
+       install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/
+}
+
+FILES_qt4-embedded += " ${sysconfdir}/profile.d/qte.sh"
+
 inherit qt4e