Enable EGL support
This commit is contained in:
parent
017a08d0ef
commit
ec57d38adf
@ -23,7 +23,7 @@
|
|||||||
Summary: Qt5 - QtBase components
|
Summary: Qt5 - QtBase components
|
||||||
Name: qt5-qtbase
|
Name: qt5-qtbase
|
||||||
Version: 5.2.0
|
Version: 5.2.0
|
||||||
Release: 0.5.%{pre}.%{snap_tag}%{?dist}
|
Release: 0.6.%{pre}.%{snap_tag}%{?dist}
|
||||||
|
|
||||||
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
||||||
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||||||
@ -58,6 +58,8 @@ Patch51: qtbase-opensource-src-5.1.1-bigendian.patch
|
|||||||
Patch52: qtbase-opensource-src-5.2.0-alpha-harfbuzz.patch
|
Patch52: qtbase-opensource-src-5.2.0-alpha-harfbuzz.patch
|
||||||
|
|
||||||
##upstream patches
|
##upstream patches
|
||||||
|
# fix egl build
|
||||||
|
Patch53: qtbase-opensource-src-5.2.0-egl.patch
|
||||||
|
|
||||||
# macros
|
# macros
|
||||||
%define _qt5 %{name}
|
%define _qt5 %{name}
|
||||||
@ -208,6 +210,7 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
|
|||||||
#patch50 -p1 -b .poll
|
#patch50 -p1 -b .poll
|
||||||
%patch51 -p1 -b .bigendian
|
%patch51 -p1 -b .bigendian
|
||||||
%patch52 -p1 -b .harfbuzz
|
%patch52 -p1 -b .harfbuzz
|
||||||
|
%patch53 -p1 -b .egl
|
||||||
|
|
||||||
# drop -fexceptions from $RPM_OPT_FLAGS
|
# drop -fexceptions from $RPM_OPT_FLAGS
|
||||||
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
|
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
|
||||||
@ -603,6 +606,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 22 2013 Lubomir Rintel <lkundrak@v3.sk> 5.2.0-0.6.beta1.20131108_141
|
||||||
|
- Enable EGL support
|
||||||
|
|
||||||
* Sat Nov 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1.20131108_141
|
* Sat Nov 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1.20131108_141
|
||||||
- 2013-11-08_141 snapshot, arm switch qreal double
|
- 2013-11-08_141 snapshot, arm switch qreal double
|
||||||
|
|
||||||
|
111
qtbase-opensource-src-5.2.0-egl.patch
Normal file
111
qtbase-opensource-src-5.2.0-egl.patch
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
From 20272ad6e5c56db87146f85f98c560099bfdbb75 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jorgen Lind <jorgen.lind@digia.com>
|
||||||
|
Date: Tue, 12 Nov 2013 09:25:23 +0100
|
||||||
|
Subject: [PATCH] Fix configure script to not dictate OpenGL ES 2 when EGL is
|
||||||
|
enabled
|
||||||
|
|
||||||
|
Change-Id: I4d940ef436f21fd915f3d03558fd4fb4c7b3e5b7
|
||||||
|
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
|
||||||
|
---
|
||||||
|
configure | 34 +++++++---------------------------
|
||||||
|
1 file changed, 7 insertions(+), 27 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index 81e2a93..5ff8ad1 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -3679,7 +3679,7 @@ Additional options:
|
||||||
|
$XCBY -xcb ............... Compile Xcb support.
|
||||||
|
|
||||||
|
$EGLFSN -no-eglfs .......... Do not compile EGLFS (EGL Full Screen/Single Surface) support.
|
||||||
|
- $EGLFSY -eglfs ............. Compile EGLFS support (Requires OpenGL ES 2 support).
|
||||||
|
+ $EGLFSY -eglfs ............. Compile EGLFS support.
|
||||||
|
|
||||||
|
$DFBN -no-directfb ....... Do not compile DirectFB support.
|
||||||
|
$DFBY -directfb .......... Compile DirectFB support.
|
||||||
|
@@ -3688,7 +3688,7 @@ Additional options:
|
||||||
|
$LFBY -linuxfb ........... Compile Linux Framebuffer support.
|
||||||
|
|
||||||
|
$KMSN -no-kms ............ Do not compile KMS support.
|
||||||
|
- $KMSY -kms ............... Compile KMS support (Requires EGL and OpenGL ES 2 support).
|
||||||
|
+ $KMSY -kms ............... Compile KMS support (Requires EGL).
|
||||||
|
|
||||||
|
-qpa <name> ......... Sets the default QPA platform (e.g xcb, cocoa, windows).
|
||||||
|
|
||||||
|
@@ -4638,11 +4638,6 @@ if [ "$CFG_EGLFS" = "yes" ]; then
|
||||||
|
echo "The EGLFS plugin requires EGL support and cannot be built"
|
||||||
|
exit 101
|
||||||
|
fi
|
||||||
|
- if [ "$CFG_OPENGL" != "es2" ]; then
|
||||||
|
- echo "The EGLFS plugin requires OpenGL ES 2 support and cannot be built"
|
||||||
|
- exit 101
|
||||||
|
- fi
|
||||||
|
- CFG_OPENGL="es2"
|
||||||
|
CFG_EGL=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -4651,10 +4646,6 @@ if [ "$CFG_KMS" = "yes" ]; then
|
||||||
|
echo "The KMS plugin requires EGL support and cannot be built"
|
||||||
|
exit 101
|
||||||
|
fi
|
||||||
|
- if [ "$CFG_OPENGL" != "es2" ]; then
|
||||||
|
- echo "The KMS plugin requires OpenGL ES 2 support and cannot be built"
|
||||||
|
- exit 101
|
||||||
|
- fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# auto-detect SQL-modules support
|
||||||
|
@@ -5490,17 +5481,10 @@ elif [ "$CFG_XKBCOMMON" = "no" ]; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
# EGL Support
|
||||||
|
-if [ "$CFG_OPENGL" != "es2" ]; then
|
||||||
|
- if [ "$CFG_EGL" = "yes" ] && [ "$CFG_OPENGL" = "desktop" ]; then
|
||||||
|
- echo "EGL support was requested but Qt is being configured for desktop OpenGL."
|
||||||
|
- echo "Either disable EGL support or enable OpenGL ES support."
|
||||||
|
- exit 101
|
||||||
|
- elif [ "$CFG_EGL" = "yes" ] && [ "$CFG_OPENGL" = "no" ]; then
|
||||||
|
- echo "EGL support was requested but OpenGL ES support is disabled."
|
||||||
|
+if [ "$CFG_EGL" = "yes" ] && [ "$CFG_OPENGL" = "no" ]; then
|
||||||
|
+ echo "EGL support was requested but OpenGL support is disabled."
|
||||||
|
echo "Either disable EGL support or enable OpenGL ES support."
|
||||||
|
exit 101
|
||||||
|
- fi
|
||||||
|
- CFG_EGL=no
|
||||||
|
elif [ "$CFG_EGL" != "no" ]; then
|
||||||
|
if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists egl 2>/dev/null; then
|
||||||
|
QMAKE_INCDIR_EGL=`$PKG_CONFIG --cflags-only-I egl 2>/dev/null | sed -e 's,^-I,,g' -e 's, -I, ,g'`
|
||||||
|
@@ -5523,7 +5507,7 @@ elif [ "$CFG_EGL" != "no" ]; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CFG_EGLFS" != "no" ]; then
|
||||||
|
- if [ "$CFG_OPENGL" = "es2" ] && [ "$XPLATFORM_QNX" = "no" ]; then
|
||||||
|
+ if [ "$XPLATFORM_QNX" = "no" ]; then
|
||||||
|
CFG_EGLFS="$CFG_EGL"
|
||||||
|
else
|
||||||
|
CFG_EGLFS="no"
|
||||||
|
@@ -5531,7 +5515,7 @@ if [ "$CFG_EGLFS" != "no" ]; then
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CFG_KMS" = "yes" ]; then
|
||||||
|
- if [ "$CFG_OPENGL" = "es2" ] && [ "$CFG_EGL" = "yes" ]; then
|
||||||
|
+ if [ "$CFG_EGL" = "yes" ]; then
|
||||||
|
CFG_KMS="yes"
|
||||||
|
else
|
||||||
|
CFG_KMS="no"
|
||||||
|
@@ -5911,11 +5895,7 @@ else
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CFG_OPENGL" = "es2" ]; then
|
||||||
|
- QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES"
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
-if [ "$CFG_OPENGL" = "es2" ]; then
|
||||||
|
- QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_2"
|
||||||
|
+ QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES QT_OPENGL_ES_2"
|
||||||
|
QT_CONFIG="$QT_CONFIG opengles2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.4.2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user