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