libtool-sdk: Convert from legacy staging
[openembedded.git] / recipes / qt4 / qt-4.6.2.inc
blobc4c86d23ac6cb7aeab0ffb14571aa824f9689714
1 DEFAULT_PREFERENCE = "-1"
3 FILESPATHPKG .= ":qt-${PV}"
5 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
6            file://0001-cross-compile.patch \
7            file://0002-fix-resinit-declaration.patch \
8            file://0004-no-qmake.patch \
9            file://0006-freetype-host-includes.patch \
10            file://0008-qt-lib-infix.patch \
11            file://0009-support-2bpp.patch \
12            file://0010-no-simpledecoration-example.patch \
13            file://fix-config-tests.patch \
14            file://qt-config.patch \
15            file://g++.conf \
16            file://linux.conf \
17            "
19 # Set necessary variables in the profile
20 SRC_URI += "file://qte.sh"
22 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
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
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
38 do_configure_append() {
39     sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile
42 QT_GLFLAGS ?= ""
43 QT_CONFIG_FLAGS += " -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
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
51     unset CFLAGS CXXFLAGS
52     oe_runmake ${EXTRA_ENV}
55 do_install_append() {
56         install -d ${D}${bindir}
57         for i in rcc uic moc ; do
58                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
59         done
61         #Append an E to the qtdemo file
62         if [ -n "${QT_LIBINFIX}" ] ; then
63                 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
64         fi
67 LICENSE = "LGPLv2.1 GPLv3"
68 SRC_URI += " \
69             file://hack-out-pg_config.patch"
71 SRC_URI[md5sum] = "eb651ee4b157c01696aa56777fc6e0e5"
72 SRC_URI[sha256sum] = "176f51ddb06dce67ab4b2efc6b327dc21ed8f764c5d97acc15ff1f907c2affae"