diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-5.0.2/0016-configure-add-tslib-support.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-5.0.2/0016-configure-add-tslib-support.patch | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0016-configure-add-tslib-support.patch b/recipes-qt/qt5/qtbase-5.0.2/0016-configure-add-tslib-support.patch new file mode 100644 index 00000000..f69b9adf --- /dev/null +++ b/recipes-qt/qt5/qtbase-5.0.2/0016-configure-add-tslib-support.patch | |||
@@ -0,0 +1,78 @@ | |||
1 | From 3038a3c7678867f8a7a30de7973d0eca8c0d737f Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Mon, 27 May 2013 18:45:03 +0200 | ||
4 | Subject: [PATCH 16/16] configure: add tslib support | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
10 | --- | ||
11 | configure | 24 ++++++++++++++++++++++++ | ||
12 | src/plugins/generic/generic.pro | 4 ++++ | ||
13 | 2 files changed, 28 insertions(+) | ||
14 | |||
15 | diff --git a/configure b/configure | ||
16 | index ac09bbf..f1252a0 100755 | ||
17 | --- a/configure | ||
18 | +++ b/configure | ||
19 | @@ -829,6 +829,7 @@ CFG_KMS=auto | ||
20 | CFG_LIBUDEV=auto | ||
21 | CFG_OBSOLETE_WAYLAND=no | ||
22 | CFG_EVDEV=auto | ||
23 | +CFG_TSLIB=auto | ||
24 | CFG_NIS=auto | ||
25 | CFG_CUPS=auto | ||
26 | CFG_ICONV=auto | ||
27 | @@ -1805,6 +1806,13 @@ while [ "$#" -gt 0 ]; do | ||
28 | UNKNOWN_OPT=yes | ||
29 | fi | ||
30 | ;; | ||
31 | + tslib) | ||
32 | + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
33 | + CFG_TSLIB="$VAL" | ||
34 | + else | ||
35 | + UNKNOWN_OPT=yes | ||
36 | + fi | ||
37 | + ;; | ||
38 | cups) | ||
39 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
40 | CFG_CUPS="$VAL" | ||
41 | @@ -4815,6 +4823,22 @@ if [ "$CFG_EVDEV" = "no" ]; then | ||
42 | QMakeVar add DEFINES QT_NO_EVDEV | ||
43 | fi | ||
44 | |||
45 | +if [ "$CFG_TSLIB" != "no" ]; then | ||
46 | + if compileTest unix/tslib "tslib"; then | ||
47 | + CFG_TSLIB=yes | ||
48 | + QT_CONFIG="$QT_CONFIG tslib" | ||
49 | + elif [ "$CFG_TSLIB" = "yes" ]; then | ||
50 | + echo "The tslib functionality test failed!" | ||
51 | + exit 1 | ||
52 | + else | ||
53 | + CFG_TSLIB=no | ||
54 | + fi | ||
55 | +fi | ||
56 | +if [ "$CFG_TSLIB" = "no" ]; then | ||
57 | + QMakeVar add DEFINES QT_NO_TSLIB | ||
58 | +fi | ||
59 | + | ||
60 | + | ||
61 | # Check we actually have X11 :-) | ||
62 | if compileTest x11/xlib "XLib"; then | ||
63 | QT_CONFIG="$QT_CONFIG xlib" | ||
64 | diff --git a/src/plugins/generic/generic.pro b/src/plugins/generic/generic.pro | ||
65 | index 078db2f..18a8295 100644 | ||
66 | --- a/src/plugins/generic/generic.pro | ||
67 | +++ b/src/plugins/generic/generic.pro | ||
68 | @@ -5,3 +5,7 @@ TEMPLATE = subdirs | ||
69 | contains(QT_CONFIG, evdev) { | ||
70 | SUBDIRS += evdevmouse evdevtouch evdevkeyboard evdevtablet | ||
71 | } | ||
72 | + | ||
73 | +contains(QT_CONFIG, tslib) { | ||
74 | + SUBDIRS += tslib | ||
75 | +} | ||
76 | -- | ||
77 | 1.8.2.1 | ||
78 | |||