media-sound/milkytracker: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/957762
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-10-17 15:58:16 +02:00
parent ae9d9745a1
commit 4d7987f712
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,11 +156,7 @@
message(STATUS "Enabled MIDI support (WinMM)")
add_subdirectory(src/midi)
else()
- # Workaround for SDL bug #3295, which occurs in SDL2 <2.0.5
- # https://bugzilla.libsdl.org/show_bug.cgi?id=3295
- cmake_policy(SET CMP0004 OLD)
-
- find_package(SDL2 REQUIRED)
+ find_package(SDL2 2.0.5 REQUIRED)
endif()
# Prefer static linkage under OS X for libraries located with find_package()

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -28,6 +28,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-1.04.00-cxx-std.patch
"${FILESDIR}"/${P}-cmake4.patch # bug 957762
)
src_prepare() {