1 DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
2 DEPENDS = "zlib-native dbus-native"
4 HOMEPAGE = "http://www.trolltech.com"
12 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
13 file://qt-config.patch \
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 \
28 -verbose -release -static \
29 -embedded -no-freetype -no-glib -no-iconv \
32 # yank default -e, otherwise we get the following error:
33 # moc_qbuffer.cpp: No such file or directory
37 (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
52 tools/linguist/lrelease \
53 tools/linguist/lupdate \
58 for i in ${TOBUILD}; do
59 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
63 NATIVE_INSTALL_WORKS = "1"
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
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/