summaryrefslogtreecommitdiff
blob: 3750f5c686a807cbb0a8108c11de983b405615f8 (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
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo toolchain-funcs

DESCRIPTION="A high-level C audio library"
HOMEPAGE="https://wickedsmoke.codeberg.page/faun_doc/"
SRC_URI="https://codeberg.org/wickedsmoke/faun/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="flac"

DEPEND="
	flac? ( media-libs/flac )
	media-libs/libpulse
	media-libs/libvorbis
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${PN}-0.2.1_makefile.patch"
)

src_configure() {
	tc-export CC
	# custom configure
	edo ./configure $(usex !flac --no_flac "")
}

src_install() {
	emake DESTDIR="${D}/usr" install
	dodoc README.md
}