app-emulation/faudio - 26.04 (gentoo)

Search

Install

Install this version:

emerge -a =app-emulation/faudio-26.04

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-emulation/faudio-26.04

Or alternatively:

emerge --autounmask-write -a =app-emulation/faudio-26.04

Package Information

Description:
Accuracy-focused XAudio reimplementation for open platforms
Homepage:
https://fna-xna.github.io/
License:
ZLIB

Ebuild Details

Version EAPI Keywords Slot
26.04 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake-multilib flag-o-matic

DESCRIPTION="Accuracy-focused XAudio reimplementation for open platforms"
HOMEPAGE="https://fna-xna.github.io/"
SRC_URI="https://github.com/FNA-XNA/FAudio/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/FAudio-${PV}"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug dumpvoices sdl3 test"
RESTRICT="!test? ( test )"

RDEPEND="
	sdl3? ( media-libs/libsdl3[${MULTILIB_USEDEP}] )
	!sdl3? ( media-libs/libsdl2[${MULTILIB_USEDEP},sound] )
"
DEPEND="${RDEPEND}"

src_configure() {
	append-cppflags -D_DEFAULT_SOURCE # usleep() in tests
	use debug || append-cppflags -DFAUDIO_DISABLE_DEBUGCONFIGURATION

	local mycmakeargs=(
		-DBUILD_SDL3="$(usex sdl3)"
		-DBUILD_TESTS="$(usex test)"
		-DDUMP_VOICES="$(usex dumpvoices)"
	)

	cmake-multilib_src_configure
}

multilib_src_test() {
	einfo "Running faudio_tests, this may take some time without output..."
	SDL_AUDIODRIVER=dummy "${BUILD_DIR}"/faudio_tests || die
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-emulation/faudio | euse -E <flag> -p app-emulation/faudio | euse -D <flag> -p app-emulation/faudio

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	sdl3? ( media-libs/libsdl3[] )
	!sdl3? ( media-libs/libsdl2[,sound] )

RDEPEND

	sdl3? ( media-libs/libsdl3[] )
	!sdl3? ( media-libs/libsdl2[,sound] )

Manifest for 26.04

Type File Size Source URLs
DIST faudio-26.04.tar.gz 1133894 bytes https://github.com/FNA-XNA/FAudio/archive/26.04.tar.gz