Revert "qt4: Updated to v4.7.3"
[openembedded.git] / recipes / qt4 / qt4-tools-native.inc
1 DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
2 DEPENDS = "zlib-native dbus-native libsm-native"
3 SECTION = "libs"
4 HOMEPAGE = "http://www.trolltech.com"
5 PRIORITY = "optional"
6 LICENSE = "GPL"
7
8 INC_PR = "r6"
9
10 inherit native
11
12 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
13            file://qt-config.patch;patch=1 \
14            file://g++.conf \
15            file://linux.conf"
16 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
17
18 EXTRA_OECONF = "-prefix ${prefix} \
19                 -L ${STAGING_LIBDIR_NATIVE} \
20                 -I ${STAGING_INCDIR_NATIVE} \
21                 -qt-libjpeg -qt-gif -system-zlib \
22                 -no-libjpeg -no-libpng \
23                 -no-accessibility \
24                 -no-cups \
25                 -no-exceptions  \
26                 -no-nas-sound \
27                 -no-nis \
28                 -verbose -release -static \
29                 -qt3support"
30
31 # yank default -e, otherwise we get the following error:
32 # moc_qbuffer.cpp: No such file or directory
33 EXTRA_OEMAKE = " "
34
35 do_configure() {
36    (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
37 }
38
39 TOBUILD = "\
40   src/tools/moc \
41   src/corelib \
42   src/sql \
43   src/dbus \
44   src/qt3support \
45   src/xml \
46   src/tools/uic \
47   src/tools/rcc \
48   src/network \
49   src/gui \
50   src/tools/uic3 \
51   tools/linguist/lrelease \
52   tools/linguist/lupdate \
53   tools/qdbus \
54 "
55
56 do_compile() {
57     for i in ${TOBUILD}; do
58         cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
59     done
60 }
61
62 do_stage() {
63     install -d ${STAGING_BINDIR_NATIVE}/
64     install -m 0755 bin/qmake ${STAGING_BINDIR_NATIVE}/qmake2
65     for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
66         install -m 0755 bin/${i} ${STAGING_BINDIR_NATIVE}/${i}4
67     done
68     
69     install -d ${STAGING_DATADIR_NATIVE}/qt4/
70     cp -PfR mkspecs ${STAGING_DATADIR_NATIVE}/qt4/
71     ln -sf linux-g++ ${STAGING_DATADIR_NATIVE}/qt4/mkspecs/${BUILD_OS}-oe-g++
72     cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${STAGING_DATADIR_NATIVE}/qt4/mkspecs/common/
73
74     install -m 0644 tools/porting/src/q3porting.xml ${STAGING_DATADIR_NATIVE}/qt4/
75 }