media-libs/qtav: Fix build w/ Qt 5.14
authorJohannes Huber <johu@gentoo.org>
Tue, 7 Jan 2020 21:52:50 +0000 (22:52 +0100)
committerJohannes Huber <johu@gentoo.org>
Tue, 7 Jan 2020 21:53:55 +0000 (22:53 +0100)
Thanks-to: David Haller <gentoo@dhaller.de>
Closes: https://bugs.gentoo.org/703560
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Johannes Huber <johu@gentoo.org>
media-libs/qtav/files/qtav-1.12.0-qt5.14.patch [new file with mode: 0644]
media-libs/qtav/qtav-1.12.0-r1.ebuild

diff --git a/media-libs/qtav/files/qtav-1.12.0-qt5.14.patch b/media-libs/qtav/files/qtav-1.12.0-qt5.14.patch
new file mode 100644 (file)
index 0000000..bf546c9
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ub -purN -x '*~' a/qml/SGVideoNode.cpp b/qml/SGVideoNode.cpp
+--- a/qml/SGVideoNode.cpp      2017-06-21 03:47:15.000000000 +0200
++++ b/qml/SGVideoNode.cpp      2020-01-07 05:37:05.304897727 +0100
+@@ -25,6 +25,8 @@
+ #include "QtAV/VideoFrame.h"
+ #include <QtCore/QScopedPointer>
+ #include <QtGui/QOpenGLFunctions>
++#include <QtQuick/QSGMaterialType>
++#include <QtQuick/QSGMaterial>
+ #include <QtQuick/QSGMaterialShader>
+ // all in QSGRenderThread
index 14df283f88884425d399991bb165f651dc3d442e..cac2cb204608ca5713218f98e3d9d5876884c417 100644 (file)
@@ -40,6 +40,7 @@ S="${WORKDIR}/${MY_PN}-${PV}"
 PATCHES=(
        "${FILESDIR}"/${P}-multilib.patch
        "${FILESDIR}"/${P}-ffmpeg4-{1,2}.patch # bugs 660852, 670765
+       "${FILESDIR}"/${P}-qt5.14.patch
 )
 
 src_prepare() {