summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt4-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-qt/qt4/qt4-native.inc')
-rw-r--r--meta/recipes-qt/qt4/qt4-native.inc84
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt4-native.inc b/meta/recipes-qt/qt4/qt4-native.inc
new file mode 100644
index 0000000000..3baea20a1c
--- /dev/null
+++ b/meta/recipes-qt/qt4/qt4-native.inc
@@ -0,0 +1,84 @@
1DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]"
2DEPENDS = "zlib-native dbus-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt.nokia.com"
5PROVIDES = "qt4-tools-native"
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-nas-sound \
30 -no-nis -no-openssl \
31 -verbose -release \
32 -embedded -no-freetype -no-glib -no-iconv \
33 -exceptions -xmlpatterns \
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/xml \
49 src/network \
50 src/tools/uic \
51 src/tools/rcc \
52 src/xmlpatterns \
53 src/dbus \
54 src/gui \
55 src/testlib \
56 src/qt3support \
57 tools/linguist/lrelease \
58 tools/linguist/lupdate \
59"
60
61do_compile() {
62 for i in ${TOBUILD}; do
63 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
64 done
65}
66
67do_install() {
68 install -d ${D}${bindir}/
69 install -m 0755 bin/qmake ${D}${bindir}/qmake2
70 for i in moc uic rcc lrelease lupdate; do
71 install -m 0755 bin/${i} ${D}${bindir}/${i}4
72 done
73
74 install -d ${D}${datadir}/qt4/
75 cp -PfR mkspecs ${D}${datadir}/qt4/
76 ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
77 cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
78
79 install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
80
81 for i in ${TOBUILD}; do
82 cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D}
83 done
84}