qt4: Updated to v4.7.3
[openembedded.git] / recipes / qt4 / qt-4.7.3.inc
1 DEFAULT_PREFERENCE = "-1"
2 LICENSE = "LGPLv2.1 GPLv3"
3
4 FILESPATHPKG =. "qt-${PV}:"
5
6 SRC_URI = "\
7         ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
8         file://0004-no-qmake.patch \
9         file://hack-out-pg2-4.7.0.patch \
10         file://0006-freetype-host-includes.patch \
11         file://0001-Added-Openembedded-crossarch-option.patch \
12         file://0010-phonon-gstreamer-rgb-endianess.patch \
13         file://fix-translations.patch \
14         file://0001-wsegl2-support.patch \
15         file://g++.conf \
16         file://linux.conf \
17         "
18
19 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
20
21 FILES_${QT_BASE_NAME}-tools                += "${bindir}/qml"
22
23 do_configure_prepend() {
24     for pro in $(find ${S} -name "*.pro") ; do
25         sed -i 's:$$LRELEASE:${STAGING_BINDIR_NATIVE}/lrelease4:g' $pro
26     done
27
28     sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
29     sed -i \
30     -e /QMAKE_MOC\ /d \
31     -e /QMAKE_UIC\ /d \
32     -e /QMAKE_UIC3\ /d \
33     -e /QMAKE_RCC\ /d \
34     ${S}/configure
35 }
36
37 QT_GLFLAGS ?= ""
38 QT_CONFIG_FLAGS += " -javascript-jit -script -scripttools -declarative -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
39
40 do_compile() {
41     unset CFLAGS CXXFLAGS
42
43     oe_runmake ${EXTRA_ENV}
44 }
45
46 do_install_append() {
47         install -d ${D}${bindir}
48         for i in rcc uic moc ; do
49                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
50         done
51
52         #Append an E to the qtdemo file
53         if [ -n "${QT_LIBINFIX}" ] ; then
54                 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
55         fi
56 }
57
58 SRC_URI[md5sum] = "49b96eefb1224cc529af6fe5608654fe"
59 SRC_URI[sha256sum] = "d02b6fd69d089c01f4a787aa18175d074ccaecf8980a5956e328c2991905937e"