Merge branch 'org.openembedded.dev' of git+ssh://git.openembedded.org/openembedded...
[openembedded.git] / recipes / qt4 / qt-4.6.0.inc
1 DEFAULT_PREFERENCE = "-1"
2
3 FILESPATHPKG .= ":qt-${PV}"
4
5 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
6            file://0001-cross-compile.patch;patch=1 \
7            file://0002-fix-resinit-declaration.patch;patch=1 \
8            file://0004-no-qmake.patch;patch=1 \
9            file://0006-freetype-host-includes.patch;patch=1 \
10            file://0008-qt-lib-infix.patch;patch=1 \
11            file://0009-support-2bpp.patch;patch=1 \
12            file://0010-no-simpledecoration-example.patch;patch=1 \
13            file://fix-config-tests.patch;patch=1 \
14            file://g++.conf \
15            file://linux.conf \
16            "
17
18 # Patches for '4.6' qt branch
19 SRC_URI += "\
20            file://0860-Added-caching-of-vectorpaths-to-the-GL-paint-engine.patch;patch=1 \
21            file://0917-Better-check-for-EGL-extension-strings.patch;patch=1 \
22            file://0919-Rebind-window-surface-fbo-after-native-GL-rendering.patch;patch=1 \
23            file://0943-Fixed-OpenGL-graphicssystem-issues-for-OpenGL-ES-2.0.patch;patch=1 \
24            file://0945-Add-EGL_BUFFER_SIZE-to-QEglProperties-reduceConfigur.patch;patch=1 \
25            file://0946-Fix-WA_TranslucentBackground-for-QGLWidgets-on-X11-E.patch;patch=1 \
26            file://0947-Compressed-texture-binding-for-QtOpenGL-ETC1-and-PVR.patch;patch=1 \
27            file://0951-Detect-GL2-paint-engine-based-on-fragment-shaders-no.patch;patch=1 \
28            file://0971-Fix-GL_BGRA-formats-under-OpenGL-ES-systems.patch;patch=1 \
29            file://0991-QGtkStyle-support-for-the-inner-border-property-in-G.patch;patch=1 \
30            file://0992-Make-sure-a-context-is-current-when-loading-compress.patch;patch=1 \
31            file://0993-Fix-upside-down-PVR-compressed-textures.patch;patch=1 \
32            file://0996-Export-QGLShareRegister-because-qgl_share_reg-is-exp.patch;patch=1 \
33            file://0998-Set-stacking-class-for-stays-on-top-windows-in-DFB.patch;patch=1 \
34            file://0999-Enable-customizing-of-DirectFB-layer-to-use.patch;patch=1 \
35            file://1008-GLES-2-should-not-use-a-multisampled-format-by-defau.patch;patch=1 \
36            file://1115-Fix-QGLWidgets-created-with-an-alpha-channel-on-X11-.patch;patch=1 \
37            file://1118-Fix-EGL-surface-leaks-when-re-parenting-QGLWidget-on.patch;patch=1 \
38            file://1136-Disable-depth-testing-during-the-2D-QGLWidget-render.patch;patch=1 \
39            file://1149-GL2Engine-Don-t-mark-brush-as-dirty-if-it-hasn-t-cha.patch;patch=1 \
40            file://1157-Align-GL_RGB-lines-on-a-4-byte-boundary-when-uploadi.patch;patch=1 \
41 #           file://1165-NEON-configure-detection-and-initial-blend-function-.patch;patch=1 \
42            file://1175-Fix-memory-leak-of-QGLGlyphCoord-objects-in-the-Open.patch;patch=1 \
43            file://1197-Add-GLfloat-2-2-GLfloat-3-3-uniform-setters-to-QGLSh.patch;patch=1 \
44            file://1198-Handle-broken-shaders-better-in-the-GL2-engine-s-sha.patch;patch=1 \
45            file://1205-Fix-text-rendering-on-GL2-paint-engine.patch;patch=1 \
46 "
47
48 S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
49
50 do_configure_prepend() {
51     sed -i s:SEDME:${S}: ${WORKDIR}/linux.conf
52     sed -i \
53     -e /QMAKE_MOC\ /d \
54     -e /QMAKE_UIC\ /d \
55     -e /QMAKE_UIC3\ /d \
56     -e /QMAKE_RCC\ /d \
57     ${S}/configure
58 }
59
60 QT_GLFLAGS ?= ""
61 QT_CONFIG_FLAGS += "${QT_GLFLAGS}"
62
63 do_compile() {
64     unset CFLAGS CXXFLAGS
65     oe_runmake ${EXTRA_ENV}
66 }
67
68 do_install_append() {
69         install -d ${D}${bindir}
70         for i in rcc uic moc ; do
71                 install -m 0755 ${S}/bin/$i ${D}${bindir}/
72         done
73 }
74
75 LICENSE = "LGPLv2.1 GPLv3"
76 SRC_URI += " \
77             file://hack-out-pg_config.patch;patch=1"