blob: 3eecb65419155e797972e873d0307c84c8355833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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}]
!media-libs/aldumb
)
examples? (
>=dev-libs/argtable-2
media-libs/libsdl2[sound]
)
"
DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}"/${P}-pkg-config.patch
)
DOCS=(
CHANGELOG.md
DUMBFILE_SYSTEM.md
README.md
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
}
|