commit:     4dca9d042d3d4d8bc3a71bdcae8e7544c39f1590
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 21 15:18:31 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 21 15:19:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dca9d04

games-emulation/mupen64plus-core: Fix building against opencv-4

Closes: https://bugs.gentoo.org/790380
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild 
b/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild
index 21de520cdfe..459fd3cd623 100644
--- a/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild
+++ b/games-emulation/mupen64plus-core/mupen64plus-core-2.5.9-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -42,6 +42,8 @@ src_prepare() {
 
        # avoid implicitly appending CPU flags
        sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die
+       # fix building against opencv-4
+       sed -i -e '/PKG_CONFIG/s:opencv:&4:' projects/unix/Makefile || die
 }
 
 src_compile() {

Reply via email to