Merge branch 'vuplus-1.6' of ssh://192.168.102.66/~ikseong/work/repo/openembedded...
[vuplus_openembedded] / recipes / qt4 / qt-4.7.1.inc
1 DEFAULT_PREFERENCE = "-1"
2 DEFAULT_PREFERENCE_opendreambox = "1"
3 DEFAULT_PREFERENCE_vuplus = "1"
4 LICENSE = "LGPLv2.1 GPLv3"
5
6 FILESPATHPKG =. "qt-${PV}:"
7
8 SRC_URI = "\
9         ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
10         file://blacklist-fraudulent-comodo-certificates-patch.diff;patch=1 \
11         file://0004-no-qmake.patch;patch=1 \
12         file://hack-out-pg2-4.7.0.patch;patch=1 \
13         file://0006-freetype-host-includes.patch;patch=1 \
14         file://0001-Added-Openembedded-crossarch-option.patch;patch=1 \
15         file://0010-phonon-gstreamer-rgb-endianess.patch;patch=1 \
16         file://webkit_r82142.patch;patch=1 \
17         file://g++.conf \
18         file://linux.conf \
19            "
20 # Set necessary variables in the profile
21 SRC_URI += "file://qte.sh"
22
23 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
24
25 FILES_${QT_BASE_NAME}-tools                += "${bindir}/qml"
26
27 do_configure_prepend() {
28     for pro in $(find ${S} -name "*.pro") ; do
29         sed -i 's:$$QT_BUILD_TREE/bin/lrelease:${OE_QMAKE_LRELEASE}:g' $pro
30     done
31
32     sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
33     sed -i \
34     -e /QMAKE_MOC\ /d \
35     -e /QMAKE_UIC\ /d \
36     -e /QMAKE_UIC3\ /d \
37     -e /QMAKE_RCC\ /d \
38     ${S}/configure
39 }
40
41 do_configure_append() {
42     sed -e '/QMAKE_TARGET /d' -e '/TARGET /d' -i ${S}/translations/Makefile
43 }
44
45 QT_GLFLAGS ?= ""
46 QT_CONFIG_FLAGS += " -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
47
48 do_compile() {
49     # Fixup missing wsegl header in some SGX SDKs
50     if ! [ -e ${STAGING_INCDIR}/wsegl.h ] ; then
51         cp src/3rdparty/powervr/wsegl.h src/plugins/gfxdrivers/powervr/QWSWSEGL/
52     fi
53
54     unset CFLAGS CXXFLAGS
55     install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
56     install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
57     install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
58     install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
59
60     oe_runmake ${EXTRA_ENV}
61 }
62
63 do_install_append() {
64         install -d ${D}${bindir}
65         for i in rcc uic moc ; do
66                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
67         done
68
69         #Append an E to the qtdemo file
70         if [ -n "${QT_LIBINFIX}" ] ; then
71                 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
72         fi
73 }
74