Merge branch 'vuplus-1.6' of 192.168.102.66:/var/ikseong/repo/openembedded into test_0921
[vuplus_openembedded] / recipes / qt4 / qt-4.7.4.inc
1 DEFAULT_PREFERENCE = "-1"
2 LICENSE = "LGPLv2.1 GPLv3"
3
4 FILESPATHPKG =. "qt-${PV}:"
5
6 SRC_URI = "\
7         http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
8         file://0004-no-qmake.patch;patch=1 \
9         file://hack-out-pg2-4.7.0.patch;patch=1 \
10         file://0006-freetype-host-includes.patch;patch=1 \
11         file://0001-Added-Openembedded-crossarch-option.patch;patch=1 \
12         file://0010-phonon-gstreamer-rgb-endianess.patch;patch=1 \
13         file://fix-translations.patch;patch=1 \
14         file://0001-wsegl2-support.patch;patch=1 \
15         file://g++.conf \
16         file://linux.conf \
17         file://blacklist-diginotar-certs.diff;patch=1 \
18         "
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:$$LRELEASE:${STAGING_BINDIR_NATIVE}/lrelease4: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 QT_GLFLAGS ?= ""
39 QT_CONFIG_FLAGS += " -script -scripttools -declarative -xmlpatterns -no-rpath -qt3support -reduce-relocations -silent ${QT_GLFLAGS}"
40
41 do_compile() {
42     unset CFLAGS CXXFLAGS
43
44     oe_runmake ${EXTRA_ENV}
45 }
46
47 do_install_append() {
48         install -d ${D}${bindir}
49         for i in rcc uic moc ; do
50                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
51         done
52
53         #Append an E to the qtdemo file
54         if [ -n "${QT_LIBINFIX}" ] ; then
55                 mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
56         fi
57 }
58