diff options
Diffstat (limited to 'meta-oe/recipes-qt')
46 files changed, 11 insertions, 1991 deletions
diff --git a/meta-oe/recipes-qt/qt4/files/0001-cross-compile.patch b/meta-oe/recipes-qt/qt4/files/0001-cross-compile.patch deleted file mode 100644 index 053be06e5..000000000 --- a/meta-oe/recipes-qt/qt4/files/0001-cross-compile.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Add configure option "crossarch" for cross compiling | ||
2 | |||
3 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
4 | |||
5 | Index: qt-embedded-linux-opensource-src-4.4.3/configure | ||
6 | =================================================================== | ||
7 | --- qt-embedded-linux-opensource-src-4.4.3.orig/configure 2009-03-26 17:02:45.000000000 +0100 | ||
8 | +++ qt-embedded-linux-opensource-src-4.4.3/configure 2009-03-26 17:03:43.000000000 +0100 | ||
9 | @@ -726,7 +726,7 @@ | ||
10 | UNKNOWN_ARG=yes | ||
11 | fi | ||
12 | ;; | ||
13 | - -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config) | ||
14 | + -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-crossarch) | ||
15 | VAR=`echo $1 | sed "s,^-\(.*\),\1,"` | ||
16 | shift | ||
17 | VAL="$1" | ||
18 | @@ -1143,6 +1143,9 @@ | ||
19 | xplatform) | ||
20 | XPLATFORM="$VAL" | ||
21 | ;; | ||
22 | + crossarch) | ||
23 | + CROSSARCH="$VAL" | ||
24 | + ;; | ||
25 | debug-and-release) | ||
26 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
27 | CFG_DEBUG_RELEASE="$VAL" | ||
28 | @@ -2405,6 +2408,8 @@ | ||
29 | CFG_ARCH=$CFG_HOST_ARCH | ||
30 | fi | ||
31 | |||
32 | +CFG_ARCH="$CROSSARCH" | ||
33 | + | ||
34 | if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then | ||
35 | if [ "$OPT_VERBOSE" = "yes" ]; then | ||
36 | echo " '$CFG_ARCH' is supported" | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0002-fix-resinit-declaration.patch b/meta-oe/recipes-qt/qt4/files/0002-fix-resinit-declaration.patch deleted file mode 100644 index be4d5c0e2..000000000 --- a/meta-oe/recipes-qt/qt4/files/0002-fix-resinit-declaration.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | From acfeb18aa94bad6b2066e91cd15570889baaa252 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Sat, 2 Jun 2007 16:04:01 +0200 | ||
4 | Subject: [PATCH] fix resinit declaration | ||
5 | |||
6 | --- | ||
7 | src/qt3support/network/q3dns.cpp | 2 +- | ||
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
9 | |||
10 | Index: qt-embedded-linux-opensource-src-4.4.3/src/qt3support/network/q3dns.cpp | ||
11 | =================================================================== | ||
12 | --- qt-embedded-linux-opensource-src-4.4.3.orig/src/qt3support/network/q3dns.cpp 2008-09-27 11:01:28.000000000 +0200 | ||
13 | +++ qt-embedded-linux-opensource-src-4.4.3/src/qt3support/network/q3dns.cpp 2009-03-26 17:04:05.000000000 +0100 | ||
14 | @@ -44,7 +44,7 @@ | ||
15 | # include <netinet/in.h> | ||
16 | # include <arpa/nameser.h> | ||
17 | # include <resolv.h> | ||
18 | -extern "C" int res_init(); | ||
19 | +extern "C" int res_init() throw(); | ||
20 | #endif | ||
21 | |||
22 | // POSIX Large File Support redefines open -> open64 | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0004-no-qmake.patch b/meta-oe/recipes-qt/qt4/files/0004-no-qmake.patch deleted file mode 100644 index a58b19f90..000000000 --- a/meta-oe/recipes-qt/qt4/files/0004-no-qmake.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From f5a73ce944240de9013cc23288c115e8213add5e Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Sat, 2 Jun 2007 16:06:59 +0200 | ||
4 | Subject: [PATCH] no qmake | ||
5 | |||
6 | qmake is already built in qt4-tools-native, so disable it | ||
7 | |||
8 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
9 | |||
10 | --- | ||
11 | configure | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | Index: qt-embedded-linux-opensource-src-4.4.3/configure | ||
15 | =================================================================== | ||
16 | --- qt-embedded-linux-opensource-src-4.4.3.orig/configure 2009-03-26 17:03:43.000000000 +0100 | ||
17 | +++ qt-embedded-linux-opensource-src-4.4.3/configure 2009-03-26 17:04:17.000000000 +0100 | ||
18 | @@ -3786,7 +3786,7 @@ | ||
19 | } | ||
20 | |||
21 | # build qmake | ||
22 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
23 | +if false; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
24 | echo "Creating qmake. Please wait..." | ||
25 | |||
26 | OLD_QCONFIG_H= | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0006-freetype-host-includes.patch b/meta-oe/recipes-qt/qt4/files/0006-freetype-host-includes.patch deleted file mode 100644 index 081d8992e..000000000 --- a/meta-oe/recipes-qt/qt4/files/0006-freetype-host-includes.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | From c9ab62bd9a56643574b3ae6e59e0ca776d4860d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 4 Jun 2007 14:48:50 +0200 | ||
4 | Subject: [PATCH] freetype host includes | ||
5 | |||
6 | Host include path should not be used in corss compiling case. | ||
7 | |||
8 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
9 | |||
10 | --- | ||
11 | config.tests/unix/freetype/freetype.pri | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | Index: qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri | ||
15 | =================================================================== | ||
16 | --- qt-embedded-linux-opensource-src-4.5.0.orig/config.tests/unix/freetype/freetype.pri 2009-02-25 22:32:32.000000000 +0100 | ||
17 | +++ qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri 2009-03-26 17:14:16.000000000 +0100 | ||
18 | @@ -1,5 +1,5 @@ | ||
19 | !cross_compile { | ||
20 | - TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
21 | + TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
22 | # LSB doesn't allow using headers from /include or /usr/include | ||
23 | linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
24 | for(p, TRY_INCLUDEPATHS) { | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0008-qt-lib-infix.patch b/meta-oe/recipes-qt/qt4/files/0008-qt-lib-infix.patch deleted file mode 100644 index a1b89124d..000000000 --- a/meta-oe/recipes-qt/qt4/files/0008-qt-lib-infix.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Add lib infix to distinguish different qt compile version: e.g. "E" for embedded, "" for X11 | ||
2 | |||
3 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
4 | |||
5 | --- /tmp/uitools.prf 2009-12-01 18:38:22.000000000 +0100 | ||
6 | +++ qt-everywhere-opensource-src-4.6.0/mkspecs/features/uitools.prf 2009-12-01 18:58:16.000000000 +0100 | ||
7 | @@ -3,11 +3,11 @@ | ||
8 | |||
9 | # Include the correct version of the UiLoader library | ||
10 | symbian: QTUITOOLS_LINKAGE = -lQtUiTools.lib | ||
11 | -else: QTUITOOLS_LINKAGE = -lQtUiTools | ||
12 | +else: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX} | ||
13 | |||
14 | CONFIG(debug, debug|release) { | ||
15 | - mac: QTUITOOLS_LINKAGE = -lQtUiTools_debug | ||
16 | - win32: QTUITOOLS_LINKAGE = -lQtUiToolsd | ||
17 | + mac: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}_debug | ||
18 | + win32: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}d | ||
19 | } | ||
20 | LIBS += $$QTUITOOLS_LINKAGE | ||
21 | |||
22 | --- /tmp/uitools.pro 2009-12-01 18:40:28.000000000 +0100 | ||
23 | +++ qt-everywhere-opensource-src-4.6.0/tools/designer/src/uitools/uitools.pro 2009-12-01 18:59:18.000000000 +0100 | ||
24 | @@ -1,5 +1,5 @@ | ||
25 | TEMPLATE = lib | ||
26 | -TARGET = $$qtLibraryTarget(QtUiTools) | ||
27 | +TARGET = QtUiTools | ||
28 | QT += xml | ||
29 | CONFIG += qt staticlib | ||
30 | DESTDIR = ../../../../lib | ||
31 | @@ -43,3 +43,5 @@ | ||
32 | QMAKE_PKGCONFIG_DESTDIR = pkgconfig | ||
33 | QMAKE_PKGCONFIG_REQUIRES += QtXml | ||
34 | } | ||
35 | + | ||
36 | +TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0009-support-2bpp.patch b/meta-oe/recipes-qt/qt4/files/0009-support-2bpp.patch deleted file mode 100644 index cf44ea821..000000000 --- a/meta-oe/recipes-qt/qt4/files/0009-support-2bpp.patch +++ /dev/null | |||
@@ -1,299 +0,0 @@ | |||
1 | Add 2bpp support | ||
2 | |||
3 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
4 | |||
5 | diff -urN qt-embedded-linux-opensource-src-4.4.3.orig/configure qt-embedded-linux-opensource-src-4.4.3/configure | ||
6 | --- qt-embedded-linux-opensource-src-4.4.3.orig/configure 2008-09-27 11:01:23.000000000 +0200 | ||
7 | +++ qt-embedded-linux-opensource-src-4.4.3/configure 2009-01-14 14:30:53.000000000 +0100 | ||
8 | @@ -5045,6 +5045,7 @@ | ||
9 | echo "Choose pixel-depths to support:" | ||
10 | echo | ||
11 | echo " 1. 1bpp, black/white" | ||
12 | + echo " 2. 2bpp, grayscale" | ||
13 | echo " 4. 4bpp, grayscale" | ||
14 | echo " 8. 8bpp, paletted" | ||
15 | echo " 12. 12bpp, rgb 4-4-4" | ||
16 | @@ -5063,11 +5064,11 @@ | ||
17 | fi | ||
18 | if [ -n "$CFG_QWS_DEPTHS" -a "$PLATFORM_QWS" = "yes" ]; then | ||
19 | if [ "$CFG_QWS_DEPTHS" = "all" ]; then | ||
20 | - CFG_QWS_DEPTHS="1 4 8 12 15 16 18 24 32 generic" | ||
21 | + CFG_QWS_DEPTHS="1 2 4 8 12 15 16 18 24 32 generic" | ||
22 | fi | ||
23 | for D in `echo "$CFG_QWS_DEPTHS" | sed -e 's/,/ /g'`; do | ||
24 | case $D in | ||
25 | - 1|4|8|12|15|16|18|24|32) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_$D";; | ||
26 | + 1|2|4|8|12|15|16|18|24|32) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_$D";; | ||
27 | generic) QCONFIG_FLAGS="$QCONFIG_FLAGS QT_QWS_DEPTH_GENERIC";; | ||
28 | esac | ||
29 | done | ||
30 | diff -urN qt-embedded-linux-opensource-src-4.4.3.orig/src/gui/embedded/qscreenlinuxfb_qws.cpp qt-embedded-linux-opensource-src-4.4.3/src/gui/embedded/qscreenlinuxfb_qws.cpp | ||
31 | --- qt-embedded-linux-opensource-src-4.4.3.orig/src/gui/embedded/qscreenlinuxfb_qws.cpp 2008-09-27 11:01:28.000000000 +0200 | ||
32 | +++ qt-embedded-linux-opensource-src-4.4.3/src/gui/embedded/qscreenlinuxfb_qws.cpp 2009-01-14 17:22:34.000000000 +0100 | ||
33 | @@ -404,8 +404,8 @@ | ||
34 | setupOffScreen(); | ||
35 | |||
36 | // Now read in palette | ||
37 | - if((vinfo.bits_per_pixel==8) || (vinfo.bits_per_pixel==4)) { | ||
38 | - screencols= (vinfo.bits_per_pixel==8) ? 256 : 16; | ||
39 | + if((vinfo.bits_per_pixel==8) || (vinfo.bits_per_pixel==4) || (vinfo.bits_per_pixel==2)) { | ||
40 | + screencols= 1 << vinfo.bits_per_pixel; | ||
41 | int loopc; | ||
42 | fb_cmap startcmap; | ||
43 | startcmap.start=0; | ||
44 | diff -urN qt-embedded-linux-opensource-src-4.4.3.orig/src/gui/embedded/qscreen_qws.cpp qt-embedded-linux-opensource-src-4.4.3/src/gui/embedded/qscreen_qws.cpp | ||
45 | --- qt-embedded-linux-opensource-src-4.4.3.orig/src/gui/embedded/qscreen_qws.cpp 2008-09-27 11:01:28.000000000 +0200 | ||
46 | +++ qt-embedded-linux-opensource-src-4.4.3/src/gui/embedded/qscreen_qws.cpp 2009-01-14 17:22:44.000000000 +0100 | ||
47 | @@ -444,6 +444,58 @@ | ||
48 | } | ||
49 | #endif // QT_QWS_DEPTH_4 | ||
50 | |||
51 | +#ifdef QT_QWS_DEPTH_2 | ||
52 | +static inline void qt_rectfill_gray2(quint8 *dest, quint8 value, | ||
53 | + int x, int y, int width, int height, | ||
54 | + int stride) | ||
55 | +{ | ||
56 | + const int pixelsPerByte = 4; | ||
57 | + const int alignWidth = qMin(width, (4 - (x & 3)) & 3); | ||
58 | + const int doAlign = (alignWidth > 0 ? 1 : 0); | ||
59 | + const int alignStart = pixelsPerByte - 1 - (x & 3); | ||
60 | + const int alignStop = alignStart - (alignWidth - 1); | ||
61 | + const quint8 alignMask = ((1 << (2 * alignWidth)) - 1) << (2 * alignStop); | ||
62 | + const int tailWidth = (width - alignWidth) & 3; | ||
63 | + const int doTail = (tailWidth > 0 ? 1 : 0); | ||
64 | + const quint8 tailMask = (1 << (2 * (pixelsPerByte - tailWidth))) - 1; | ||
65 | + const int width8 = (width - alignWidth) / pixelsPerByte; | ||
66 | + | ||
67 | + dest += y * stride + x / pixelsPerByte; | ||
68 | + stride -= (doAlign + width8); | ||
69 | + | ||
70 | + for (int j = 0; j < height; ++j) { | ||
71 | + if (doAlign) { | ||
72 | + *dest = (*dest & ~alignMask) | (value & alignMask); | ||
73 | + ++dest; | ||
74 | + } | ||
75 | + if (width8) { | ||
76 | + qt_memfill<quint8>(dest, value, width8); | ||
77 | + dest += width8; | ||
78 | + } | ||
79 | + if (doTail) | ||
80 | + *dest = (*dest & tailMask) | (value & ~tailMask); | ||
81 | + dest += stride; | ||
82 | + } | ||
83 | +} | ||
84 | + | ||
85 | +static void solidFill_gray2(QScreen *screen, const QColor &color, | ||
86 | + const QRegion ®ion) | ||
87 | +{ | ||
88 | + quint8 *dest = reinterpret_cast<quint8*>(screen->base()); | ||
89 | + const quint8 c = qGray(color.rgba()) >> 6; | ||
90 | + const quint8 c8 = (c << 6) | (c << 4) | (c << 2) | c; | ||
91 | + | ||
92 | + const int stride = screen->linestep(); | ||
93 | + const QVector<QRect> rects = region.rects(); | ||
94 | + | ||
95 | + for (int i = 0; i < rects.size(); ++i) { | ||
96 | + const QRect r = rects.at(i); | ||
97 | + qt_rectfill_gray2(dest, c8, r.x(), r.y(), r.width(), r.height(), | ||
98 | + stride); | ||
99 | + } | ||
100 | +} | ||
101 | +#endif // QT_QWS_DEPTH_2 | ||
102 | + | ||
103 | #ifdef QT_QWS_DEPTH_1 | ||
104 | static inline void qt_rectfill_mono(quint8 *dest, quint8 value, | ||
105 | int x, int y, int width, int height, | ||
106 | @@ -551,6 +603,11 @@ | ||
107 | screen->d_ptr->solidFill = solidFill_gray4; | ||
108 | break; | ||
109 | #endif | ||
110 | +#ifdef QT_QWS_DEPTH_2 | ||
111 | + case 2: | ||
112 | + screen->d_ptr->solidFill = solidFill_gray2; | ||
113 | + break; | ||
114 | +#endif | ||
115 | #ifdef QT_QWS_DEPTH_1 | ||
116 | case 1: | ||
117 | screen->d_ptr->solidFill = solidFill_mono; | ||
118 | @@ -958,6 +1015,149 @@ | ||
119 | } | ||
120 | #endif // QT_QWS_DEPTH_4 | ||
121 | |||
122 | +#ifdef QT_QWS_DEPTH_2 | ||
123 | + | ||
124 | +struct qgray2 { quint8 dummy; } Q_PACKED; | ||
125 | + | ||
126 | +template <typename SRC> | ||
127 | +static inline quint8 qt_convertToGray2(SRC color); | ||
128 | + | ||
129 | +template <> | ||
130 | +inline quint8 qt_convertToGray2(quint32 color) | ||
131 | +{ | ||
132 | + return qGray(color) >> 6; | ||
133 | +} | ||
134 | + | ||
135 | +template <> | ||
136 | +inline quint8 qt_convertToGray2(quint16 color) | ||
137 | +{ | ||
138 | + const int r = (color & 0xf800) >> 11; | ||
139 | + const int g = (color & 0x07e0) >> 6; // only keep 5 bit | ||
140 | + const int b = (color & 0x001f); | ||
141 | + return (r * 11 + g * 16 + b * 5) >> 8; | ||
142 | +} | ||
143 | + | ||
144 | +template <> | ||
145 | +inline quint8 qt_convertToGray2(qrgb444 color) | ||
146 | +{ | ||
147 | + return qt_convertToGray2(quint32(color)); | ||
148 | +} | ||
149 | + | ||
150 | +template <> | ||
151 | +inline quint8 qt_convertToGray2(qargb4444 color) | ||
152 | +{ | ||
153 | + return qt_convertToGray2(quint32(color)); | ||
154 | +} | ||
155 | + | ||
156 | +template <typename SRC> | ||
157 | +static inline void qt_rectconvert_gray2(qgray2 *dest2, const SRC *src, | ||
158 | + int x, int y, int width, int height, | ||
159 | + int dstStride, int srcStride) | ||
160 | +{ | ||
161 | + const int pixelsPerByte = 4; | ||
162 | + quint8 *dest8 = reinterpret_cast<quint8*>(dest2) | ||
163 | + + y * dstStride + x / pixelsPerByte; | ||
164 | + const int alignWidth = qMin(width, (4 - (x & 3)) & 3); | ||
165 | + const int doAlign = (alignWidth > 0 ? 1 : 0); | ||
166 | + const int alignStart = pixelsPerByte - 1 - (x & 3); | ||
167 | + const int alignStop = alignStart - (alignWidth - 1); | ||
168 | + const quint8 alignMask = ((1 << (2 * alignWidth)) - 1) << (2 * alignStop); | ||
169 | + const int tailWidth = (width - alignWidth) & 3; | ||
170 | + const int doTail = (tailWidth > 0 ? 1 : 0); | ||
171 | + const quint8 tailMask = (1 << (2 * (pixelsPerByte - tailWidth))) - 1; | ||
172 | + const int width8 = (width - alignWidth) / pixelsPerByte; | ||
173 | + | ||
174 | + srcStride = srcStride / sizeof(SRC) - (width8 * pixelsPerByte + alignWidth); | ||
175 | + dstStride -= (width8 + doAlign); | ||
176 | + | ||
177 | + for (int j = 0; j < height; ++j) { | ||
178 | + if (doAlign) { | ||
179 | + quint8 d = *dest8 & ~alignMask; | ||
180 | + for (int i = alignStart; i >= alignStop; --i) | ||
181 | + d |= qt_convertToGray2<SRC>(*src++) << (2 * i); | ||
182 | + *dest8++ = d; | ||
183 | + } | ||
184 | + for (int i = 0; i < width8; ++i) { | ||
185 | + *dest8 = (qt_convertToGray2<SRC>(src[0]) << 6) | ||
186 | + | (qt_convertToGray2<SRC>(src[1]) << 4) | ||
187 | + | (qt_convertToGray2<SRC>(src[2]) << 2) | ||
188 | + | (qt_convertToGray2<SRC>(src[3])); | ||
189 | + src += 4; | ||
190 | + ++dest8; | ||
191 | + } | ||
192 | + if (doTail) { | ||
193 | + quint8 d = *dest8 & tailMask; | ||
194 | + switch (tailWidth) { | ||
195 | + case 3: d |= qt_convertToGray2<SRC>(src[2]) << 2; | ||
196 | + case 2: d |= qt_convertToGray2<SRC>(src[1]) << 4; | ||
197 | + case 1: d |= qt_convertToGray2<SRC>(src[0]) << 6; | ||
198 | + } | ||
199 | + *dest8 = d; | ||
200 | + } | ||
201 | + | ||
202 | + dest8 += dstStride; | ||
203 | + src += srcStride; | ||
204 | + } | ||
205 | +} | ||
206 | + | ||
207 | +template <> | ||
208 | +void qt_rectconvert(qgray2 *dest, const quint32 *src, | ||
209 | + int x, int y, int width, int height, | ||
210 | + int dstStride, int srcStride) | ||
211 | +{ | ||
212 | + qt_rectconvert_gray2<quint32>(dest, src, x, y, width, height, | ||
213 | + dstStride, srcStride); | ||
214 | +} | ||
215 | + | ||
216 | +template <> | ||
217 | +void qt_rectconvert(qgray2 *dest, const quint16 *src, | ||
218 | + int x, int y, int width, int height, | ||
219 | + int dstStride, int srcStride) | ||
220 | +{ | ||
221 | + qt_rectconvert_gray2<quint16>(dest, src, x, y, width, height, | ||
222 | + dstStride, srcStride); | ||
223 | +} | ||
224 | + | ||
225 | +template <> | ||
226 | +void qt_rectconvert(qgray2 *dest, const qrgb444 *src, | ||
227 | + int x, int y, int width, int height, | ||
228 | + int dstStride, int srcStride) | ||
229 | +{ | ||
230 | + qt_rectconvert_gray2<qrgb444>(dest, src, x, y, width, height, | ||
231 | + dstStride, srcStride); | ||
232 | +} | ||
233 | + | ||
234 | +template <> | ||
235 | +void qt_rectconvert(qgray2 *dest, const qargb4444 *src, | ||
236 | + int x, int y, int width, int height, | ||
237 | + int dstStride, int srcStride) | ||
238 | +{ | ||
239 | + qt_rectconvert_gray2<qargb4444>(dest, src, x, y, width, height, | ||
240 | + dstStride, srcStride); | ||
241 | +} | ||
242 | + | ||
243 | +static void blit_2(QScreen *screen, const QImage &image, | ||
244 | + const QPoint &topLeft, const QRegion ®ion) | ||
245 | +{ | ||
246 | + switch (image.format()) { | ||
247 | + case QImage::Format_ARGB32_Premultiplied: | ||
248 | + blit_template<qgray2, quint32>(screen, image, topLeft, region); | ||
249 | + return; | ||
250 | + case QImage::Format_RGB16: | ||
251 | + blit_template<qgray2, quint16>(screen, image, topLeft, region); | ||
252 | + return; | ||
253 | + case QImage::Format_RGB444: | ||
254 | + blit_template<qgray2, qrgb444>(screen, image, topLeft, region); | ||
255 | + return; | ||
256 | + case QImage::Format_ARGB4444_Premultiplied: | ||
257 | + blit_template<qgray2, qargb4444>(screen, image, topLeft, region); | ||
258 | + return; | ||
259 | + default: | ||
260 | + qCritical("blit_2(): Image format %d not supported!", image.format()); | ||
261 | + } | ||
262 | +} | ||
263 | +#endif // QT_QWS_DEPTH_2 | ||
264 | + | ||
265 | #ifdef QT_QWS_DEPTH_1 | ||
266 | |||
267 | struct qmono { quint8 dummy; } Q_PACKED; | ||
268 | @@ -1206,6 +1406,11 @@ | ||
269 | screen->d_ptr->blit = blit_4; | ||
270 | break; | ||
271 | #endif | ||
272 | +#ifdef QT_QWS_DEPTH_2 | ||
273 | + case 2: | ||
274 | + screen->d_ptr->blit = blit_2; | ||
275 | + break; | ||
276 | +#endif | ||
277 | #ifdef QT_QWS_DEPTH_1 | ||
278 | case 1: | ||
279 | screen->d_ptr->blit = blit_1; | ||
280 | @@ -2056,6 +2261,8 @@ | ||
281 | } | ||
282 | } else if (d == 4) { | ||
283 | ret = qGray(r, g, b) >> 4; | ||
284 | + } else if (d == 2) { | ||
285 | + ret = qGray(r, g, b) >> 6; | ||
286 | } else if (d == 1) { | ||
287 | ret = qGray(r, g, b) >= 128; | ||
288 | } else { | ||
289 | @@ -2126,6 +2333,10 @@ | ||
290 | } else if(d==1) { | ||
291 | return true; | ||
292 | #endif | ||
293 | +#ifdef QT_QWS_DEPTH_2 | ||
294 | + } else if(d==2) { | ||
295 | + return true; | ||
296 | +#endif | ||
297 | #ifdef QT_QWS_DEPTH_4 | ||
298 | } else if(d==4) { | ||
299 | return true; | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0010-no-simpledecoration-example.patch b/meta-oe/recipes-qt/qt4/files/0010-no-simpledecoration-example.patch deleted file mode 100644 index e52736926..000000000 --- a/meta-oe/recipes-qt/qt4/files/0010-no-simpledecoration-example.patch +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | |||
2 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
3 | |||
4 | --- /tmp/qws.pro 2009-12-10 19:30:08.000000000 +0100 | ||
5 | +++ qt-everywhere-opensource-src-4.6.0/examples/qws/qws.pro 2009-12-10 19:30:21.000000000 +0100 | ||
6 | @@ -1,7 +1,7 @@ | ||
7 | TEMPLATE = subdirs | ||
8 | # no /dev/fbX | ||
9 | !qnx:!vxworks:SUBDIRS = framebuffer | ||
10 | -SUBDIRS += mousecalibration simpledecoration | ||
11 | +SUBDIRS += mousecalibration | ||
12 | |||
13 | # install | ||
14 | sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS README *.pro | ||
diff --git a/meta-oe/recipes-qt/qt4/files/common.pro b/meta-oe/recipes-qt/qt4/files/common.pro deleted file mode 100644 index 382d93f5d..000000000 --- a/meta-oe/recipes-qt/qt4/files/common.pro +++ /dev/null | |||
@@ -1,108 +0,0 @@ | |||
1 | #==================================================================================== | ||
2 | # common.pro (C) 2004 Michael 'Mickey' Lauer <mickey@Vanille.de> | ||
3 | #==================================================================================== | ||
4 | # | ||
5 | # Purpose: This file contains qmake scope rules of common usage | ||
6 | # | ||
7 | # Example: When building a qmake based application using libsdl, | ||
8 | # use CONFIG+=sdl to add the proper include and library | ||
9 | # paths and definitions to the resulting Makefile | ||
10 | # | ||
11 | # | ||
12 | # General problem: One has to decide between evaluation at makefile generation time | ||
13 | # and evaluation at makefile processing time. | ||
14 | # The following example illustrates the difference: | ||
15 | # | ||
16 | # Evaluation at makefile processing time: | ||
17 | # | ||
18 | # sdl { | ||
19 | # QMAKE_CFLAGS += `sdl-config --cflags` | ||
20 | # LIBS += `sdl-config --libs` | ||
21 | # } | ||
22 | # | ||
23 | # Evalutation at makefile generation time: | ||
24 | # | ||
25 | # sdl { | ||
26 | # QMAKE_CFLAGS += $$system( sdl-config --cflags ) | ||
27 | # LIBS += `sdl-config --libs` | ||
28 | # } | ||
29 | # | ||
30 | # For now I use version 2 which is a bit faster | ||
31 | # See the fine qmake manual for more details | ||
32 | # | ||
33 | # | ||
34 | |||
35 | #============================================================================= | ||
36 | # pthread scope for multithreaded applications | ||
37 | # | ||
38 | |||
39 | pthread { | ||
40 | LIBS += -lpthread | ||
41 | } | ||
42 | |||
43 | #============================================================================= | ||
44 | # sdl scopes for applications using the Simple Direct Media Layer (SDL) | ||
45 | # | ||
46 | |||
47 | sdl { | ||
48 | QMAKE_CXXFLAGS += $$system( sdl-config --cflags ) | ||
49 | DEFINES += USE_SDL QTOPIA | ||
50 | LIBS += $$system( sdl-config --libs ) | ||
51 | } | ||
52 | |||
53 | sdl-mixer { | ||
54 | LIBS += -lSDL_mixer | ||
55 | } | ||
56 | |||
57 | sdl-image { | ||
58 | LIBS += -lSDL_image | ||
59 | } | ||
60 | |||
61 | sdl-font { | ||
62 | LIBS += -lSDL_ttf | ||
63 | } | ||
64 | |||
65 | #============================================================================= | ||
66 | # | ||
67 | # | ||
68 | |||
69 | opie { | ||
70 | DEFINES += QWS | ||
71 | } | ||
72 | |||
73 | opiecore { | ||
74 | LIBS += -lopiecore2 | ||
75 | } | ||
76 | |||
77 | opieui { | ||
78 | CONFIG += opiecore | ||
79 | LIBS += -lopieui2 | ||
80 | } | ||
81 | |||
82 | opienet { | ||
83 | CONFIG += opiecore | ||
84 | LIBS += -lopienet2 | ||
85 | } | ||
86 | |||
87 | opiepim { | ||
88 | CONFIG += opiecore | ||
89 | LIBS += -lopiepim2 | ||
90 | } | ||
91 | |||
92 | opiedb { | ||
93 | CONFIG += opiecore | ||
94 | LIBS += -lopiedb2 | ||
95 | } | ||
96 | |||
97 | opiemm { | ||
98 | CONFIG += opiecore | ||
99 | LIBS += -lopiemm2 | ||
100 | } | ||
101 | |||
102 | #============================================================================= | ||
103 | # | ||
104 | # | ||
105 | |||
106 | #============================================================================= | ||
107 | # | ||
108 | # | ||
diff --git a/meta-oe/recipes-qt/qt4/files/compile.test-lflags.patch b/meta-oe/recipes-qt/qt4/files/compile.test-lflags.patch deleted file mode 100644 index e4b256b0c..000000000 --- a/meta-oe/recipes-qt/qt4/files/compile.test-lflags.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test | ||
2 | =================================================================== | ||
3 | --- qt-everywhere-opensource-src-4.6.3.orig/config.tests/unix/compile.test 2010-06-02 06:03:18.000000000 +0400 | ||
4 | +++ qt-everywhere-opensource-src-4.6.3/config.tests/unix/compile.test 2010-10-04 17:35:07.587783460 +0400 | ||
5 | @@ -11,7 +11,7 @@ | ||
6 | EXE=`basename "$6"` | ||
7 | DESCRIPTION=$7 | ||
8 | shift 7 | ||
9 | -LFLAGS="" | ||
10 | +LFLAGS="$LDFLAGS" | ||
11 | INCLUDEPATH="" | ||
12 | CXXFLAGS="" | ||
13 | MAC_ARCH_CXXFLAGS="" | ||
diff --git a/meta-oe/recipes-qt/qt4/files/configure-lflags.patch b/meta-oe/recipes-qt/qt4/files/configure-lflags.patch deleted file mode 100644 index df195494e..000000000 --- a/meta-oe/recipes-qt/qt4/files/configure-lflags.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Index: qtopia-core-opensource-src-4.3.3/configure | ||
2 | =================================================================== | ||
3 | --- qtopia-core-opensource-src-4.3.3.orig/configure 2008-01-14 08:53:51.000000000 +0000 | ||
4 | +++ qtopia-core-opensource-src-4.3.3/configure 2008-01-14 08:54:07.000000000 +0000 | ||
5 | @@ -447,7 +447,7 @@ | ||
6 | # initalize variables | ||
7 | #------------------------------------------------------------------------------- | ||
8 | |||
9 | -SYSTEM_VARIABLES="CC CXX CFLAGS CXXFLAGS LDFLAGS" | ||
10 | +SYSTEM_VARIABLES="CC CXX CFLAGS CXXFLAGS LDFLAGS LFLAGS" | ||
11 | for varname in $SYSTEM_VARIABLES; do | ||
12 | cmd=`echo \ | ||
13 | 'if [ -n "\$'${varname}'" ]; then | ||
diff --git a/meta-oe/recipes-qt/qt4/files/configure-paths.patch b/meta-oe/recipes-qt/qt4/files/configure-paths.patch deleted file mode 100644 index c9259a115..000000000 --- a/meta-oe/recipes-qt/qt4/files/configure-paths.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | Index: qt-everywhere-opensource-src-4.6.3/configure | ||
2 | =================================================================== | ||
3 | --- qt-everywhere-opensource-src-4.6.3.orig/configure 2011-01-10 15:47:37.100607001 +0000 | ||
4 | +++ qt-everywhere-opensource-src-4.6.3/configure 2011-01-10 15:49:14.576606999 +0000 | ||
5 | @@ -7198,11 +7198,11 @@ | ||
6 | QMAKE_MOC_SRC = \$\$QT_BUILD_TREE/src/moc | ||
7 | |||
8 | #local paths that cannot be queried from the QT_INSTALL_* properties while building QTDIR | ||
9 | -QMAKE_MOC = \$\$QT_BUILD_TREE/bin/moc | ||
10 | -QMAKE_UIC = \$\$QT_BUILD_TREE/bin/uic | ||
11 | -QMAKE_UIC3 = \$\$QT_BUILD_TREE/bin/uic3 | ||
12 | -QMAKE_RCC = \$\$QT_BUILD_TREE/bin/rcc | ||
13 | -QMAKE_QDBUSXML2CPP = \$\$QT_BUILD_TREE/bin/qdbusxml2cpp | ||
14 | +QMAKE_MOC = \${OE_QMAKE_MOC} | ||
15 | +QMAKE_UIC = \${OE_QMAKE_UIC} | ||
16 | +QMAKE_UIC3 = \${OE_QMAKE_UIC3} | ||
17 | +QMAKE_RCC = \${OE_QMAKE_RCC} | ||
18 | +QMAKE_QDBUSXML2CPP = \${OE_QMAKE_QDBUSXML2CPP} | ||
19 | QMAKE_INCDIR_QT = \$\$QT_BUILD_TREE/include | ||
20 | QMAKE_LIBDIR_QT = \$\$QT_BUILD_TREE/lib | ||
21 | |||
diff --git a/meta-oe/recipes-qt/qt4/files/fix-config-tests.patch b/meta-oe/recipes-qt/qt4/files/fix-config-tests.patch deleted file mode 100644 index 21054555b..000000000 --- a/meta-oe/recipes-qt/qt4/files/fix-config-tests.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Fix invocation in case of "ccache some-compiler-gcc". As the command "ccache some-compiler-gcc" will not exist but "ccache" will. | ||
2 | |||
3 | both visibility and relocs were affected. | ||
4 | |||
5 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
6 | |||
7 | Index: qt-x11-opensource-src-4.5.2/config.tests/unix/bsymbolic_functions.test | ||
8 | =================================================================== | ||
9 | --- qt-x11-opensource-src-4.5.2.orig/config.tests/unix/bsymbolic_functions.test 2009-08-01 08:01:11.000000000 +0200 | ||
10 | +++ qt-x11-opensource-src-4.5.2/config.tests/unix/bsymbolic_functions.test 2009-08-01 08:01:16.000000000 +0200 | ||
11 | @@ -8,7 +8,7 @@ | ||
12 | int main() { return 0; } | ||
13 | EOF | ||
14 | |||
15 | -"$COMPILER" -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c >/dev/null 2>&1 && BSYMBOLIC_FUNCTIONS_SUPPORT=yes | ||
16 | +$COMPILER -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c >/dev/null 2>&1 && BSYMBOLIC_FUNCTIONS_SUPPORT=yes | ||
17 | rm -f bsymbolic_functions.c libtest.so | ||
18 | |||
19 | # done | ||
20 | Index: qt-x11-opensource-src-4.5.2/config.tests/unix/fvisibility.test | ||
21 | =================================================================== | ||
22 | --- qt-x11-opensource-src-4.5.2.orig/config.tests/unix/fvisibility.test 2009-06-20 06:57:50.000000000 +0200 | ||
23 | +++ qt-x11-opensource-src-4.5.2/config.tests/unix/fvisibility.test 2009-08-01 07:59:05.000000000 +0200 | ||
24 | @@ -15,9 +15,9 @@ | ||
25 | EOF | ||
26 | |||
27 | if [ "$VERBOSE" = "yes" ] ; then | ||
28 | - "$COMPILER" -c -fvisibility=hidden fvisibility.c && FVISIBILITY_SUPPORT=yes | ||
29 | + $COMPILER -c -fvisibility=hidden fvisibility.c && FVISIBILITY_SUPPORT=yes | ||
30 | else | ||
31 | - "$COMPILER" -c -fvisibility=hidden fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes | ||
32 | + $COMPILER -c -fvisibility=hidden fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes | ||
33 | fi | ||
34 | rm -f fvisibility.c fvisibility.o | ||
35 | } | ||
36 | |||
diff --git a/meta-oe/recipes-qt/qt4/files/g++.conf b/meta-oe/recipes-qt/qt4/files/g++.conf deleted file mode 100644 index 4cd76e62e..000000000 --- a/meta-oe/recipes-qt/qt4/files/g++.conf +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for common gcc | ||
3 | # | ||
4 | |||
5 | QMAKE_CC = $(OE_QMAKE_CC) | ||
6 | QMAKE_CFLAGS += -pipe $(OE_QMAKE_CFLAGS) | ||
7 | QMAKE_CFLAGS_DEPS += -M | ||
8 | QMAKE_CFLAGS_WARN_ON += -Wall -W | ||
9 | QMAKE_CFLAGS_WARN_OFF += -w | ||
10 | QMAKE_CFLAGS_RELEASE += | ||
11 | QMAKE_CFLAGS_DEBUG += -g | ||
12 | QMAKE_CFLAGS_SHLIB += -fPIC | ||
13 | QMAKE_CFLAGS_STATIC_LIB += -fPIC | ||
14 | QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses | ||
15 | QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden | ||
16 | QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
17 | QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} | ||
18 | |||
19 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
20 | QMAKE_CXXFLAGS += $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS) | ||
21 | QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS | ||
22 | QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON | ||
23 | QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF | ||
24 | QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE | ||
25 | QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG | ||
26 | QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB | ||
27 | QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB | ||
28 | QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC | ||
29 | QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden | ||
30 | QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
31 | QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE | ||
32 | |||
33 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
34 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
35 | QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) | ||
36 | QMAKE_LFLAGS_RELEASE += | ||
37 | QMAKE_LFLAGS_DEBUG += | ||
38 | QMAKE_LFLAGS_APP += | ||
39 | QMAKE_LFLAGS_SHLIB += -shared | ||
40 | QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB | ||
41 | QMAKE_LFLAGS_SONAME += -Wl,-soname, | ||
42 | QMAKE_LFLAGS_THREAD += | ||
43 | QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined | ||
44 | QMAKE_RPATH = -Wl,-rpath-link, | ||
45 | |||
46 | QMAKE_PCH_OUTPUT_EXT = .gch | ||
47 | |||
48 | # -Bsymbolic-functions (ld) support | ||
49 | QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions | ||
50 | QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, | ||
51 | |||
52 | # for the SDK | ||
53 | isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) | ||
diff --git a/meta-oe/recipes-qt/qt4/files/hack-out-pg_config.patch b/meta-oe/recipes-qt/qt4/files/hack-out-pg_config.patch deleted file mode 100644 index 650ed7745..000000000 --- a/meta-oe/recipes-qt/qt4/files/hack-out-pg_config.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | Hack to not use the pg_config of the host system which will add /usr/include | ||
2 | |||
3 | pg_config is a native binary so using that when cross compiling | ||
4 | will always fail. The commented out fix would do, but for OE | ||
5 | our -platform and -xplatform is the same so we are actually not | ||
6 | really cross compiling. Just comment out the test, we are passing | ||
7 | the location to the postgres headers and if they are okay we | ||
8 | will padd. | ||
9 | |||
10 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
11 | |||
12 | Index: qt-embedded-linux-opensource-src-4.5.2/configure | ||
13 | =================================================================== | ||
14 | --- qt-embedded-linux-opensource-src-4.5.2.orig/configure 2009-08-10 03:03:04.000000000 +0200 | ||
15 | +++ qt-embedded-linux-opensource-src-4.5.2/configure 2009-08-10 03:58:11.000000000 +0200 | ||
16 | @@ -4401,10 +4402,10 @@ | ||
17 | ;; | ||
18 | psql) | ||
19 | if [ "$CFG_SQL_psql" != "no" ]; then | ||
20 | - if "$WHICH" pg_config >/dev/null 2>&1; then | ||
21 | - QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
22 | - QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
23 | - fi | ||
24 | +# if [ "$QT_CROSS_COMPILE" = "no" ] && "$WHICH" pg_config >/dev/null 2>&1; then | ||
25 | +# QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
26 | +# QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
27 | +# fi | ||
28 | [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" | ||
29 | [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" | ||
30 | if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/psql "PostgreSQL" $QT_LFLAGS_PSQL $L_FLAGS $QT_CFLAGS_PSQL $I_FLAGS $l_FLAGS $MAC_ARCHS_COMMANDLINE; then | ||
diff --git a/meta-oe/recipes-qt/qt4/files/linux-oe-qmake.conf b/meta-oe/recipes-qt/qt4/files/linux-oe-qmake.conf deleted file mode 100644 index 205b693fd..000000000 --- a/meta-oe/recipes-qt/qt4/files/linux-oe-qmake.conf +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for linux-oe-g++ / OpenEmbedded Build System / http://openembedded.org | ||
3 | # | ||
4 | |||
5 | MAKEFILE_GENERATOR = UNIX | ||
6 | TEMPLATE = app | ||
7 | CONFIG += qt warn_on release | ||
8 | |||
9 | QMAKE_CC = $(OE_QMAKE_CC) | ||
10 | QMAKE_LEX = flex | ||
11 | QMAKE_LEXFLAGS = | ||
12 | QMAKE_YACC = yacc | ||
13 | QMAKE_YACCFLAGS = -d | ||
14 | QMAKE_CFLAGS = -pipe $(OE_QMAKE_CFLAGS) $(CFLAGS_EXTRA) | ||
15 | QMAKE_CFLAGS_WARN_ON = -Wall -W | ||
16 | QMAKE_CFLAGS_WARN_OFF = | ||
17 | QMAKE_CFLAGS_RELEASE = $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) | ||
18 | QMAKE_CFLAGS_DEBUG = -g | ||
19 | QMAKE_CFLAGS_SHLIB = -fPIC | ||
20 | QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
21 | QMAKE_CFLAGS_THREAD = -D_REENTRANT | ||
22 | |||
23 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
24 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS) $(CXXFLAGS_EXTRA) | ||
25 | QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON | ||
26 | QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF | ||
27 | QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE | ||
28 | QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG | ||
29 | QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB | ||
30 | QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC | ||
31 | QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD | ||
32 | |||
33 | QMAKE_INCDIR = | ||
34 | QMAKE_LIBDIR = | ||
35 | QMAKE_INCDIR_X11 = | ||
36 | QMAKE_LIBDIR_X11 = | ||
37 | QMAKE_INCDIR_QT = $(OE_QMAKE_INCDIR_QT) | ||
38 | QMAKE_LIBDIR_QT = $(OE_QMAKE_LIBDIR_QT) | ||
39 | QMAKE_INCDIR_OPENGL = | ||
40 | QMAKE_LIBDIR_OPENGL = | ||
41 | |||
42 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
43 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
44 | QMAKE_LFLAGS = $(OE_QMAKE_LDFLAGS) $(LFLAGS_EXTRA) | ||
45 | QMAKE_LFLAGS_RELEASE = | ||
46 | QMAKE_LFLAGS_DEBUG = | ||
47 | QMAKE_LFLAGS_SHLIB = -shared | ||
48 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
49 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
50 | QMAKE_LFLAGS_THREAD = | ||
51 | QMAKE_RPATH = -Wl,-rpath-link, | ||
52 | |||
53 | QMAKE_LIBS = $(LIBS_EXTRA) | ||
54 | QMAKE_LIBS_DYNLOAD = -ldl | ||
55 | QMAKE_LIBS_X11 = $(OE_QMAKE_LIBS_X11) | ||
56 | QMAKE_LIBS_X11SM = | ||
57 | QMAKE_LIBS_QT = -l$(OE_QMAKE_LIBS_QT) | ||
58 | QMAKE_LIBS_QT_THREAD = -l$(OE_QMAKE_LIBS_QT)-mt | ||
59 | QMAKE_LIBS_OPENGL = $(OE_QMAKE_LIBS_OPENGL) | ||
60 | QMAKE_LIBS_OPENGL_QT = $(OE_QMAKE_LIBS_OPENGL_QT) | ||
61 | QMAKE_LIBS_THREAD = -lpthread | ||
62 | |||
63 | QMAKE_MOC = $(OE_QMAKE_MOC) | ||
64 | QMAKE_UIC = $(OE_QMAKE_UIC) | ||
65 | |||
66 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
67 | QMAKE_RANLIB = | ||
68 | |||
69 | QMAKE_TAR = tar -cf | ||
70 | QMAKE_GZIP = gzip -9f | ||
71 | |||
72 | QMAKE_COPY = cp -f | ||
73 | QMAKE_COPY_FILE = $(COPY) | ||
74 | QMAKE_COPY_DIR = $(COPY) -r | ||
75 | QMAKE_MOVE = mv -f | ||
76 | QMAKE_DEL_FILE = rm -f | ||
77 | QMAKE_DEL_DIR = rmdir | ||
78 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
79 | QMAKE_STRIPFLAGS_LIB += --strip-unneeded | ||
80 | QMAKE_CHK_DIR_EXISTS = test -d | ||
81 | QMAKE_MKDIR = mkdir -p | ||
82 | |||
diff --git a/meta-oe/recipes-qt/qt4/files/linux.conf b/meta-oe/recipes-qt/qt4/files/linux.conf deleted file mode 100644 index 90b8d65ab..000000000 --- a/meta-oe/recipes-qt/qt4/files/linux.conf +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for common linux | ||
3 | # | ||
4 | |||
5 | QMAKE_CFLAGS_THREAD += -D_REENTRANT | ||
6 | QMAKE_CXXFLAGS_THREAD += $$QMAKE_CFLAGS_THREAD | ||
7 | |||
8 | QMAKE_INCDIR = | ||
9 | QMAKE_LIBDIR = | ||
10 | QMAKE_INCDIR_X11 = | ||
11 | QMAKE_LIBDIR_X11 = | ||
12 | QMAKE_INCDIR_QT = $(OE_QMAKE_INCDIR_QT) | ||
13 | QMAKE_LIBDIR_QT = $(OE_QMAKE_LIBDIR_QT) | ||
14 | QMAKE_INCDIR_OPENGL = | ||
15 | QMAKE_LIBDIR_OPENGL = | ||
16 | |||
17 | |||
18 | QMAKE_LIBS = | ||
19 | QMAKE_LIBS_DYNLOAD = -ldl | ||
20 | QMAKE_LIBS_X11 = $(OE_QMAKE_LIBS_X11) | ||
21 | QMAKE_LIBS_X11SM = $(OE_QMAKE_LIBS_X11SM) | ||
22 | QMAKE_LIBS_NIS = -lnsl | ||
23 | QMAKE_LIBS_OPENGL = -lGLU -lGL | ||
24 | QMAKE_LIBS_OPENGL_QT = -lGL | ||
25 | QMAKE_LIBS_THREAD = -lpthread | ||
26 | |||
27 | QMAKE_MOC = $(OE_QMAKE_MOC) | ||
28 | QMAKE_UIC = $(OE_QMAKE_UIC) | ||
29 | QMAKE_UIC3 = $(OE_QMAKE_UIC3) | ||
30 | QMAKE_RCC = $(OE_QMAKE_RCC) | ||
31 | QMAKE_QDBUSCPP2XML = $(OE_QMAKE_QDBUSCPP2XML) | ||
32 | QMAKE_QDBUSXML2CPP = $(OE_QMAKE_QDBUSXML2CPP) | ||
33 | |||
34 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
35 | QMAKE_OBJCOPY = objcopy | ||
36 | QMAKE_RANLIB = | ||
37 | |||
38 | QMAKE_TAR = tar -cf | ||
39 | QMAKE_GZIP = gzip -9f | ||
40 | |||
41 | QMAKE_COPY = cp -f | ||
42 | QMAKE_COPY_FILE = $(COPY) | ||
43 | QMAKE_COPY_DIR = $(COPY) -r | ||
44 | QMAKE_MOVE = mv -f | ||
45 | QMAKE_DEL_FILE = rm -f | ||
46 | QMAKE_DEL_DIR = rmdir | ||
47 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
48 | QMAKE_STRIPFLAGS_LIB += --strip-unneeded | ||
49 | QMAKE_CHK_DIR_EXISTS = test -d | ||
50 | QMAKE_MKDIR = mkdir -p | ||
51 | QMAKE_INSTALL_FILE = install -m 644 -p | ||
52 | QMAKE_INSTALL_PROGRAM = install -m 755 -p | ||
53 | |||
54 | include(unix.conf) | ||
diff --git a/meta-oe/recipes-qt/qt4/files/mips-relocate.patch b/meta-oe/recipes-qt/qt4/files/mips-relocate.patch deleted file mode 100644 index 2fde9a0dc..000000000 --- a/meta-oe/recipes-qt/qt4/files/mips-relocate.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Disable the LDFLAGS "-Bsymbolic-functions" for mips | ||
2 | |||
3 | "-Bsymbolic-functions" flag makes ld to bind the global function symbol of shared library at compiling time, thus reduce the runtime relocation cost. | ||
4 | |||
5 | However, this flag in binutil 2.20 cause QT4 mips building failure, which is "final link failed: Bad value" error in libQtWebKit.so linking stage. If downgrad to binutil 2.19, this error disappears. further investigation showes commit http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/mips.sc.diff?r1=1.2&r2=1.3&cvsroot=src cause this error. | ||
6 | |||
7 | So this patch disable this flag for QT4 mips. If future binutils version fix this issue, this patch can be safely removed. | ||
8 | |||
9 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
10 | |||
11 | diff --git a/configure b/configure | ||
12 | index ca14279..5db9926 100755 | ||
13 | --- a/configure | ||
14 | +++ b/configure | ||
15 | @@ -3035,6 +3035,13 @@ if [ "$CFG_REDUCE_RELOCATIONS" != "no" ]; then | ||
16 | fi | ||
17 | fi | ||
18 | |||
19 | +# Temporily disable -Bsymbolic-functions for mips, because libQtWebKit can not pass the build | ||
20 | +# if has -Bsymbolic-functions and binutil 2.20 | ||
21 | +# -Bsymbolic-functions is OK in binutil 2.19 | ||
22 | +if [ "$CFG_ARCH" = "mips" ]; then | ||
23 | + CFG_REDUCE_RELOCATIONS=no | ||
24 | +fi | ||
25 | + | ||
26 | # auto-detect GNU make support | ||
27 | if [ "$CFG_USE_GNUMAKE" = "auto" ] && "$MAKE" -v | grep "GNU Make" >/dev/null 2>&1; then | ||
28 | CFG_USE_GNUMAKE=yes | ||
diff --git a/meta-oe/recipes-qt/qt4/files/qmake-exists-check.patch b/meta-oe/recipes-qt/qt4/files/qmake-exists-check.patch deleted file mode 100644 index cc73837e5..000000000 --- a/meta-oe/recipes-qt/qt4/files/qmake-exists-check.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | qt4-tools-nativesdk: avoid rebuilding qmake | ||
2 | |||
3 | qt4-tools-nativesdk patch to avoids building qmake in configure if it already exists | ||
4 | (as it will, since we symlink it in from the native sysroot in do_configure) | ||
5 | |||
6 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
7 | |||
8 | --- qt-everywhere-opensource-src-4.6.3.orig/configure 2011-01-10 12:01:56.260607001 +0000 | ||
9 | +++ qt-everywhere-opensource-src-4.6.3/configure 2011-01-10 12:02:20.584607015 +0000 | ||
10 | @@ -4286,7 +4286,7 @@ | ||
11 | } | ||
12 | |||
13 | # build qmake | ||
14 | -if true; then ###[ '!' -f "$outpath/bin/qmake" ]; | ||
15 | +if [ '!' -f "$outpath/bin/qmake" ]; then | ||
16 | echo "Creating qmake. Please wait..." | ||
17 | |||
18 | OLD_QCONFIG_H= | ||
diff --git a/meta-oe/recipes-qt/qt4/files/qte.sh b/meta-oe/recipes-qt/qt4/files/qte.sh deleted file mode 100644 index 21d6ecbd6..000000000 --- a/meta-oe/recipes-qt/qt4/files/qte.sh +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /dev/input/touchscreen0 ] | ||
4 | then | ||
5 | QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0 | ||
6 | export QWS_MOUSE_PROTO | ||
7 | fi | ||
diff --git a/meta-oe/recipes-qt/qt4/files/qthelp-lib-qtclucene.patch b/meta-oe/recipes-qt/qt4/files/qthelp-lib-qtclucene.patch deleted file mode 100644 index 1d250d8a9..000000000 --- a/meta-oe/recipes-qt/qt4/files/qthelp-lib-qtclucene.patch +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | qt-embedded: fix linker error in do_compile | ||
2 | |||
3 | This patch ensures that we link to libQtCLucene where required (i.e. when | ||
4 | linking to libQtHelp) avoiding a linker error. | ||
5 | |||
6 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
7 | |||
8 | Index: qt-everywhere-opensource-src-4.6.3/demos/qtdemo/qtdemo.pro | ||
9 | =================================================================== | ||
10 | --- qt-everywhere-opensource-src-4.6.3.orig/demos/qtdemo/qtdemo.pro 2011-01-11 16:06:47.382828004 +0000 | ||
11 | +++ qt-everywhere-opensource-src-4.6.3/demos/qtdemo/qtdemo.pro 2011-01-11 16:10:06.906828001 +0000 | ||
12 | @@ -76,3 +76,10 @@ | ||
13 | sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES qtdemo.pro images xml *.ico *.icns *.rc *.plist | ||
14 | sources.path = $$[QT_INSTALL_DEMOS]/qtdemo | ||
15 | |||
16 | +qclucene = QtCLucene$${QT_LIBINFIX} | ||
17 | +if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { | ||
18 | + mac:qclucene = $${qclucene}_debug | ||
19 | + win32:qclucene = $${qclucene}d | ||
20 | +} | ||
21 | +linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene | ||
22 | +LIBS_PRIVATE += -l$$qclucene | ||
23 | Index: qt-everywhere-opensource-src-4.6.3/examples/help/contextsensitivehelp/contextsensitivehelp.pro | ||
24 | =================================================================== | ||
25 | --- qt-everywhere-opensource-src-4.6.3.orig/examples/help/contextsensitivehelp/contextsensitivehelp.pro 2011-01-11 16:05:56.598828002 +0000 | ||
26 | +++ qt-everywhere-opensource-src-4.6.3/examples/help/contextsensitivehelp/contextsensitivehelp.pro 2011-01-11 16:09:57.762828002 +0000 | ||
27 | @@ -18,3 +18,11 @@ | ||
28 | INSTALLS += target sources | ||
29 | |||
30 | symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) | ||
31 | + | ||
32 | +qclucene = QtCLucene$${QT_LIBINFIX} | ||
33 | +if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { | ||
34 | + mac:qclucene = $${qclucene}_debug | ||
35 | + win32:qclucene = $${qclucene}d | ||
36 | +} | ||
37 | +linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene | ||
38 | +LIBS_PRIVATE += -l$$qclucene | ||
39 | Index: qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/assistant/assistant.pro | ||
40 | =================================================================== | ||
41 | --- qt-everywhere-opensource-src-4.6.3.orig/tools/assistant/tools/assistant/assistant.pro 2011-01-11 14:56:50.902828001 +0000 | ||
42 | +++ qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/assistant/assistant.pro 2011-01-11 16:09:39.914828003 +0000 | ||
43 | @@ -85,3 +85,11 @@ | ||
44 | DEFINES += USE_STATIC_SQLITE_PLUGIN | ||
45 | } | ||
46 | } | ||
47 | + | ||
48 | +qclucene = QtCLucene$${QT_LIBINFIX} | ||
49 | +if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { | ||
50 | + mac:qclucene = $${qclucene}_debug | ||
51 | + win32:qclucene = $${qclucene}d | ||
52 | +} | ||
53 | +linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene | ||
54 | +LIBS_PRIVATE += -l$$qclucene | ||
55 | Index: qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/qcollectiongenerator/qcollectiongenerator.pro | ||
56 | =================================================================== | ||
57 | --- qt-everywhere-opensource-src-4.6.3.orig/tools/assistant/tools/qcollectiongenerator/qcollectiongenerator.pro 2011-01-11 14:56:50.918828002 +0000 | ||
58 | +++ qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/qcollectiongenerator/qcollectiongenerator.pro 2011-01-11 16:09:44.538828001 +0000 | ||
59 | @@ -12,3 +12,11 @@ | ||
60 | main.cpp | ||
61 | |||
62 | HEADERS += ../shared/helpgenerator.h | ||
63 | + | ||
64 | +qclucene = QtCLucene$${QT_LIBINFIX} | ||
65 | +if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { | ||
66 | + mac:qclucene = $${qclucene}_debug | ||
67 | + win32:qclucene = $${qclucene}d | ||
68 | +} | ||
69 | +linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene | ||
70 | +LIBS_PRIVATE += -l$$qclucene | ||
71 | Index: qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/qhelpgenerator/qhelpgenerator.pro | ||
72 | =================================================================== | ||
73 | --- qt-everywhere-opensource-src-4.6.3.orig/tools/assistant/tools/qhelpgenerator/qhelpgenerator.pro 2011-01-11 14:56:50.930828002 +0000 | ||
74 | +++ qt-everywhere-opensource-src-4.6.3/tools/assistant/tools/qhelpgenerator/qhelpgenerator.pro 2011-01-11 16:09:50.274828003 +0000 | ||
75 | @@ -12,3 +12,11 @@ | ||
76 | main.cpp | ||
77 | |||
78 | HEADERS += ../shared/helpgenerator.h | ||
79 | + | ||
80 | +qclucene = QtCLucene$${QT_LIBINFIX} | ||
81 | +if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { | ||
82 | + mac:qclucene = $${qclucene}_debug | ||
83 | + win32:qclucene = $${qclucene}d | ||
84 | +} | ||
85 | +linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene | ||
86 | +LIBS_PRIVATE += -l$$qclucene | ||
diff --git a/meta-oe/recipes-qt/qt4/files/0001-fix-mkspecs.patch b/meta-oe/recipes-qt/qt4/qmake2/0001-fix-mkspecs.patch index 0fccb57c0..0fccb57c0 100644 --- a/meta-oe/recipes-qt/qt4/files/0001-fix-mkspecs.patch +++ b/meta-oe/recipes-qt/qt4/qmake2/0001-fix-mkspecs.patch | |||
diff --git a/meta-oe/recipes-qt/qt4/files/qmake-hack.diff b/meta-oe/recipes-qt/qt4/qmake2/qmake-hack.diff index 290f54052..290f54052 100644 --- a/meta-oe/recipes-qt/qt4/files/qmake-hack.diff +++ b/meta-oe/recipes-qt/qt4/qmake2/qmake-hack.diff | |||
diff --git a/meta-oe/recipes-qt/qt4/files/qt-config.patch b/meta-oe/recipes-qt/qt4/qmake2/qt-config.patch index a31e7b3e2..3aa041aa5 100644 --- a/meta-oe/recipes-qt/qt4/files/qt-config.patch +++ b/meta-oe/recipes-qt/qt4/qmake2/qt-config.patch | |||
@@ -1,6 +1,3 @@ | |||
1 | |||
2 | Ported from OE by: Yu Ke <ke.yu@intel.com> | ||
3 | |||
4 | --- /tmp/qlibraryinfo.cpp 2008-08-02 17:16:41.000000000 +0200 | 1 | --- /tmp/qlibraryinfo.cpp 2008-08-02 17:16:41.000000000 +0200 |
5 | +++ qt-embedded-linux-opensource-src-4.4.1/src/corelib/global/qlibraryinfo.cpp 2008-08-02 17:17:42.000000000 +0200 | 2 | +++ qt-embedded-linux-opensource-src-4.4.1/src/corelib/global/qlibraryinfo.cpp 2008-08-02 17:17:42.000000000 +0200 |
6 | @@ -47,6 +47,7 @@ | 3 | @@ -47,6 +47,7 @@ |
@@ -17,7 +14,7 @@ Ported from OE by: Yu Ke <ke.yu@intel.com> | |||
17 | qtconfig = qmake_libraryInfoFile(); | 14 | qtconfig = qmake_libraryInfoFile(); |
18 | + if (!QFile::exists(qtconfig)) { | 15 | + if (!QFile::exists(qtconfig)) { |
19 | + QByteArray config = getenv("QT_CONF_PATH"); | 16 | + QByteArray config = getenv("QT_CONF_PATH"); |
20 | + qtconfig = QFile::decodeName(config); | 17 | + qtconfig = config; |
21 | + } | 18 | + } |
22 | #else | 19 | #else |
23 | if (!QFile::exists(qtconfig) && QCoreApplication::instance()) { | 20 | if (!QFile::exists(qtconfig) && QCoreApplication::instance()) { |
diff --git a/meta-oe/recipes-qt/qt4/files/use-lflags-last.patch b/meta-oe/recipes-qt/qt4/qmake2/use-lflags-last.patch index 4197dbbf6..4197dbbf6 100644 --- a/meta-oe/recipes-qt/qt4/files/use-lflags-last.patch +++ b/meta-oe/recipes-qt/qt4/qmake2/use-lflags-last.patch | |||
diff --git a/meta-oe/recipes-qt/qt4/qt-4.7.2.inc b/meta-oe/recipes-qt/qt4/qt-4.7.2.inc deleted file mode 100644 index ed62bd3c0..000000000 --- a/meta-oe/recipes-qt/qt4/qt-4.7.2.inc +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | LICENSE = "LGPLv2.1 | GPLv3" | ||
2 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
3 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
4 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
5 | |||
6 | FILESPATH =. "${FILE_DIRNAME}/qt-${PV}:" | ||
7 | |||
8 | SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
9 | file://0004-no-qmake.patch \ | ||
10 | file://hack-out-pg2-4.7.0.patch \ | ||
11 | file://0006-freetype-host-includes.patch \ | ||
12 | file://0001-Added-Openembedded-crossarch-option.patch \ | ||
13 | file://g++.conf \ | ||
14 | file://linux.conf \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "66b992f5c21145df08c99d21847f4fdb" | ||
18 | SRC_URI[sha256sum] = "d4783b524b90bcd270ccf6e7a30d5fb51696c47eb5de49ebc2d553cd3eb49336" | ||
19 | |||
20 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
21 | |||
22 | FILES_${QT_BASE_NAME}-tools += "${bindir}/qml" | ||
23 | |||
24 | do_configure_prepend() { | ||
25 | for pro in $(find ${S} -name "*.pro") ; do | ||
26 | sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro | ||
27 | done | ||
28 | |||
29 | sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf | ||
30 | sed -i \ | ||
31 | -e /QMAKE_MOC\ /d \ | ||
32 | -e /QMAKE_UIC\ /d \ | ||
33 | -e /QMAKE_UIC3\ /d \ | ||
34 | -e /QMAKE_RCC\ /d \ | ||
35 | ${S}/configure | ||
36 | } | ||
37 | |||
38 | do_configure_append() { | ||
39 | sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile | ||
40 | } | ||
41 | |||
42 | QT_GLFLAGS ?= "" | ||
43 | QT_CONFIG_FLAGS += " -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}" | ||
44 | |||
45 | do_compile() { | ||
46 | # Fixup missing wsegl header in some SGX SDKs | ||
47 | if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then | ||
48 | cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/ | ||
49 | fi | ||
50 | |||
51 | unset CFLAGS CXXFLAGS | ||
52 | install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc | ||
53 | install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc | ||
54 | install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic | ||
55 | install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease | ||
56 | |||
57 | oe_runmake ${EXTRA_ENV} | ||
58 | } | ||
diff --git a/meta-oe/recipes-qt/qt4/qt-4.7.2/0001-Added-Openembedded-crossarch-option.patch b/meta-oe/recipes-qt/qt4/qt-4.7.2/0001-Added-Openembedded-crossarch-option.patch deleted file mode 100644 index 71a04a59d..000000000 --- a/meta-oe/recipes-qt/qt4/qt-4.7.2/0001-Added-Openembedded-crossarch-option.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From b1ba119f6a824dc01bd42ee00dba4a1653867b72 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Matthias=20G=C3=BCnther?= <matgnt@gmail.com> | ||
3 | Date: Wed, 12 May 2010 16:52:45 +0200 | ||
4 | Subject: [PATCH 1/9] Added Openembedded "-crossarch" option | ||
5 | |||
6 | --- | ||
7 | configure | 7 ++++++- | ||
8 | 1 files changed, 6 insertions(+), 1 deletions(-) | ||
9 | |||
10 | diff --git a/configure b/configure | ||
11 | index facd192..9d15136 100755 | ||
12 | --- a/configure | ||
13 | +++ b/configure | ||
14 | @@ -954,7 +954,7 @@ while [ "$#" -gt 0 ]; do | ||
15 | shift | ||
16 | VAL=$1 | ||
17 | ;; | ||
18 | - -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config) | ||
19 | + -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-crossarch) | ||
20 | VAR=`echo $1 | sed "s,^-\(.*\),\1,"` | ||
21 | shift | ||
22 | VAL="$1" | ||
23 | @@ -1443,6 +1443,9 @@ while [ "$#" -gt 0 ]; do | ||
24 | xplatform) | ||
25 | XPLATFORM="$VAL" | ||
26 | ;; | ||
27 | + crossarch) | ||
28 | + CROSSARCH="$VAL" | ||
29 | + ;; | ||
30 | debug-and-release) | ||
31 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | ||
32 | CFG_DEBUG_RELEASE="$VAL" | ||
33 | @@ -2918,6 +2921,8 @@ elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then | ||
34 | CFG_ARCH=$CFG_HOST_ARCH | ||
35 | fi | ||
36 | |||
37 | +CFG_ARCH="$CROSSARCH" | ||
38 | + | ||
39 | if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then | ||
40 | if [ "$OPT_VERBOSE" = "yes" ]; then | ||
41 | echo " '$CFG_ARCH' is supported" | ||
42 | -- | ||
43 | 1.7.0.4 | ||
44 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt-4.7.2/g++.conf b/meta-oe/recipes-qt/qt4/qt-4.7.2/g++.conf deleted file mode 100644 index 80f925cc5..000000000 --- a/meta-oe/recipes-qt/qt4/qt-4.7.2/g++.conf +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for common gcc | ||
3 | # | ||
4 | |||
5 | QMAKE_CC = $(OE_QMAKE_CC) | ||
6 | QMAKE_CFLAGS += -pipe $(OE_QMAKE_CFLAGS) | ||
7 | QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS) | ||
8 | QMAKE_CFLAGS_DEPS += -M | ||
9 | QMAKE_CFLAGS_WARN_ON += -Wall -W | ||
10 | QMAKE_CFLAGS_WARN_OFF += -w | ||
11 | QMAKE_CFLAGS_RELEASE += | ||
12 | QMAKE_CFLAGS_DEBUG += -g | ||
13 | QMAKE_CFLAGS_SHLIB += -fPIC | ||
14 | QMAKE_CFLAGS_STATIC_LIB += -fPIC | ||
15 | QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses | ||
16 | QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden | ||
17 | QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
18 | QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE} | ||
19 | |||
20 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
21 | QMAKE_CXXFLAGS += $$QMAKE_CFLAGS $(OE_QMAKE_CXXFLAGS) | ||
22 | QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS | ||
23 | QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON | ||
24 | QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF | ||
25 | QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE | ||
26 | QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO | ||
27 | QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG | ||
28 | QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB | ||
29 | QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB | ||
30 | QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC | ||
31 | QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden | ||
32 | QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT} | ||
33 | QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE | ||
34 | |||
35 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
36 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
37 | QMAKE_LINK_C = $(OE_QMAKE_LINK) | ||
38 | QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK) | ||
39 | QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) | ||
40 | QMAKE_LFLAGS_RELEASE += | ||
41 | QMAKE_LFLAGS_DEBUG += | ||
42 | QMAKE_LFLAGS_APP += | ||
43 | QMAKE_LFLAGS_SHLIB += -shared | ||
44 | QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB | ||
45 | QMAKE_LFLAGS_SONAME += -Wl,-soname, | ||
46 | QMAKE_LFLAGS_THREAD += | ||
47 | QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined | ||
48 | QMAKE_LFLAGS_RPATH = -Wl,-rpath-link, | ||
49 | |||
50 | QMAKE_PCH_OUTPUT_EXT = .gch | ||
51 | |||
52 | # -Bsymbolic-functions (ld) support | ||
53 | QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions | ||
54 | QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, | ||
55 | |||
56 | # some linking helper... | ||
57 | CONFIG += rpath_libdirs | ||
58 | |||
59 | # for the SDK | ||
60 | isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) | ||
diff --git a/meta-oe/recipes-qt/qt4/qt-4.7.2/hack-out-pg2-4.7.0.patch b/meta-oe/recipes-qt/qt4/qt-4.7.2/hack-out-pg2-4.7.0.patch deleted file mode 100644 index 5c588ff0f..000000000 --- a/meta-oe/recipes-qt/qt4/qt-4.7.2/hack-out-pg2-4.7.0.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Index: qt-everywhere-opensource-src-4.7.0/configure | ||
2 | =================================================================== | ||
3 | --- qt-everywhere-opensource-src-4.7.0.orig/configure 2010-09-22 15:43:51.191162141 -0400 | ||
4 | +++ qt-everywhere-opensource-src-4.7.0/configure 2010-09-22 15:44:35.179981232 -0400 | ||
5 | @@ -4921,10 +4921,10 @@ | ||
6 | psql) | ||
7 | if [ "$CFG_SQL_psql" != "no" ]; then | ||
8 | # Be careful not to use native pg_config when cross building. | ||
9 | - if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then | ||
10 | - QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
11 | - QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
12 | - fi | ||
13 | +# if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then | ||
14 | +# QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` | ||
15 | +# QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` | ||
16 | +# fi | ||
17 | [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" | ||
18 | [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" | ||
19 | # But, respect PSQL_LIBS if set | ||
diff --git a/meta-oe/recipes-qt/qt4/qt-4.7.2/linux.conf b/meta-oe/recipes-qt/qt4/qt-4.7.2/linux.conf deleted file mode 100644 index a54135513..000000000 --- a/meta-oe/recipes-qt/qt4/qt-4.7.2/linux.conf +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | # | ||
2 | # qmake configuration for common linux | ||
3 | # | ||
4 | |||
5 | QMAKE_CFLAGS_THREAD += -D_REENTRANT | ||
6 | QMAKE_CXXFLAGS_THREAD += $$QMAKE_CFLAGS_THREAD | ||
7 | |||
8 | QMAKE_INCDIR = | ||
9 | QMAKE_LIBDIR = | ||
10 | QMAKE_INCDIR_X11 = | ||
11 | QMAKE_LIBDIR_X11 = | ||
12 | QMAKE_INCDIR_QT = $(OE_QMAKE_INCDIR_QT) | ||
13 | QMAKE_LIBDIR_QT = $(OE_QMAKE_LIBDIR_QT) | ||
14 | QMAKE_INCDIR_OPENGL = | ||
15 | QMAKE_LIBDIR_OPENGL = | ||
16 | QMAKE_INCDIR_OPENGL_ES1 = $$QMAKE_INCDIR_OPENGL | ||
17 | QMAKE_LIBDIR_OPENGL_ES1 = $$QMAKE_LIBDIR_OPENGL | ||
18 | QMAKE_INCDIR_OPENGL_ES2 = $$QMAKE_INCDIR_OPENGL | ||
19 | QMAKE_LIBDIR_OPENGL_ES2 = $$QMAKE_LIBDIR_OPENGL | ||
20 | QMAKE_INCDIR_EGL = | ||
21 | QMAKE_LIBDIR_EGL = | ||
22 | QMAKE_INCDIR_OPENVG = | ||
23 | QMAKE_LIBDIR_OPENVG = | ||
24 | |||
25 | |||
26 | QMAKE_LIBS = | ||
27 | QMAKE_LIBS_DYNLOAD = -ldl | ||
28 | QMAKE_LIBS_X11 = $(OE_QMAKE_LIBS_X11) | ||
29 | QMAKE_LIBS_X11SM = $(OE_QMAKE_LIBS_X11SM) | ||
30 | QMAKE_LIBS_NIS = -lnsl | ||
31 | QMAKE_LIBS_EGL = -lEGL | ||
32 | QMAKE_LIBS_OPENGL = -lGLU -lGL | ||
33 | QMAKE_LIBS_OPENGL_QT = -lGL | ||
34 | QMAKE_LIBS_OPENGL_ES1 = -lGLES_CM | ||
35 | QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 | ||
36 | QMAKE_LIBS_OPENVG = -lOpenVG | ||
37 | QMAKE_LIBS_THREAD = -lpthread | ||
38 | |||
39 | QMAKE_MOC = $(OE_QMAKE_MOC) | ||
40 | QMAKE_UIC = $(OE_QMAKE_UIC) | ||
41 | QMAKE_UIC3 = $(OE_QMAKE_UIC3) | ||
42 | QMAKE_RCC = $(OE_QMAKE_RCC) | ||
43 | QMAKE_QDBUSCPP2XML = $(OE_QMAKE_QDBUSCPP2XML) | ||
44 | QMAKE_QDBUSXML2CPP = $(OE_QMAKE_QDBUSXML2CPP) | ||
45 | |||
46 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
47 | QMAKE_OBJCOPY = objcopy | ||
48 | QMAKE_RANLIB = | ||
49 | |||
50 | QMAKE_TAR = tar -cf | ||
51 | QMAKE_GZIP = gzip -9f | ||
52 | |||
53 | QMAKE_COPY = cp -f | ||
54 | QMAKE_COPY_FILE = $(COPY) | ||
55 | QMAKE_COPY_DIR = $(COPY) -r | ||
56 | QMAKE_MOVE = mv -f | ||
57 | QMAKE_DEL_FILE = rm -f | ||
58 | QMAKE_DEL_DIR = rmdir | ||
59 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
60 | QMAKE_STRIPFLAGS_LIB += --strip-unneeded | ||
61 | QMAKE_CHK_DIR_EXISTS = test -d | ||
62 | QMAKE_MKDIR = mkdir -p | ||
63 | QMAKE_INSTALL_FILE = install -m 644 -p | ||
64 | QMAKE_INSTALL_PROGRAM = install -m 755 -p | ||
65 | |||
66 | include(unix.conf) | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-embedded.inc b/meta-oe/recipes-qt/qt4/qt4-embedded.inc deleted file mode 100644 index 2ed1819f6..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-embedded.inc +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the embedded version." | ||
2 | SECTION = "libs" | ||
3 | LICENSE = "LGPLv2.1 | GPLv3" | ||
4 | PRIORITY = "optional" | ||
5 | HOMEPAGE = "http://qt.nokia.com" | ||
6 | DEPENDS += "directfb tslib" | ||
7 | INC_PR = "r26" | ||
8 | |||
9 | QT_BASE_NAME ?= "qt4-embedded" | ||
10 | QT_BASE_LIB ?= "libqt-embedded" | ||
11 | |||
12 | # Set necessary variables in the profile | ||
13 | SRC_URI += "file://qte.sh" | ||
14 | |||
15 | QT_CONFIG_FLAGS += " \ | ||
16 | -embedded ${QT_ARCH} \ | ||
17 | -qtlibinfix ${QT_LIBINFIX} \ | ||
18 | -plugin-gfx-transformed -plugin-gfx-qvfb -plugin-gfx-vnc -plugin-gfx-directfb \ | ||
19 | -plugin-mouse-tslib -qt-mouse-pc -qt-mouse-qvfb -qt-mouse-linuxinput \ | ||
20 | -qt-kbd-tty \ | ||
21 | -DQT_KEYPAD_NAVIGATION \ | ||
22 | " | ||
23 | |||
24 | require qt4.inc | ||
25 | |||
26 | do_install_append() { | ||
27 | install -d ${D}${sysconfdir}/profile.d/ | ||
28 | install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/ | ||
29 | } | ||
30 | |||
31 | FILES_${PN} += " ${sysconfdir}/profile.d/qte.sh" | ||
32 | |||
33 | inherit qt4e | ||
34 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4-embedded/0006-freetype-host-includes.patch b/meta-oe/recipes-qt/qt4/qt4-embedded/0006-freetype-host-includes.patch deleted file mode 100644 index 987c42513..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-embedded/0006-freetype-host-includes.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | From c9ab62bd9a56643574b3ae6e59e0ca776d4860d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 4 Jun 2007 14:48:50 +0200 | ||
4 | Subject: [PATCH] freetype host includes | ||
5 | |||
6 | --- | ||
7 | config.tests/unix/freetype/freetype.pri | 2 +- | ||
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
9 | |||
10 | Index: qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri | ||
11 | =================================================================== | ||
12 | --- qt-embedded-linux-opensource-src-4.5.0.orig/config.tests/unix/freetype/freetype.pri 2009-02-25 22:32:32.000000000 +0100 | ||
13 | +++ qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri 2009-03-26 17:14:16.000000000 +0100 | ||
14 | @@ -1,5 +1,5 @@ | ||
15 | !cross_compile { | ||
16 | - TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
17 | + TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
18 | # LSB doesn't allow using headers from /include or /usr/include | ||
19 | linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
20 | for(p, TRY_INCLUDEPATHS) { | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.2.bb b/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.2.bb deleted file mode 100644 index c3f671319..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.2.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require qt-${PV}.inc | ||
2 | require qt4-embedded.inc | ||
3 | |||
4 | PR = "${INC_PR}.1" | ||
5 | |||
6 | QT_CONFIG_FLAGS_append_armv6 = " -no-neon " | ||
7 | |||
8 | QT_CONFIG_FLAGS += " \ | ||
9 | -exceptions \ | ||
10 | " | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.3.bbappend b/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.3.bbappend new file mode 100644 index 000000000..9b4ede445 --- /dev/null +++ b/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.3.bbappend | |||
@@ -0,0 +1,5 @@ | |||
1 | DEPENDS += "mysql5 postgresql sqlite" | ||
2 | QT_SQL_DRIVER_FLAGS = "-no-sql-ibase -plugin-sql-mysql -no-sql-odbc -plugin-sql-psql -plugin-sql-sqlite2 -plugin-sql-sqlite" | ||
3 | QT_CONFIG_FLAGS += "-I${STAGING_INCDIR}/mysql \ | ||
4 | -I${STAGING_INCDIR}/postgresql" | ||
5 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4-tools-native.inc b/meta-oe/recipes-qt/qt4/qt4-tools-native.inc deleted file mode 100644 index 9114e7df6..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-tools-native.inc +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x" | ||
2 | DEPENDS = "zlib-native dbus-native" | ||
3 | SECTION = "libs" | ||
4 | HOMEPAGE = "http://qt.nokia.com" | ||
5 | PRIORITY = "optional" | ||
6 | |||
7 | LICENSE = "LGPLv2.1 | GPLv3" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
9 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
10 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
11 | |||
12 | INC_PR = "r11" | ||
13 | |||
14 | inherit native | ||
15 | |||
16 | SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
17 | file://qt-config.patch \ | ||
18 | file://g++.conf \ | ||
19 | file://linux.conf" | ||
20 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
21 | |||
22 | EXTRA_OECONF = "-prefix ${prefix} \ | ||
23 | -L ${STAGING_LIBDIR_NATIVE} \ | ||
24 | -I ${STAGING_INCDIR_NATIVE} \ | ||
25 | -qt-libjpeg -qt-gif -system-zlib \ | ||
26 | -no-libjpeg -no-libpng -no-libmng -no-libtiff \ | ||
27 | -no-accessibility \ | ||
28 | -no-cups \ | ||
29 | -no-exceptions \ | ||
30 | -no-nas-sound \ | ||
31 | -no-nis -no-openssl \ | ||
32 | -verbose -release -static \ | ||
33 | -embedded -no-freetype -no-glib -no-iconv \ | ||
34 | -qt3support" | ||
35 | |||
36 | # yank default -e, otherwise we get the following error: | ||
37 | # moc_qbuffer.cpp: No such file or directory | ||
38 | EXTRA_OEMAKE = " " | ||
39 | |||
40 | do_configure() { | ||
41 | (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
42 | } | ||
43 | |||
44 | TOBUILD = "\ | ||
45 | src/tools/moc \ | ||
46 | src/corelib \ | ||
47 | src/sql \ | ||
48 | src/dbus \ | ||
49 | src/qt3support \ | ||
50 | src/xml \ | ||
51 | src/tools/uic \ | ||
52 | src/tools/rcc \ | ||
53 | src/network \ | ||
54 | tools/linguist/lrelease \ | ||
55 | tools/linguist/lupdate \ | ||
56 | " | ||
57 | |||
58 | do_compile() { | ||
59 | for i in ${TOBUILD}; do | ||
60 | cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}" | ||
61 | done | ||
62 | } | ||
63 | |||
64 | do_install() { | ||
65 | install -d ${D}${bindir}/ | ||
66 | install -m 0755 bin/qmake ${D}${bindir}/qmake2 | ||
67 | for i in moc uic rcc lrelease lupdate; do | ||
68 | install -m 0755 bin/${i} ${D}${bindir}/${i}4 | ||
69 | done | ||
70 | |||
71 | install -d ${D}${datadir}/qt4/ | ||
72 | cp -PfR mkspecs ${D}${datadir}/qt4/ | ||
73 | ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++ | ||
74 | cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/ | ||
75 | |||
76 | install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/ | ||
77 | } | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-tools-native_4.7.2.bb b/meta-oe/recipes-qt/qt4/qt4-tools-native_4.7.2.bb deleted file mode 100644 index d3c0edae6..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-tools-native_4.7.2.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | require qt4-tools-native.inc | ||
2 | |||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | # Find the g++.conf/linux.conf in the right directory. | ||
6 | FILESPATHPKG =. "qt-${PV}:" | ||
7 | |||
8 | EXTRA_OECONF += " -no-fast -silent -no-rpath" | ||
9 | |||
10 | TOBUILD := "src/tools/bootstrap ${TOBUILD}" | ||
11 | |||
12 | SRC_URI[md5sum] = "66b992f5c21145df08c99d21847f4fdb" | ||
13 | SRC_URI[sha256sum] = "d4783b524b90bcd270ccf6e7a30d5fb51696c47eb5de49ebc2d553cd3eb49336" | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk.inc deleted file mode 100644 index f273c9fab..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk.inc +++ /dev/null | |||
@@ -1,111 +0,0 @@ | |||
1 | DESCRIPTION = "SDK tools for Qt/[X11|Mac|Embedded] version 4.x" | ||
2 | DEPENDS = "zlib-nativesdk dbus-nativesdk libx11-nativesdk qt4-tools-native" | ||
3 | SECTION = "libs" | ||
4 | HOMEPAGE = "http://qt.nokia.com" | ||
5 | PRIORITY = "optional" | ||
6 | LICENSE = "LGPLv2.1 | GPLv3" | ||
7 | |||
8 | INC_PR = "r3" | ||
9 | |||
10 | FILESPATHPKG =. "qt-${PV}:" | ||
11 | inherit nativesdk qmake2 | ||
12 | |||
13 | SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
14 | file://configure-lflags.patch \ | ||
15 | file://compile.test-lflags.patch \ | ||
16 | file://qt-config.patch \ | ||
17 | file://qmake-exists-check.patch \ | ||
18 | file://configure-paths.patch \ | ||
19 | file://g++.conf \ | ||
20 | file://linux.conf" | ||
21 | |||
22 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
23 | |||
24 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
25 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
26 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
27 | |||
28 | # FIXME: make it work with "${STAGING_BINDIR_NATIVE}/pkg-config --cflags dbus-1" | ||
29 | EXTRA_OECONF = "-prefix ${prefix} \ | ||
30 | -qt-libjpeg -qt-gif -system-zlib \ | ||
31 | -no-libjpeg -no-libpng -no-libmng -no-libtiff \ | ||
32 | -no-accessibility \ | ||
33 | -no-cups \ | ||
34 | -no-exceptions \ | ||
35 | -no-nas-sound \ | ||
36 | -no-nis -no-openssl \ | ||
37 | -verbose -release -fast -static \ | ||
38 | -platform ${TARGET_OS}-oe-g++ \ | ||
39 | -xplatform ${TARGET_OS}-oe-g++ \ | ||
40 | -embedded -no-freetype -no-glib -no-iconv \ | ||
41 | -qt3support \ | ||
42 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include \ | ||
43 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/freetype2 \ | ||
44 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \ | ||
45 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/lib/dbus-1.0/include \ | ||
46 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/c++ \ | ||
47 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/c++/${TARGET_SYS} \ | ||
48 | -L${STAGING_DIR_HOST}${SDKPATHNATIVE}/lib \ | ||
49 | -L${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/lib" | ||
50 | |||
51 | # yank default -e, otherwise we get the following error: | ||
52 | # moc_qbuffer.cpp: No such file or directory | ||
53 | EXTRA_OEMAKE = " " | ||
54 | |||
55 | do_configure() { | ||
56 | if [ ! -e bin/qmake ]; then | ||
57 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake | ||
58 | fi | ||
59 | |||
60 | if [ ! -e mkspecs/${TARGET_OS}-oe-g++ ]; then | ||
61 | ln -sf linux-g++ mkspecs/${TARGET_OS}-oe-g++ | ||
62 | fi | ||
63 | |||
64 | cp ../g++.conf mkspecs/common | ||
65 | cp ../linux.conf mkspecs/common | ||
66 | |||
67 | (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
68 | } | ||
69 | |||
70 | TOBUILD = "\ | ||
71 | src/tools/bootstrap \ | ||
72 | src/tools/moc \ | ||
73 | src/corelib \ | ||
74 | src/sql \ | ||
75 | src/dbus \ | ||
76 | src/qt3support \ | ||
77 | src/xml \ | ||
78 | src/tools/uic \ | ||
79 | src/tools/rcc \ | ||
80 | src/network \ | ||
81 | src/gui \ | ||
82 | src/tools/uic3 \ | ||
83 | tools/linguist/lrelease \ | ||
84 | tools/linguist/lupdate \ | ||
85 | tools/qdbus \ | ||
86 | " | ||
87 | |||
88 | do_compile() { | ||
89 | for i in ${TOBUILD}; do | ||
90 | cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}" | ||
91 | done | ||
92 | } | ||
93 | |||
94 | do_install() { | ||
95 | install -d ${D}${bindir} | ||
96 | install -m 0755 bin/qmake ${D}${bindir}/qmake2 | ||
97 | for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do | ||
98 | install -m 0755 bin/${i} ${D}${bindir}/${i}4 | ||
99 | done | ||
100 | |||
101 | (cd ${D}${bindir}; \ | ||
102 | ln -s qmake2 qmake; \ | ||
103 | for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ | ||
104 | ln -s ${i}4 ${i}; \ | ||
105 | done) | ||
106 | |||
107 | # make a symbolic link to mkspecs for compatibility with Nokia's SDK | ||
108 | # and QTCreator | ||
109 | (cd ${D}${bindir}/..; ln -s ${TARGET_SYS}/usr/share/qtopia/mkspecs mkspecs;) | ||
110 | } | ||
111 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk_4.7.2.bb b/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk_4.7.2.bb deleted file mode 100644 index a917ac4b5..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-tools-nativesdk_4.7.2.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require qt4-tools-nativesdk.inc | ||
2 | |||
3 | PR = "${INC_PR}.0" | ||
4 | |||
5 | SRC_URI[md5sum] = "66b992f5c21145df08c99d21847f4fdb" | ||
6 | SRC_URI[sha256sum] = "d4783b524b90bcd270ccf6e7a30d5fb51696c47eb5de49ebc2d553cd3eb49336" | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free.inc b/meta-oe/recipes-qt/qt4/qt4-x11-free.inc deleted file mode 100644 index 057a129ec..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free.inc +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | require qt4.inc | ||
2 | |||
3 | DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is the X11 version." | ||
4 | HOMEPAGE = "http://qt.nokia.com" | ||
5 | SECTION = "x11/libs" | ||
6 | PRIORITY = "optional" | ||
7 | DEPENDS += "virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor" | ||
8 | |||
9 | INC_PR = "r21" | ||
10 | |||
11 | QT_GLFLAGS ?= "-no-opengl" | ||
12 | QT_GLFLAGS_qemux86 = "-opengl" | ||
13 | QT_GLFLAGS_emenlow = "-opengl" | ||
14 | QT_GLFLAGS_atom-pc = "-opengl" | ||
15 | QT_CONFIG_FLAGS += "-no-xinerama -no-xkb ${QT_GLFLAGS}" | ||
16 | QT_BASE_NAME ?= "qt4" | ||
17 | QT_BASE_LIB ?= "libqt" | ||
18 | |||
19 | inherit qt4x11 | ||
20 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free/0003-no-tools.patch b/meta-oe/recipes-qt/qt4/qt4-x11-free/0003-no-tools.patch deleted file mode 100644 index 3829ffcdc..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free/0003-no-tools.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | Index: qt-embedded-linux-opensource-src-4.5.0/src/src.pro | ||
2 | =================================================================== | ||
3 | --- qt-embedded-linux-opensource-src-4.5.0.orig/src/src.pro 2009-02-25 22:32:41.000000000 +0100 | ||
4 | +++ qt-embedded-linux-opensource-src-4.5.0/src/src.pro 2009-03-26 17:11:07.000000000 +0100 | ||
5 | @@ -6,12 +6,9 @@ | ||
6 | wince*:{ | ||
7 | SRC_SUBDIRS += src_corelib src_xml src_gui src_sql src_network src_script src_testlib | ||
8 | } else { | ||
9 | - SRC_SUBDIRS += src_tools_bootstrap src_tools_moc src_tools_rcc src_tools_uic src_corelib src_xml src_network src_gui src_sql src_script src_testlib | ||
10 | + SRC_SUBDIRS += src_corelib src_xml src_network src_gui src_sql src_script src_testlib | ||
11 | contains(QT_CONFIG, qt3support): SRC_SUBDIRS += src_qt3support | ||
12 | contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus | ||
13 | - !cross_compile { | ||
14 | - contains(QT_CONFIG, qt3support): SRC_SUBDIRS += src_tools_uic3 | ||
15 | - } | ||
16 | } | ||
17 | win32:!contains(QT_EDITION, OpenSource|Console): { | ||
18 | SRC_SUBDIRS += src_activeqt | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free/0006-freetype-host-includes.patch b/meta-oe/recipes-qt/qt4/qt4-x11-free/0006-freetype-host-includes.patch deleted file mode 100644 index 987c42513..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free/0006-freetype-host-includes.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | From c9ab62bd9a56643574b3ae6e59e0ca776d4860d2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 4 Jun 2007 14:48:50 +0200 | ||
4 | Subject: [PATCH] freetype host includes | ||
5 | |||
6 | --- | ||
7 | config.tests/unix/freetype/freetype.pri | 2 +- | ||
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
9 | |||
10 | Index: qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri | ||
11 | =================================================================== | ||
12 | --- qt-embedded-linux-opensource-src-4.5.0.orig/config.tests/unix/freetype/freetype.pri 2009-02-25 22:32:32.000000000 +0100 | ||
13 | +++ qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/freetype/freetype.pri 2009-03-26 17:14:16.000000000 +0100 | ||
14 | @@ -1,5 +1,5 @@ | ||
15 | !cross_compile { | ||
16 | - TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
17 | + TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
18 | # LSB doesn't allow using headers from /include or /usr/include | ||
19 | linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH | ||
20 | for(p, TRY_INCLUDEPATHS) { | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free/0007-openssl-host-includes.patch b/meta-oe/recipes-qt/qt4/qt4-x11-free/0007-openssl-host-includes.patch deleted file mode 100644 index 3409cc0bf..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free/0007-openssl-host-includes.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | From d45943adb443ad4b85ca4504952dee743c675e1e Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Krelin <hacker@klever.net> | ||
3 | Date: Mon, 4 Jun 2007 14:58:34 +0200 | ||
4 | Subject: [PATCH] openssl host includes | ||
5 | |||
6 | --- | ||
7 | config.tests/unix/openssl/openssl.pri | 2 +- | ||
8 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
9 | |||
10 | Index: qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/openssl/openssl.pri | ||
11 | =================================================================== | ||
12 | --- qt-embedded-linux-opensource-src-4.5.0.orig/config.tests/unix/openssl/openssl.pri 2009-02-25 22:32:32.000000000 +0100 | ||
13 | +++ qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/openssl/openssl.pri 2009-03-26 17:16:28.000000000 +0100 | ||
14 | @@ -1,5 +1,5 @@ | ||
15 | !cross_compile { | ||
16 | - TRY_INCLUDEPATHS = /include /usr/include /usr/local/include $$QMAKE_INCDIR $$INCLUDEPATH | ||
17 | + TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$INCLUDEPATH | ||
18 | # LSB doesn't allow using headers from /include or /usr/include | ||
19 | linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$INCLUDEPATH | ||
20 | for(p, TRY_INCLUDEPATHS) { | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free/0008-qt-lib-infix.patch b/meta-oe/recipes-qt/qt4/qt4-x11-free/0008-qt-lib-infix.patch deleted file mode 100644 index 3efaff37d..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free/0008-qt-lib-infix.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | Index: qt-embedded-linux-opensource-src-4.5.0/mkspecs/features/uitools.prf | ||
2 | =================================================================== | ||
3 | --- qt-embedded-linux-opensource-src-4.5.0.orig/mkspecs/features/uitools.prf 2009-02-25 22:32:34.000000000 +0100 | ||
4 | +++ qt-embedded-linux-opensource-src-4.5.0/mkspecs/features/uitools.prf 2009-03-26 17:17:27.000000000 +0100 | ||
5 | @@ -2,10 +2,10 @@ | ||
6 | qt:load(qt) | ||
7 | |||
8 | # Include the correct version of the UiLoader library | ||
9 | -QTUITOOLS_LINKAGE = -lQtUiTools | ||
10 | +QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX} | ||
11 | CONFIG(debug, debug|release) { | ||
12 | - mac: QTUITOOLS_LINKAGE = -lQtUiTools_debug | ||
13 | - win32: QTUITOOLS_LINKAGE = -lQtUiToolsd | ||
14 | + mac: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}_debug | ||
15 | + win32: QTUITOOLS_LINKAGE = -lQtUiTools$${QT_LIBINFIX}d | ||
16 | } | ||
17 | LIBS += $$QTUITOOLS_LINKAGE | ||
18 | |||
19 | Index: qt-embedded-linux-opensource-src-4.5.0/tools/designer/src/uitools/uitools.pro | ||
20 | =================================================================== | ||
21 | --- qt-embedded-linux-opensource-src-4.5.0.orig/tools/designer/src/uitools/uitools.pro 2009-02-25 22:32:42.000000000 +0100 | ||
22 | +++ qt-embedded-linux-opensource-src-4.5.0/tools/designer/src/uitools/uitools.pro 2009-03-26 17:17:27.000000000 +0100 | ||
23 | @@ -1,5 +1,5 @@ | ||
24 | TEMPLATE = lib | ||
25 | -TARGET = $$qtLibraryTarget(QtUiTools) | ||
26 | +TARGET = QtUiTools | ||
27 | QT += xml | ||
28 | CONFIG += qt staticlib | ||
29 | DESTDIR = ../../../../lib | ||
30 | @@ -39,3 +39,4 @@ | ||
31 | QMAKE_PKGCONFIG_REQUIRES += QtXml | ||
32 | } | ||
33 | |||
34 | +TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.2.bb b/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.2.bb deleted file mode 100644 index 75c6314e7..000000000 --- a/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.2.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | require qt4-x11-free.inc | ||
2 | require qt-${PV}.inc | ||
3 | |||
4 | PR = "${INC_PR}.1" | ||
5 | |||
6 | QT_CONFIG_FLAGS_append_armv6 = " -no-neon " | ||
7 | |||
8 | QT_CONFIG_FLAGS += " \ | ||
9 | -no-embedded \ | ||
10 | -xrandr \ | ||
11 | -x11" | ||
12 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.3.bbappend b/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.3.bbappend new file mode 100644 index 000000000..9b4ede445 --- /dev/null +++ b/meta-oe/recipes-qt/qt4/qt4-x11-free_4.7.3.bbappend | |||
@@ -0,0 +1,5 @@ | |||
1 | DEPENDS += "mysql5 postgresql sqlite" | ||
2 | QT_SQL_DRIVER_FLAGS = "-no-sql-ibase -plugin-sql-mysql -no-sql-odbc -plugin-sql-psql -plugin-sql-sqlite2 -plugin-sql-sqlite" | ||
3 | QT_CONFIG_FLAGS += "-I${STAGING_INCDIR}/mysql \ | ||
4 | -I${STAGING_INCDIR}/postgresql" | ||
5 | |||
diff --git a/meta-oe/recipes-qt/qt4/qt4.inc b/meta-oe/recipes-qt/qt4/qt4.inc deleted file mode 100644 index 98d55b1be..000000000 --- a/meta-oe/recipes-qt/qt4/qt4.inc +++ /dev/null | |||
@@ -1,314 +0,0 @@ | |||
1 | inherit qmake_base | ||
2 | |||
3 | DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base mysql5 postgresql sqlite sqlite3" | ||
4 | |||
5 | require qt4_arch.inc | ||
6 | QT_ARCH := "${@qt_arch(d)}" | ||
7 | QT_ENDIAN = "${@qt_endian(d)}" | ||
8 | |||
9 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" | ||
10 | QT_DISTRO_FLAGS_poky-lsb = "-sm" | ||
11 | |||
12 | QT_CONFIG_FLAGS += "-release -no-cups -reduce-relocations \ | ||
13 | -shared -no-nas-sound -no-nis \ | ||
14 | -qt-gif -system-libjpeg -system-libpng -system-zlib \ | ||
15 | -no-sql-ibase -plugin-sql-mysql -no-sql-odbc -plugin-sql-psql -plugin-sql-sqlite -plugin-sql-sqlite3 \ | ||
16 | -no-pch -qdbus -stl -glib -phonon -webkit \ | ||
17 | ${QT_DISTRO_FLAGS} " | ||
18 | |||
19 | EXTRA_OEMAKE = "-e" | ||
20 | |||
21 | EXTRA_ENV = 'QMAKE="${STAGING_BINDIR_NATIVE}/qmake2 -after \ | ||
22 | INCPATH+=${STAGING_INCDIR}/freetype2 LIBS+=-L${STAGING_LIBDIR}" \ | ||
23 | QMAKESPEC="${QMAKESPEC}" LINK="${CXX} -Wl,-rpath-link,${STAGING_LIBDIR}" \ | ||
24 | AR="${TARGET_PREFIX}ar cqs" \ | ||
25 | MOC="${STAGING_BINDIR_NATIVE}/moc4" UIC="${STAGING_BINDIR_NATIVE}/uic4" MAKE="make -e"' | ||
26 | |||
27 | export QT_CONF_PATH="${WORKDIR}/qt.conf" | ||
28 | |||
29 | # Library packages | ||
30 | QT_LIB_NAMES = "Qt3Support QtAssistantClient QtCLucene QtCore QtDBus QtDesigner QtDesignerComponents QtGui QtHelp QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtUiTools QtWebKit QtXml QtXmlPatterns phonon QtMultimedia QtOpenVG QtMediaServices QtDeclarative" | ||
31 | |||
32 | QT_EXTRA_LIBS = "pvrQWSWSEGL" | ||
33 | |||
34 | python __anonymous () { | ||
35 | import bb | ||
36 | |||
37 | lib_packages = [] | ||
38 | dev_packages = [] | ||
39 | dbg_packages = [] | ||
40 | for name in bb.data.getVar("QT_LIB_NAMES", d, 1).split(): | ||
41 | pkg = "${QT_BASE_LIB}" + name.lower().replace("qt", "").replace("_", "-") + "4" | ||
42 | # NOTE: the headers for QtAssistantClient are different | ||
43 | incname = name.replace("QtAssistantClient", "QtAssistant") | ||
44 | bb.data.setVar("FILES_%s" % pkg, "${libdir}/lib%(name)s${QT_LIBINFIX}.so.*" % locals(), d) | ||
45 | bb.data.setVar("FILES_%s-dev" % pkg, """${libdir}/lib%(name)s${QT_LIBINFIX}.prl | ||
46 | ${libdir}/lib%(name)s${QT_LIBINFIX}.a | ||
47 | ${libdir}/lib%(name)s${QT_LIBINFIX}.la | ||
48 | ${libdir}/lib%(name)s${QT_LIBINFIX}.so | ||
49 | ${includedir}/${QT_DIR_NAME}/%(incname)s | ||
50 | ${libdir}/pkgconfig/%(name)s${QT_LIBINFIX}.pc""" % locals(), d) | ||
51 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s${QT_LIBINFIX}.so.*" % locals(), d) | ||
52 | lib_packages.append(pkg) | ||
53 | dev_packages.append("%s-dev" % pkg) | ||
54 | dbg_packages.append("%s-dbg" % pkg) | ||
55 | for name in bb.data.getVar("OTHER_PACKAGES", d, 1).split(): | ||
56 | dbg_packages.append("%s-dbg" % name) | ||
57 | |||
58 | for name in bb.data.getVar("QT_EXTRA_LIBS", d, 1).split(): | ||
59 | pkg = "${QT_BASE_LIB}" + name.lower().replace("qt", "").replace("_", "-") + "4" | ||
60 | bb.data.setVar("FILES_%s" % pkg, "${libdir}/lib%(name)s.so.*" % locals(), d) | ||
61 | bb.data.setVar("FILES_%s-dev" % pkg, """${libdir}/lib%(name)s.prl | ||
62 | ${libdir}/lib%(name)s.a | ||
63 | ${libdir}/lib%(name)s.la | ||
64 | ${libdir}/lib%(name)s.so | ||
65 | ${includedir}/${QT_DIR_NAME}/%(incname)s | ||
66 | ${libdir}/pkgconfig/%(name)s.pc""" % locals(), d) | ||
67 | bb.data.setVar("FILES_%s-dbg" % pkg, "${libdir}/.debug/lib%(name)s.so.*" % locals(), d) | ||
68 | lib_packages.append(pkg) | ||
69 | dev_packages.append("%s-dev" % pkg) | ||
70 | dbg_packages.append("%s-dbg" % pkg) | ||
71 | |||
72 | bb.data.setVar("LIB_PACKAGES", " ".join(lib_packages), d) | ||
73 | bb.data.setVar("DEV_PACKAGES", " ".join(dev_packages), d) | ||
74 | bb.data.setVar("DBG_PACKAGES", " ".join(dbg_packages), d) | ||
75 | } | ||
76 | |||
77 | OTHER_PACKAGES = "\ | ||
78 | ${QT_BASE_NAME}-tools \ | ||
79 | ${QT_BASE_NAME}-assistant \ | ||
80 | ${QT_BASE_NAME}-common \ | ||
81 | ${QT_BASE_NAME}-dbus \ | ||
82 | ${QT_BASE_NAME}-demos \ | ||
83 | ${QT_BASE_NAME}-designer \ | ||
84 | ${QT_BASE_NAME}-examples \ | ||
85 | ${QT_BASE_NAME}-fonts \ | ||
86 | ${QT_BASE_NAME}-fonts-ttf-vera \ | ||
87 | ${QT_BASE_NAME}-fonts-ttf-dejavu \ | ||
88 | ${QT_BASE_NAME}-fonts-pfa \ | ||
89 | ${QT_BASE_NAME}-fonts-pfb \ | ||
90 | ${QT_BASE_NAME}-fonts-qpf \ | ||
91 | ${QT_BASE_NAME}-linguist \ | ||
92 | ${QT_BASE_NAME}-makeqpf \ | ||
93 | ${QT_BASE_NAME}-mkspecs \ | ||
94 | ${QT_BASE_NAME}-pixeltool \ | ||
95 | ${QT_BASE_NAME}-qmlviewer \ | ||
96 | ${QT_BASE_NAME}-xmlpatterns \ | ||
97 | ${QT_BASE_NAME}-qt3to4" | ||
98 | |||
99 | PACKAGES += "${LIB_PACKAGES} ${DEV_PACKAGES} ${DBG_PACKAGES} ${OTHER_PACKAGES}" | ||
100 | PACKAGES_DYNAMIC = "${QT_BASE_NAME}-plugin-* ${QT_BASE_NAME}-translation-* ${QT_BASE_NAME}-fonts-*" | ||
101 | |||
102 | ALLOW_EMPTY_${PN} = "1" | ||
103 | ALLOW_EMPTY_${QT_BASE_NAME}-fonts = "1" | ||
104 | FILES_${PN} = "" | ||
105 | FILES_${PN}-dev = "${includedir}/${QT_DIR_NAME}/Qt/*" | ||
106 | FILES_${PN}-dbg = "" | ||
107 | RRECOMMENDS_${PN} = "${LIB_PACKAGES} ${OTHER_PACKAGES}" | ||
108 | RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}" | ||
109 | RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}" | ||
110 | RRECOMMENDS_${QT_BASE_NAME}-fonts = " \ | ||
111 | ${QT_BASE_NAME}-fonts-ttf-vera \ | ||
112 | ${QT_BASE_NAME}-fonts-ttf-dejavu \ | ||
113 | ${QT_BASE_NAME}-fonts-pfa \ | ||
114 | ${QT_BASE_NAME}-fonts-pfb \ | ||
115 | ${QT_BASE_NAME}-fonts-qpf" | ||
116 | RRECOMMENDS_${QT_BASE_NAME}-demos += " \ | ||
117 | ${QT_BASE_NAME}-fonts \ | ||
118 | ${QT_BASE_NAME}-examples \ | ||
119 | ${QT_BASE_NAME}-plugin-sqldriver-sqlite \ | ||
120 | ${QT_BASE_NAME}-plugin-imageformat-jpeg \ | ||
121 | ${QT_BASE_NAME}-assistant \ | ||
122 | ${PN}-doc" | ||
123 | RRECOMMENDS_${QT_BASE_NAME}-examples += " \ | ||
124 | ${QT_BASE_NAME}-plugin-sqldriver-sqlite \ | ||
125 | ${QT_BASE_NAME}-plugin-imageformat-jpeg" | ||
126 | |||
127 | FILES_${QT_BASE_NAME}-tools = "${bindir}/uic* ${bindir}/moc ${bindir}/rcc ${bindir}/qttracereplay ${bindir}/qdoc*" | ||
128 | FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/uic* ${bindir}/.debug/moc ${bindir}/.debug/rcc ${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*" | ||
129 | FILES_${QT_BASE_NAME}-assistant = "${bindir}/*assistant* ${bindir}/qcollectiongenerator ${bindir}/qhelpconverter ${bindir}/qhelpgenerator" | ||
130 | FILES_${QT_BASE_NAME}-assistant-dbg = "${bindir}/.debug/*assistant* ${bindir}/.debug/qcollectiongenerator ${bindir}/.debug/qhelpconverter ${bindir}/.debug/qhelpgenerator" | ||
131 | FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig" | ||
132 | FILES_${QT_BASE_NAME}-common-dbg = "${bindir}/.debug/qtconfig" | ||
133 | FILES_${QT_BASE_NAME}-dbus = "${bindir}/qdbus ${bindir}/qdbusxml2cpp ${bindir}/qdbuscpp2xml ${bindir}/qdbusviewer" | ||
134 | FILES_${QT_BASE_NAME}-dbus-dbg = "${bindir}/.debug/qdbus ${bindir}/.debug/qdbusxml2cpp ${bindir}/.debug/qdbuscpp2xml ${bindir}/.debug/qdbusviewer" | ||
135 | FILES_${QT_BASE_NAME}-demos = "${bindir}/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/*" | ||
136 | FILES_${QT_BASE_NAME}-demos-dbg = "${bindir}/.debug/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/.debug/* ${bindir}/${QT_DIR_NAME}/demos/*/.debug ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug" | ||
137 | FILES_${QT_BASE_NAME}-designer = "${bindir}/*designer*" | ||
138 | FILES_${QT_BASE_NAME}-designer-dbg = "${bindir}/.debug/*designer*" | ||
139 | FILES_${QT_BASE_NAME}-examples = "${bindir}/${QT_DIR_NAME}/examples/*" | ||
140 | FILES_${QT_BASE_NAME}-examples-dbg = "${bindir}/${QT_DIR_NAME}/examples/.debug ${bindir}/${QT_DIR_NAME}/examples/*/.debug ${bindir}/${QT_DIR_NAME}/examples/*/*/.debug ${bindir}/${QT_DIR_NAME}/examples/*/*/*/.debug ${bindir}/${QT_DIR_NAME}/examples/*/*/*/*/.debug ${bindir}/${QT_DIR_NAME}/examples/declarative/*/*/*/*/*/.debug/* ${bindir}/${QT_DIR_NAME}/examples/declarative/*/*/*/*/.debug/*" | ||
141 | FILES_${QT_BASE_NAME}-fonts-ttf-vera = "${libdir}/fonts/Vera*.ttf" | ||
142 | FILES_${QT_BASE_NAME}-fonts-ttf-dejavu = "${libdir}/fonts/DejaVu*.ttf" | ||
143 | FILES_${QT_BASE_NAME}-fonts-pfa = "${libdir}/fonts/*.pfa" | ||
144 | FILES_${QT_BASE_NAME}-fonts-pfb = "${libdir}/fonts/*.pfb" | ||
145 | FILES_${QT_BASE_NAME}-fonts-qpf = "${libdir}/fonts/*.qpf" | ||
146 | FILES_${QT_BASE_NAME}-linguist = "${bindir}/*linguist* ${bindir}/lrelease ${bindir}/lupdate ${bindir}/lconvert ${bindir}/qm2ts" | ||
147 | FILES_${QT_BASE_NAME}-linguist-dbg = "${bindir}/.debug/*linguist* ${bindir}/.debug/lrelease ${bindir}/.debug/lupdate ${bindir}/.debug/lconvert ${bindir}/.debug/qm2ts" | ||
148 | FILES_${QT_BASE_NAME}-pixeltool = "${bindir}/pixeltool" | ||
149 | FILES_${QT_BASE_NAME}-pixeltool-dbg = "${bindir}/.debug/pixeltool" | ||
150 | FILES_${QT_BASE_NAME}-qt3to4 = "${bindir}/qt3to4 ${datadir}/${QT_DIR_NAME}/q3porting.xml" | ||
151 | FILES_${QT_BASE_NAME}-qt3to4-dbg = "${bindir}/.debug/qt3to4" | ||
152 | FILES_${QT_BASE_NAME}-qmlviewer = "${bindir}/qmlviewer" | ||
153 | FILES_${QT_BASE_NAME}-qmlviewer-dbg = "${bindir}/.debug/qmlviewer" | ||
154 | FILES_${QT_BASE_NAME}-makeqpf = "${bindir}/makeqpf" | ||
155 | FILES_${QT_BASE_NAME}-makeqpf-dbg = "${bindir}/.debug/makeqpf" | ||
156 | FILES_${QT_BASE_NAME}-mkspecs = "${datadir}/${QT_DIR_NAME}/mkspecs/*" | ||
157 | FILES_${QT_BASE_NAME}-xmlpatterns = "${bindir}/xmlpatterns*" | ||
158 | FILES_${QT_BASE_NAME}-xmlpatterns-dbg = "${bindir}/.debug/xmlpatterns*" | ||
159 | |||
160 | |||
161 | do_configure() { | ||
162 | unset QMAKESPEC | ||
163 | unset QTDIR | ||
164 | |||
165 | if [ ! -e bin/qmake ]; then | ||
166 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake | ||
167 | fi | ||
168 | |||
169 | if [ ! -e mkspecs/${TARGET_OS}-oe-g++ ]; then | ||
170 | ln -sf linux-g++ mkspecs/${TARGET_OS}-oe-g++ | ||
171 | fi | ||
172 | |||
173 | cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf mkspecs/common/ | ||
174 | |||
175 | echo "[Paths]" > $QT_CONF_PATH | ||
176 | echo "Prefix=${prefix}/" >> $QT_CONF_PATH | ||
177 | echo "Documentation=${docdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH | ||
178 | echo "Headers=${includedir}/${QT_DIR_NAME}" >> $QT_CONF_PATH | ||
179 | echo "Libraries=${libdir}" >> $QT_CONF_PATH | ||
180 | echo "Binaries=${bindir}" >> $QT_CONF_PATH | ||
181 | echo "Plugins=${libdir}/${QT_DIR_NAME}/plugins" >> $QT_CONF_PATH | ||
182 | echo "Data=${datadir}/${QT_DIR_NAME}" >> $QT_CONF_PATH | ||
183 | echo "Translations=${datadir}/${QT_DIR_NAME}/translations" >> $QT_CONF_PATH | ||
184 | echo "Settings=${sysconfdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH | ||
185 | echo "Examples=${bindir}/${QT_DIR_NAME}/examples" >> $QT_CONF_PATH | ||
186 | echo "Demos=${bindir}/${QT_DIR_NAME}/demos" >> $QT_CONF_PATH | ||
187 | |||
188 | ${EXTRA_QMAKE_MUNGE}|| true | ||
189 | |||
190 | (echo o; echo yes) | ./configure -v \ | ||
191 | -prefix ${prefix}/ \ | ||
192 | -bindir ${bindir} \ | ||
193 | -libdir ${libdir} \ | ||
194 | -datadir ${datadir}/${QT_DIR_NAME} \ | ||
195 | -sysconfdir ${sysconfdir}/${QT_DIR_NAME} \ | ||
196 | -docdir ${docdir}/${QT_DIR_NAME} \ | ||
197 | -headerdir ${includedir}/${QT_DIR_NAME} \ | ||
198 | -plugindir ${libdir}/${QT_DIR_NAME}/plugins \ | ||
199 | -translationdir ${datadir}/${QT_DIR_NAME}/translations \ | ||
200 | -examplesdir ${bindir}/${QT_DIR_NAME}/examples \ | ||
201 | -demosdir ${bindir}/${QT_DIR_NAME}/demos \ | ||
202 | -platform ${TARGET_OS}-oe-g++ \ | ||
203 | -xplatform ${TARGET_OS}-oe-g++ \ | ||
204 | ${QT_ENDIAN} \ | ||
205 | -crossarch ${QT_ARCH} \ | ||
206 | ${QT_CONFIG_FLAGS} -no-fast \ | ||
207 | -L${STAGING_LIBDIR} -I${STAGING_INCDIR} \ | ||
208 | -I${STAGING_INCDIR}/freetype2 \ | ||
209 | -I${STAGING_INCDIR}/mysql \ | ||
210 | -I${STAGING_INCDIR}/postgresql | ||
211 | } | ||
212 | |||
213 | python populate_packages_prepend() { | ||
214 | translation_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/translations/', d) | ||
215 | translation_name = bb.data.expand('${QT_BASE_NAME}-translation-%s', d) | ||
216 | do_split_packages(d, translation_dir, '^(assistant|designer|linguist|qt|qtconfig|qvfb)_(.*)\.qm$', translation_name, '${PN} translation for %s', extra_depends='' ) | ||
217 | |||
218 | phrasebook_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/', d) | ||
219 | phrasebook_name = bb.data.expand('${QT_BASE_NAME}-phrasebook-%s', d) | ||
220 | do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' ) | ||
221 | |||
222 | # Package all the plugins and their -dbg version and create a meta package | ||
223 | import os | ||
224 | def qtopia_split(path, name, glob): | ||
225 | """ | ||
226 | Split the package into a normal and -dbg package and then add the | ||
227 | new packages to the meta package. | ||
228 | """ | ||
229 | plugin_dir = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/' % path, d) | ||
230 | if not os.path.exists("%s%s" % (bb.data.expand('${D}',d), plugin_dir)): | ||
231 | bb.note("The path does not exist:", bb.data.expand('${D}', d), plugin_dir) | ||
232 | return | ||
233 | |||
234 | plugin_name = bb.data.expand('${QT_BASE_NAME}-plugin-%s-%%s' % name, d) | ||
235 | dev_packages = [] | ||
236 | dev_hook = lambda file,pkg,b,c,d:dev_packages.append((file,pkg)) | ||
237 | do_split_packages(d, plugin_dir, glob, plugin_name, '${PN} %s for %%s' % name, extra_depends='', hook=dev_hook) | ||
238 | # Create a -dbg package as well | ||
239 | plugin_dir_dbg = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/.debug' % path, d) | ||
240 | packages = bb.data.getVar('PACKAGES',d) | ||
241 | for (file,package) in dev_packages: | ||
242 | packages = "%s %s-dbg" % (packages, package) | ||
243 | file_name = os.path.join(plugin_dir_dbg, os.path.basename(file)) | ||
244 | bb.data.setVar("FILES_%s-dbg" % package, file_name, d) | ||
245 | bb.data.setVar("DESCRIPTION_%s-dbg" % package, "${PN} %s for %s" % (name, package), d) | ||
246 | |||
247 | bb.data.setVar('PACKAGES', packages, d) | ||
248 | |||
249 | qtopia_split('accessible', 'accessible', '^libq(.*)\.so$') | ||
250 | qtopia_split('codecs', 'codec', '^libq(.*)\.so$') | ||
251 | qtopia_split('decorations', 'decoration', '^libqdecoration(.*)\.so$') | ||
252 | qtopia_split('designer', 'designer', '^lib(.*)\.so$') | ||
253 | qtopia_split('gfxdrivers', 'gfxdriver', '^libq(.*)\.so$') | ||
254 | qtopia_split('graphicssystems','graphicssystems', '^libq(.*)\.so$') | ||
255 | qtopia_split('mousedrivers', 'mousedriver', '^libq(.*)mousedriver\.so$') | ||
256 | qtopia_split('iconengines', 'iconengine', '^libq(.*)\.so$') | ||
257 | qtopia_split('imageformats', 'imageformat', '^libq(.*)\.so$') | ||
258 | qtopia_split('inputmethods', 'inputmethod', '^libq(.*)\.so$') | ||
259 | qtopia_split('sqldrivers', 'sqldriver', '^libq(.*)\.so$') | ||
260 | qtopia_split('script', 'script', '^libqtscript(.*)\.so$') | ||
261 | qtopia_split('styles', 'style', '^libq(.*)\.so$') | ||
262 | qtopia_split('phonon_backend','phonon-backend','^libphonon_(.*)\.so$') | ||
263 | qtopia_split('bearer', 'bearer', '^libq(.*)bearer\.so$') | ||
264 | } | ||
265 | |||
266 | do_install() { | ||
267 | oe_runmake install INSTALL_ROOT=${D} | ||
268 | |||
269 | # These are host binaries, we should only use them in staging | ||
270 | rm -rf ${D}/${bindir}/qmake | ||
271 | |||
272 | # fix pkgconfig, libtool and prl files | ||
273 | sed -i -e s#-L${S}/lib##g \ | ||
274 | -e s#-L${STAGING_LIBDIR}##g \ | ||
275 | -e 's#STAGING_LIBDIR}#libdir}'#g \ | ||
276 | -e s#-L${libdir}##g \ | ||
277 | -e s#'$(OE_QMAKE_LIBS_X11)'#"${OE_QMAKE_LIBS_X11}"#g \ | ||
278 | -e s#" -Wl,-rpath-link,${S}/lib"##g \ | ||
279 | -e s#" -Wl,-rpath-link,${libdir}"##g \ | ||
280 | -e 's#I/usr/include#Iincludedir}#g' \ | ||
281 | -e 's#Iin#I${in#g' \ | ||
282 | ${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc | ||
283 | |||
284 | sed -i -e s#" -Wl,-rpath-link,${S}/lib"##g \ | ||
285 | ${D}${datadir}/${QT_DIR_NAME}/mkspecs/common/linux.conf | ||
286 | |||
287 | # fix pkgconfig files | ||
288 | sed -i -e s#"moc_location=.*$"#"moc_location=${bindir}/moc4"# \ | ||
289 | -e s#"uic_location=.*$"#"uic_location=${bindir}/uic4"# \ | ||
290 | ${D}${libdir}/pkgconfig/*.pc | ||
291 | for name in ${QT_LIB_NAMES}; do | ||
292 | sed -i -e /Requires/s#"${name}"#"${name}${QT_LIBINFIX}"#g ${D}${libdir}/pkgconfig/*.pc | ||
293 | done | ||
294 | |||
295 | # QT abuses $includedir to point to its headers, which breaks pkgconfig sysroot, so manually fix it up here: | ||
296 | for pc in ${D}${libdir}/pkgconfig/*.pc ; do | ||
297 | sed -i -e "s:prefix}include/${QT_BASE_NAME}/$(basename $pc .pc):prefix}/include:" \ | ||
298 | -e "s,Cflags: ,Cflags: -IP{includedir}/${QT_BASE_NAME}/$(basename $pc .pc) ," \ | ||
299 | -e 's:IP{:I${:g' $pc | ||
300 | done | ||
301 | |||
302 | install -d ${D}/${libdir}/fonts | ||
303 | touch ${D}/${libdir}/fonts/fontdir | ||
304 | |||
305 | install -d ${D}${bindir} | ||
306 | for i in rcc uic moc ; do | ||
307 | install -m 0755 ${S}/bin/$i ${D}${bindir}/ | ||
308 | done | ||
309 | |||
310 | #Append an E to the qtdemo file | ||
311 | if [ -n "${QT_LIBINFIX}" ] ; then | ||
312 | mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX} | ||
313 | fi | ||
314 | } | ||
diff --git a/meta-oe/recipes-qt/qt4/qt4_arch.inc b/meta-oe/recipes-qt/qt4/qt4_arch.inc deleted file mode 100644 index 7f4be63bc..000000000 --- a/meta-oe/recipes-qt/qt4/qt4_arch.inc +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | inherit siteinfo | ||
2 | |||
3 | ARM_INSTRUCTION_SET = "arm" | ||
4 | |||
5 | def qt_arch(d): | ||
6 | import bb, re | ||
7 | arch = bb.data.getVar('TARGET_ARCH', d, 1) | ||
8 | if re.match("^i.86$", arch): | ||
9 | arch = "i386" | ||
10 | elif re.match("^arm.*", arch): | ||
11 | arch = "arm" | ||
12 | elif arch == "x86_64": | ||
13 | arch = "x86" | ||
14 | elif arch == "mipsel": | ||
15 | arch = "mips" | ||
16 | return arch | ||
17 | |||
18 | def qt_endian(d): | ||
19 | import bb | ||
20 | if bb.data.getVar('SITEINFO_ENDIANESS', d, True) == "le": | ||
21 | return "-little-endian" | ||
22 | elif bb.data.getVar('SITEINFO_ENDIANESS', d, True) == "be": | ||
23 | return "-big-endian" | ||
24 | else: | ||
25 | assert False | ||