summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/movit/files/movit-1.6.3-gcc12.patch12
-rw-r--r--media-video/movit/movit-1.6.3.ebuild9
2 files changed, 18 insertions, 3 deletions
diff --git a/media-video/movit/files/movit-1.6.3-gcc12.patch b/media-video/movit/files/movit-1.6.3-gcc12.patch
new file mode 100644
index 000000000000..00b9e9203b11
--- /dev/null
+++ b/media-video/movit/files/movit-1.6.3-gcc12.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/839915
+
+--- a/test_util.cpp
++++ b/test_util.cpp
+@@ -2,6 +2,7 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <algorithm>
++#include <memory>
+ #include <epoxy/gl.h>
+ #include <gtest/gtest.h>
+ #include <gtest/gtest-message.h>
diff --git a/media-video/movit/movit-1.6.3.ebuild b/media-video/movit/movit-1.6.3.ebuild
index a083a1dd4b0f..bc9144f4e5d9 100644
--- a/media-video/movit/movit-1.6.3.ebuild
+++ b/media-video/movit/movit-1.6.3.ebuild
@@ -21,12 +21,15 @@ RESTRICT="test"
RDEPEND="media-libs/mesa[X(+)]
>=dev-cpp/eigen-3.2.0:3
media-libs/libepoxy[egl]
- >=sci-libs/fftw-3
- media-libs/libsdl2
- "
+ >=sci-libs/fftw-3:=
+ media-libs/libsdl2"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.3-gcc12.patch
+)
+
src_compile() {
GTEST_DIR="${WORKDIR}/googletest-release-${GTEST_PV}/googletest" emake
}