summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/game-music-emu')
-rw-r--r--media-libs/game-music-emu/files/game-music-emu-0.6.2-gcc10.patch11
-rw-r--r--media-libs/game-music-emu/game-music-emu-0.6.2.ebuild4
2 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/game-music-emu/files/game-music-emu-0.6.2-gcc10.patch b/media-libs/game-music-emu/files/game-music-emu-0.6.2-gcc10.patch
new file mode 100644
index 000000000000..620085ca7b78
--- /dev/null
+++ b/media-libs/game-music-emu/files/game-music-emu-0.6.2-gcc10.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -66,7 +66,7 @@
+ if (__LIBGME_TEST_VISIBILITY)
+ # get the gcc version
+ exec_program(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)
+- string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
++ string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" _gcc_version "${_gcc_version_info}")
+
+ # gcc <4.1 had poor support for symbol visibility
+ if ((${_gcc_version} VERSION_GREATER "4.1") OR (${_gcc_version} VERSION_EQUAL "4.1"))
diff --git a/media-libs/game-music-emu/game-music-emu-0.6.2.ebuild b/media-libs/game-music-emu/game-music-emu-0.6.2.ebuild
index 0ff5dae7ee70..54d6d0478cd6 100644
--- a/media-libs/game-music-emu/game-music-emu-0.6.2.ebuild
+++ b/media-libs/game-music-emu/game-music-emu-0.6.2.ebuild
@@ -15,3 +15,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 x86"
IUSE=""
DOCS=( changes.txt design.txt gme.txt readme.txt )
+
+PATCHES=(
+ "${FILESDIR}/game-music-emu-0.6.2-gcc10.patch"
+)