summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt4/qt-4.7.1.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt4/qt-4.7.1.inc')
-rw-r--r--recipes-qt/qt4/qt-4.7.1.inc76
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes-qt/qt4/qt-4.7.1.inc b/recipes-qt/qt4/qt-4.7.1.inc
new file mode 100644
index 0000000000..682707ad78
--- /dev/null
+++ b/recipes-qt/qt4/qt-4.7.1.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
8FILESPATH =. "${FILE_DIRNAME}/qt-${PV}:"
9
10SRC_URI = "\
11 ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
12 file://0004-no-qmake.patch \
13 file://hack-out-pg2-4.7.0.patch \
14 file://0006-freetype-host-includes.patch \
15 file://0001-Added-Openembedded-crossarch-option.patch \
16 file://g++.conf \
17 file://linux.conf \
18 "
19# Set necessary variables in the profile
20SRC_URI += "file://qte.sh"
21
22S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
23
24FILES_${QT_BASE_NAME}-tools += "${bindir}/qml"
25
26do_configure_prepend() {
27 for pro in $(find ${S} -name "*.pro") ; do
28 sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro
29 done
30
31 sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
32 sed -i \
33 -e /QMAKE_MOC\ /d \
34 -e /QMAKE_UIC\ /d \
35 -e /QMAKE_UIC3\ /d \
36 -e /QMAKE_RCC\ /d \
37 ${S}/configure
38}
39
40do_configure_append() {
41 sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile
42}
43
44QT_GLFLAGS ?= ""
45QT_CONFIG_FLAGS += " -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
46
47do_compile() {
48 # Fixup missing wsegl header in some SGX SDKs
49 if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then
50 cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/
51 fi
52
53 unset CFLAGS CXXFLAGS
54 install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
55 install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
56 install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
57 install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
58
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] = "6f88d96507c84e9fea5bf3a71ebeb6d7"
75SRC_URI[sha256sum] = "8cb5277c41f824cfc6dcee0e95e0bf23a9ad2c8d18d245105137481d092b124a"
76