media-libs/munt-mt32emu: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/951838
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-05-19 17:59:51 +02:00
parent 5abb801b14
commit 227dc5442b
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,17 @@
From e6af0c7e5d63680716ab350467207c938054a0df Mon Sep 17 00:00:00 2001
From: sergm <sergm@bigmir.net>
Date: Sat, 30 Sep 2023 14:11:26 +0200
Subject: [PATCH] Updated CMake scripts for compatibility with CMake 3.27+
---
mt32emu/CMakeLists.txt | 2 +-
index 0443ee7a..93838a81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 2.8.12...3.27)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

View File

@ -1,22 +1,23 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P="libmt32emu_${PV//./_}"
inherit cmake
MY_P="libmt32emu_${PV//./_}"
DESCRIPTION="Library for emulating the Roland MT-32, CM-32L, CM-64 and LAPC-I"
HOMEPAGE="https://github.com/munt/munt"
SRC_URI="https://github.com/munt/munt/archive/${MY_P}.tar.gz"
S="${WORKDIR}/munt-${MY_P}/mt32emu"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
S="${WORKDIR}/munt-${MY_P}/mt32emu"
PATCHES=(
"${FILESDIR}"/${PN}-2.6.1-docs.patch
"${FILESDIR}"/${P}-cmake4.patch # bug 951838
)
src_configure() {