diff options
Diffstat (limited to 'app-emulation/faudio/faudio-25.04.ebuild')
-rw-r--r-- | app-emulation/faudio/faudio-25.04.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-emulation/faudio/faudio-25.04.ebuild b/app-emulation/faudio/faudio-25.04.ebuild new file mode 100644 index 000000000000..47c16320b083 --- /dev/null +++ b/app-emulation/faudio/faudio-25.04.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake 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 ) + !sdl3? ( media-libs/libsdl2[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_src_configure +} + +src_test() { + einfo "Running faudio_tests, this may take some time without output..." + SDL_AUDIODRIVER=dummy "${BUILD_DIR}"/faudio_tests || die +} |