summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt4/qt4-tools-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt4/qt4-tools-native.inc')
-rw-r--r--recipes-qt/qt4/qt4-tools-native.inc77
1 files changed, 77 insertions, 0 deletions
diff --git a/recipes-qt/qt4/qt4-tools-native.inc b/recipes-qt/qt4/qt4-tools-native.inc
new file mode 100644
index 0000000000..bb81f74d81
--- /dev/null
+++ b/recipes-qt/qt4/qt4-tools-native.inc
@@ -0,0 +1,77 @@
1DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
2DEPENDS = "zlib-native dbus-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt.nokia.com
5PRIORITY = "optional"
6
7INC_PR = "r10"
8
9inherit native
10
11SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
12 file://qt-config.patch \
13 file://g++.conf \
14 file://linux.conf"
15S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
16
17EXTRA_OECONF = "-prefix ${prefix} \
18 -L ${STAGING_LIBDIR_NATIVE} \
19 -I ${STAGING_INCDIR_NATIVE} \
20 -qt-libjpeg -qt-gif -system-zlib \
21 -no-libjpeg -no-libpng -no-libmng -no-libtiff \
22 -no-accessibility \
23 -no-cups \
24 -no-exceptions \
25 -no-nas-sound \
26 -no-nis -no-openssl \
27 -verbose -release -static \
28 -embedded -no-freetype -no-glib -no-iconv \
29 -qt3support"
30
31# yank default -e, otherwise we get the following error:
32# moc_qbuffer.cpp: No such file or directory
33EXTRA_OEMAKE = " "
34
35do_configure() {
36 (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
37}
38
39TOBUILD = "\
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
56do_compile() {
57 for i in ${TOBUILD}; do
58 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
59 done
60}
61
62NATIVE_INSTALL_WORKS = "1"
63
64do_install() {
65 install -d ${D}${bindir}/
66 install -m 0755 bin/qmake ${D}${bindir}/qmake2
67 for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
68 install -m 0755 bin/${i} ${D}${bindir}/${i}4
69 done
70
71 install -d ${D}${datadir}/qt4/
72 cp -PfR mkspecs ${D}${datadir}/qt4/
73 ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
74 cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
75
76 install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
77}