task-base: make it possible for a distro to set it's alsa-state provider
[openembedded.git] / recipes / qt4 / qt-4.7.3.inc
blob4dfebd1e94daff6d34468cf7e00e96261f963173
1 DEFAULT_PREFERENCE = "-1"
2 LICENSE = "LGPLv2.1 GPLv3"
4 FILESPATHPKG =. "qt-${PV}:"
6 SRC_URI = "\
7         ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
8         file://0004-no-qmake.patch \
9         file://hack-out-pg2-4.7.0.patch \
10         file://0006-freetype-host-includes.patch \
11         file://0001-Added-Openembedded-crossarch-option.patch \
12         file://0010-phonon-gstreamer-rgb-endianess.patch \
13         file://fix-translations.patch \
14         file://g++.conf \
15         file://linux.conf \
16         "
18 # Set necessary variables in the profile
19 SRC_URI += "file://qte.sh"
21 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
23 FILES_${QT_BASE_NAME}-tools                += "${bindir}/qml"
25 do_configure_prepend() {
26     for pro in $(find ${S} -name "*.pro") ; do
27         sed -i 's:$$LRELEASE:${STAGING_BINDIR_NATIVE}/lrelease4:g' $pro
28     done
30     sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
31     sed -i \
32     -e /QMAKE_MOC\ /d \
33     -e /QMAKE_UIC\ /d \
34     -e /QMAKE_UIC3\ /d \
35     -e /QMAKE_RCC\ /d \
36     ${S}/configure
39 QT_GLFLAGS ?= ""
40 QT_CONFIG_FLAGS += " -javascript-jit -script -scripttools -declarative -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
42 do_compile() {
43     # Fixup missing wsegl header in some SGX SDKs
44     if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then
45         cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/
46     fi
48     unset CFLAGS CXXFLAGS
50     oe_runmake ${EXTRA_ENV}
53 do_install_append() {
54         install -d ${D}${bindir}
55         for i in rcc uic moc ; do
56                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
57         done
59         #Append an E to the qtdemo file
60         if [ -n "${QT_LIBINFIX}" ] ; then
61                 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
62         fi
65 SRC_URI[md5sum] = "49b96eefb1224cc529af6fe5608654fe"
66 SRC_URI[sha256sum] = "d02b6fd69d089c01f4a787aa18175d074ccaecf8980a5956e328c2991905937e"