Revert "qt4: Updated to v4.7.3"
[openembedded.git] / recipes / qt4 / qt-4.6.2.inc
1 DEFAULT_PREFERENCE = "-1"
2
3 FILESPATHPKG .= ":qt-${PV}"
4
5 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
6            file://0001-cross-compile.patch;patch=1 \
7            file://0002-fix-resinit-declaration.patch;patch=1 \
8            file://0004-no-qmake.patch;patch=1 \
9            file://0006-freetype-host-includes.patch;patch=1 \
10            file://0008-qt-lib-infix.patch;patch=1 \
11            file://0009-support-2bpp.patch;patch=1 \
12            file://0010-no-simpledecoration-example.patch;patch=1 \
13            file://fix-config-tests.patch;patch=1 \
14            file://g++.conf \
15            file://linux.conf \
16            "
17
18 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
19
20 do_configure_prepend() {
21     for pro in $(find ${S} -name "*.pro") ; do
22         sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro
23     done
24
25     sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
26     sed -i \
27     -e /QMAKE_MOC\ /d \
28     -e /QMAKE_UIC\ /d \
29     -e /QMAKE_UIC3\ /d \
30     -e /QMAKE_RCC\ /d \
31     ${S}/configure
32 }
33
34 do_configure_append() {
35     sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile
36 }
37
38 QT_GLFLAGS ?= ""
39 QT_CONFIG_FLAGS += " -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
40
41 do_compile() {
42     unset CFLAGS CXXFLAGS
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
53 LICENSE = "LGPLv2.1 GPLv3"
54 SRC_URI += " \
55             file://hack-out-pg_config.patch;patch=1"