diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-01-21 16:22:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 16:10:36 +0000 |
commit | 51b50818922a1be99f50cc1e3386ca914c025427 (patch) | |
tree | 4f96f7e2de83bea7f099c5ac4fa3e1896cd3823b /meta/recipes-qt/qt4/qt-4.7.1.inc | |
parent | 7263adda21f58e0f76b0228b0f5657aa84879927 (diff) | |
download | poky-51b50818922a1be99f50cc1e3386ca914c025427.tar.gz |
qt4: add 4.7.1 version from meta-openembedded
Differences from meta-openembedded version:
* Change the order of includes so that embedded/x11 overrides take precedence
* Move contents of do_install_append from qt-${PV}.inc to do_install in
qt4.inc as this is the same for 4.6.3 and 4.7.1 and gets in the way of
do_install_append in qt-embedded.inc.
* Don't add qte.sh to SRC_URI in qt-4.7.1.inc (this is embedded-specific)
* Don't specify DEFAULT_PREFERENCE
* Use http source URL to match other Qt4 recipes
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/recipes-qt/qt4/qt-4.7.1.inc')
-rw-r--r-- | meta/recipes-qt/qt4/qt-4.7.1.inc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt-4.7.1.inc b/meta/recipes-qt/qt4/qt-4.7.1.inc new file mode 100644 index 0000000000..70ee59697c --- /dev/null +++ b/meta/recipes-qt/qt4/qt-4.7.1.inc | |||
@@ -0,0 +1,58 @@ | |||
1 | LICENSE = "LGPLv2.1 | GPLv3" | ||
2 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
3 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
4 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
5 | |||
6 | FILESPATH =. "${FILE_DIRNAME}/qt-${PV}:" | ||
7 | |||
8 | SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
9 | file://0004-no-qmake.patch \ | ||
10 | file://hack-out-pg2-4.7.0.patch \ | ||
11 | file://0006-freetype-host-includes.patch \ | ||
12 | file://0001-Added-Openembedded-crossarch-option.patch \ | ||
13 | file://g++.conf \ | ||
14 | file://linux.conf \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "6f88d96507c84e9fea5bf3a71ebeb6d7" | ||
18 | SRC_URI[sha256sum] = "8cb5277c41f824cfc6dcee0e95e0bf23a9ad2c8d18d245105137481d092b124a" | ||
19 | |||
20 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
21 | |||
22 | FILES_${QT_BASE_NAME}-tools += "${bindir}/qml" | ||
23 | |||
24 | do_configure_prepend() { | ||
25 | for pro in $(find ${S} -name "*.pro") ; do | ||
26 | sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro | ||
27 | done | ||
28 | |||
29 | sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf | ||
30 | sed -i \ | ||
31 | -e /QMAKE_MOC\ /d \ | ||
32 | -e /QMAKE_UIC\ /d \ | ||
33 | -e /QMAKE_UIC3\ /d \ | ||
34 | -e /QMAKE_RCC\ /d \ | ||
35 | ${S}/configure | ||
36 | } | ||
37 | |||
38 | do_configure_append() { | ||
39 | sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile | ||
40 | } | ||
41 | |||
42 | QT_GLFLAGS ?= "" | ||
43 | QT_CONFIG_FLAGS += " -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}" | ||
44 | |||
45 | do_compile() { | ||
46 | # Fixup missing wsegl header in some SGX SDKs | ||
47 | if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then | ||
48 | cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/ | ||
49 | fi | ||
50 | |||
51 | unset CFLAGS CXXFLAGS | ||
52 | install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc | ||
53 | install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc | ||
54 | install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic | ||
55 | install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease | ||
56 | |||
57 | oe_runmake ${EXTRA_ENV} | ||
58 | } | ||