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