blob: d90c69a031f8004f5f9e22458cf935f788ba14e0 (
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
51
52
53
54
55
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
MY_PN="ZMusic"
DESCRIPTION="GZDoom's music system as a standalone library"
HOMEPAGE="https://github.com/ZDoom/ZMusic"
SRC_URI="https://github.com/ZDoom/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD DUMB-0.9.3 GPL-3 LGPL-2.1+ LGPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="alsa fluidsynth mpg123 +sndfile"
DEPEND="
sys-libs/zlib
alsa? ( media-libs/alsa-lib )
fluidsynth? ( media-sound/fluidsynth:= )
mpg123? ( media-sound/mpg123 )
sndfile? ( media-libs/libsndfile )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
PATCHES=(
"${FILESDIR}"/${PN}-1.1.4-gcc-13.patch
)
src_prepare() {
rm -rf licenses || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DFORCE_INTERNAL_ZLIB=OFF
-DFORCE_INTERNAL_GME=ON
-DDYN_FLUIDSYNTH=OFF
-DDYN_SNDFILE=OFF
-DDYN_MPG123=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_ALSA="$(usex !alsa)"
-DCMAKE_DISABLE_FIND_PACKAGE_FluidSynth="$(usex !fluidsynth)"
-DCMAKE_DISABLE_FIND_PACKAGE_MPG123="$(usex !mpg123)"
-DCMAKE_DISABLE_FIND_PACKAGE_SndFile="$(usex !sndfile)"
-DBUILD_SHARED_LIBS=ON
)
cmake_src_configure
}
src_install() {
cmake_src_install
}
|