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.inc116
1 files changed, 0 insertions, 116 deletions
diff --git a/meta/recipes-qt/qt4/qt4-native.inc b/meta/recipes-qt/qt4/qt4-native.inc
deleted file mode 100644
index 58acac87ed..0000000000
--- a/meta/recipes-qt/qt4/qt4-native.inc
+++ /dev/null
@@ -1,116 +0,0 @@
1SUMMARY = "Qt version 4 tools and support files for the build host"
2DEPENDS = "zlib-native dbus-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt-project.org/"
5PROVIDES = "qt4-tools-native"
6
7LICENSE = "LGPLv2.1 | GPLv3"
8LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
9 file://LICENSE.GPL3;md5=6e1694ee338db410417517884918d4d2 \
10 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6"
11
12inherit native
13
14SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-everywhere-opensource-src-${PV}.tar.gz \
15 file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
16 file://0002-qkbdtty_qws-fix-build-with-old-kernel-headers.patch \
17 file://0003-webkit2-set-OUTPUT_DIR-value-if-empty.patch \
18 file://0021-configure-make-qt4-native-work-with-long-building-pa.patch \
19 file://g++.conf \
20 file://linux.conf \
21 "
22
23UPSTREAM_CHECK_URI = "http://download.qt.io/official_releases/qt/4.8/"
24UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
25
26S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
27
28EXTRA_OECONF = "-prefix ${prefix} \
29 -bindir ${bindir} \
30 -libdir ${libdir} \
31 -datadir ${datadir}/qt4 \
32 -sysconfdir ${sysconfdir}/qt4 \
33 -docdir ${docdir}/qt4 \
34 -headerdir ${includedir}/qt4 \
35 -plugindir ${libdir}/qt4/plugins \
36 -importdir ${libdir}/qt4/imports \
37 -translationdir ${datadir}/qt4/translations \
38 -examplesdir ${bindir}/qt4/examples \
39 -demosdir ${bindir}/qt4/demos \
40 -L ${STAGING_LIBDIR_NATIVE} \
41 -I ${STAGING_INCDIR_NATIVE} \
42 -qt-libjpeg -system-zlib \
43 -no-libjpeg -no-libpng -no-libmng -no-libtiff \
44 -no-accessibility \
45 -no-cups \
46 -no-nas-sound \
47 -no-nis -no-openssl \
48 -verbose -release \
49 -embedded -no-freetype -no-glib -no-iconv \
50 -exceptions -xmlpatterns \
51 -qt3support \
52 -no-fast -silent -no-rpath"
53
54# yank default -e, otherwise we get the following error:
55# moc_qbuffer.cpp: No such file or directory
56EXTRA_OEMAKE = " "
57
58do_configure() {
59 # Avoid problems with Qt 4.8.0 configure setting QMAKE_LINK from LD (since we want the linker to be g++)
60 unset LD
61
62 (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
63}
64
65TOBUILD = "\
66 src/tools/moc \
67 src/corelib \
68 src/sql \
69 src/xml \
70 src/network \
71 src/tools/uic \
72 src/tools/rcc \
73 src/xmlpatterns \
74 src/dbus \
75 src/gui \
76 src/testlib \
77 src/qt3support \
78 src/tools/uic3 \
79 tools/linguist/lconvert \
80 tools/linguist/lrelease \
81 tools/linguist/lupdate \
82 tools/qdbus/qdbuscpp2xml \
83 tools/qdbus/qdbusxml2cpp \
84 tools/xmlpatterns \
85"
86
87do_compile() {
88 for i in ${TOBUILD}; do
89 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
90 done
91}
92
93do_install() {
94 install -d ${D}${bindir}/
95 install -m 0755 bin/qmake ${D}${bindir}/qmake2
96 for i in moc uic uic3 rcc lconvert lrelease lupdate qdbuscpp2xml qdbusxml2cpp xmlpatterns; do
97 install -m 0755 bin/${i} ${D}${bindir}/${i}4
98 done
99
100 install -d ${D}${datadir}/qt4/
101 cp -PfR mkspecs ${D}${datadir}/qt4/
102 ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
103 if [ -f ${D}${datadir}/qt4/mkspecs/common/g++-unix.conf ] ; then
104 # mkspecs were refactored for 4.8.0
105 cp -f ${WORKDIR}/g++.conf ${D}${datadir}/qt4/mkspecs/common/g++-unix.conf
106 else
107 cp -f ${WORKDIR}/g++.conf ${D}${datadir}/qt4/mkspecs/common/g++.conf
108 fi
109 cp -f ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
110
111 install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
112
113 for i in ${TOBUILD}; do
114 cd ${S}/$i && oe_runmake install INSTALL_ROOT=${D}
115 done
116}