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