mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
Bug: https://bugs.gentoo.org/949101 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
40 lines
981 B
Bash
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
|
|
}
|