diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-03 11:03:36 +0100 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-03 12:04:28 +0100 |
| commit | 1ec312f314343f287956dcab5482571039a94ff1 (patch) | |
| tree | 604453191dd176e0b53f42eb538be017496235b7 /recipes-qt/qt4/qt-4.6.3.inc | |
| parent | 63057a32d7b877c39b85eb3e9168c6fd7e4ce579 (diff) | |
| download | meta-openembedded-1ec312f314343f287956dcab5482571039a94ff1.tar.gz | |
qt4: import files from OE
This gives us both qt4-x11 and qt4-embedded; qt4-x11 was already present in yocto, but was lacking features
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-qt/qt4/qt-4.6.3.inc')
| -rw-r--r-- | recipes-qt/qt4/qt-4.6.3.inc | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes-qt/qt4/qt-4.6.3.inc b/recipes-qt/qt4/qt-4.6.3.inc new file mode 100644 index 0000000000..dc928c105c --- /dev/null +++ b/recipes-qt/qt4/qt-4.6.3.inc | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | DEFAULT_PREFERENCE = "-1" | ||
| 2 | |||
| 3 | LICENSE = "LGPLv2.1 | GPLv3" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
| 5 | file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \ | ||
| 6 | file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354" | ||
| 7 | |||
| 8 | FILESPATHPKG .= ":qt-${PV}" | ||
| 9 | |||
| 10 | SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
| 11 | file://0001-cross-compile.patch \ | ||
| 12 | file://0002-fix-resinit-declaration.patch \ | ||
| 13 | file://0004-no-qmake.patch \ | ||
| 14 | file://0006-freetype-host-includes.patch \ | ||
| 15 | file://0008-qt-lib-infix.patch \ | ||
| 16 | file://0009-support-2bpp.patch \ | ||
| 17 | file://0010-no-simpledecoration-example.patch \ | ||
| 18 | file://fix-config-tests.patch \ | ||
| 19 | file://qt-config.patch \ | ||
| 20 | file://g++.conf \ | ||
| 21 | file://linux.conf \ | ||
| 22 | file://hack-out-pg_config.patch \ | ||
| 23 | file://mips-relocate.patch \ | ||
| 24 | " | ||
| 25 | |||
| 26 | # Set necessary variables in the profile | ||
| 27 | SRC_URI += "file://qte.sh" | ||
| 28 | |||
| 29 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
| 30 | |||
| 31 | do_configure_prepend() { | ||
| 32 | for pro in $(find ${S} -name "*.pro") ; do | ||
| 33 | sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro | ||
| 34 | done | ||
| 35 | |||
| 36 | sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf | ||
| 37 | sed -i \ | ||
| 38 | -e /QMAKE_MOC\ /d \ | ||
| 39 | -e /QMAKE_UIC\ /d \ | ||
| 40 | -e /QMAKE_UIC3\ /d \ | ||
| 41 | -e /QMAKE_RCC\ /d \ | ||
| 42 | ${S}/configure | ||
| 43 | } | ||
| 44 | |||
| 45 | do_configure_append() { | ||
| 46 | sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile | ||
| 47 | } | ||
| 48 | |||
| 49 | QT_GLFLAGS ?= "" | ||
| 50 | QT_CONFIG_FLAGS += " -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}" | ||
| 51 | |||
| 52 | do_compile() { | ||
| 53 | # Fixup missing wsegl header in some SGX SDKs | ||
| 54 | if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then | ||
| 55 | cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/ | ||
| 56 | fi | ||
| 57 | |||
| 58 | unset CFLAGS CXXFLAGS | ||
| 59 | oe_runmake ${EXTRA_ENV} | ||
| 60 | } | ||
| 61 | |||
| 62 | do_install_append() { | ||
| 63 | install -d ${D}${bindir} | ||
| 64 | for i in rcc uic moc ; do | ||
| 65 | install -m 0755 ${S}/bin/$i ${D}${bindir}/ | ||
| 66 | done | ||
| 67 | |||
| 68 | #Append an E to the qtdemo file | ||
| 69 | if [ -n "${QT_LIBINFIX}" ] ; then | ||
| 70 | mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX} | ||
| 71 | fi | ||
| 72 | } | ||
| 73 | |||
| 74 | SRC_URI[md5sum] = "5c69f16d452b0bb3d44bc3c10556c072" | ||
| 75 | SRC_URI[sha256sum] = "f4e0ada8d4d516bbb8600a3ee7d9046c9c79e38cd781df9ffc46d8f16acd1768" | ||
| 76 | |||
