summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt4/qt-4.6.3.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt4/qt-4.6.3.inc')
-rw-r--r--recipes-qt/qt4/qt-4.6.3.inc76
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes-qt/qt4/qt-4.6.3.inc b/recipes-qt/qt4/qt-4.6.3.inc
new file mode 100644
index 0000000000..dc928c105c
--- /dev/null
+++ b/recipes-qt/qt4/qt-4.6.3.inc
@@ -0,0 +1,76 @@
1DEFAULT_PREFERENCE = "-1"
2
3LICENSE = "LGPLv2.1 | GPLv3"
4LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
5 file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \
6 file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
7
8FILESPATHPKG .= ":qt-${PV}"
9
10SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
11 file://0001-cross-compile.patch \
12 file://0002-fix-resinit-declaration.patch \
13 file://0004-no-qmake.patch \
14 file://0006-freetype-host-includes.patch \
15 file://0008-qt-lib-infix.patch \
16 file://0009-support-2bpp.patch \
17 file://0010-no-simpledecoration-example.patch \
18 file://fix-config-tests.patch \
19 file://qt-config.patch \
20 file://g++.conf \
21 file://linux.conf \
22 file://hack-out-pg_config.patch \
23 file://mips-relocate.patch \
24 "
25
26# Set necessary variables in the profile
27SRC_URI += "file://qte.sh"
28
29S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
30
31do_configure_prepend() {
32 for pro in $(find ${S} -name "*.pro") ; do
33 sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro
34 done
35
36 sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
37 sed -i \
38 -e /QMAKE_MOC\ /d \
39 -e /QMAKE_UIC\ /d \
40 -e /QMAKE_UIC3\ /d \
41 -e /QMAKE_RCC\ /d \
42 ${S}/configure
43}
44
45do_configure_append() {
46 sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile
47}
48
49QT_GLFLAGS ?= ""
50QT_CONFIG_FLAGS += " -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
51
52do_compile() {
53 # Fixup missing wsegl header in some SGX SDKs
54 if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then
55 cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/
56 fi
57
58 unset CFLAGS CXXFLAGS
59 oe_runmake ${EXTRA_ENV}
60}
61
62do_install_append() {
63 install -d ${D}${bindir}
64 for i in rcc uic moc ; do
65 install -m 0755 ${S}/bin/$i ${D}${bindir}/
66 done
67
68 #Append an E to the qtdemo file
69 if [ -n "${QT_LIBINFIX}" ] ; then
70 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
71 fi
72}
73
74SRC_URI[md5sum] = "5c69f16d452b0bb3d44bc3c10556c072"
75SRC_URI[sha256sum] = "f4e0ada8d4d516bbb8600a3ee7d9046c9c79e38cd781df9ffc46d8f16acd1768"
76