libtool-sdk: Convert from legacy staging
[openembedded.git] / recipes / qt4 / qt4-tools-native.inc
blob4a0cccea60ec6951c6707d0b64d3fcaf4c7a4b2f
1 DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
2 DEPENDS = "zlib-native dbus-native"
3 SECTION = "libs"
4 HOMEPAGE = "http://www.trolltech.com"
5 PRIORITY = "optional"
6 LICENSE = "GPL"
8 INC_PR = "r10"
10 inherit native
12 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
13            file://qt-config.patch \
14            file://g++.conf \
15            file://linux.conf"
16 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
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 -no-libmng -no-libtiff \
23                 -no-accessibility \
24                 -no-cups \
25                 -no-exceptions  \
26                 -no-nas-sound \
27                 -no-nis -no-openssl \
28                 -verbose -release -static \
29                 -embedded -no-freetype -no-glib -no-iconv \
30                 -qt3support"
32 # yank default -e, otherwise we get the following error:
33 # moc_qbuffer.cpp: No such file or directory
34 EXTRA_OEMAKE = " "
36 do_configure() {
37    (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
40 TOBUILD = "\
41   src/tools/moc \
42   src/corelib \
43   src/sql \
44   src/dbus \
45   src/qt3support \
46   src/xml \
47   src/tools/uic \
48   src/tools/rcc \
49   src/network \
50   src/gui \
51   src/tools/uic3 \
52   tools/linguist/lrelease \
53   tools/linguist/lupdate \
54   tools/qdbus \
57 do_compile() {
58     for i in ${TOBUILD}; do
59         cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
60     done
63 NATIVE_INSTALL_WORKS = "1"
65 do_install() {
66     install -d ${D}${bindir}/
67     install -m 0755 bin/qmake ${D}${bindir}/qmake2
68     for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
69         install -m 0755 bin/${i} ${D}${bindir}/${i}4
70     done
71     
72     install -d ${D}${datadir}/qt4/
73     cp -PfR mkspecs ${D}${datadir}/qt4/
74     ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
75     cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
77     install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/