summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-qt/qt4/qt4-tools-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-qt/qt4/qt4-tools-native.inc')
-rw-r--r--meta-oe/recipes-qt/qt4/qt4-tools-native.inc77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-oe/recipes-qt/qt4/qt4-tools-native.inc b/meta-oe/recipes-qt/qt4/qt4-tools-native.inc
new file mode 100644
index 000000000..9114e7df6
--- /dev/null
+++ b/meta-oe/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
7LICENSE = "LGPLv2.1 | GPLv3"
8LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
9 file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \
10 file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
11
12INC_PR = "r11"
13
14inherit native
15
16SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
17 file://qt-config.patch \
18 file://g++.conf \
19 file://linux.conf"
20S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
21
22EXTRA_OECONF = "-prefix ${prefix} \
23 -L ${STAGING_LIBDIR_NATIVE} \
24 -I ${STAGING_INCDIR_NATIVE} \
25 -qt-libjpeg -qt-gif -system-zlib \
26 -no-libjpeg -no-libpng -no-libmng -no-libtiff \
27 -no-accessibility \
28 -no-cups \
29 -no-exceptions \
30 -no-nas-sound \
31 -no-nis -no-openssl \
32 -verbose -release -static \
33 -embedded -no-freetype -no-glib -no-iconv \
34 -qt3support"
35
36# yank default -e, otherwise we get the following error:
37# moc_qbuffer.cpp: No such file or directory
38EXTRA_OEMAKE = " "
39
40do_configure() {
41 (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
42}
43
44TOBUILD = "\
45 src/tools/moc \
46 src/corelib \
47 src/sql \
48 src/dbus \
49 src/qt3support \
50 src/xml \
51 src/tools/uic \
52 src/tools/rcc \
53 src/network \
54 tools/linguist/lrelease \
55 tools/linguist/lupdate \
56"
57
58do_compile() {
59 for i in ${TOBUILD}; do
60 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
61 done
62}
63
64do_install() {
65 install -d ${D}${bindir}/
66 install -m 0755 bin/qmake ${D}${bindir}/qmake2
67 for i in moc uic rcc lrelease lupdate; 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}