gentoo-ebuilds/media-libs/dumb/dumb-2.0.3-r1.ebuild
Andreas Sturmlechner 9c5d213695
media-libs/dumb: update EAPI 7 -> 8, fix build w/ cmake-4
Bug: https://bugs.gentoo.org/949101
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-05-23 19:55:39 +02:00

40 lines
981 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
DESCRIPTION="Module/tracker based music format parser and player library"
HOMEPAGE="https://github.com/kode54/dumb"
SRC_URI="https://github.com/kode54/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="DUMB-0.9.3"
SLOT="0/2"
KEYWORDS="~alpha amd64 ~arm64 ~loong ppc ppc64 ~riscv sparc x86"
IUSE="allegro cpu_flags_x86_sse examples"
RDEPEND="
allegro? ( media-libs/allegro:0[${MULTILIB_USEDEP}] )
examples? (
>=dev-libs/argtable-2
media-libs/libsdl2[sound]
)
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-pkg-config.patch
"${FILESDIR}"/${P}-cmake4.patch
)
DOCS=( {CHANGELOG,DUMBFILE_SYSTEM,README,UPDATING_YOUR_PROJECTS}.md )
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_ALLEGRO4=$(usex allegro)
-DBUILD_EXAMPLES=$(multilib_native_usex examples)
-DUSE_SSE=$(usex cpu_flags_x86_sse)
)
cmake_src_configure
}