ti-syslink 2.00.00.78: import from meta-ti
[openembedded.git] / recipes / qt4 / qt4-native.inc
blob215602379387eb8809d9a52a23f4f79121a189bd
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"
9 INC_PR = "r1"
11 inherit native
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}"
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"
33 # yank default -e, otherwise we get the following error:
34 # moc_qbuffer.cpp: No such file or directory
35 EXTRA_OEMAKE = " "
37 do_configure() {
38    (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
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 \
60 do_compile() {
61     for i in ${TOBUILD}; do
62         cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
63     done
66 NATIVE_INSTALL_WORKS = "1"
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
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/
81     for i in ${TOBUILD}; do
82         cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D}
83     done