app-emulation/faudio: add 25.11

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki 2025-11-13 22:44:09 +01:00
parent 6e5a3eb720
commit e345bfd575
No known key found for this signature in database
GPG Key ID: 7A96AB564BF498FB
2 changed files with 42 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST faudio-25.10.tar.gz 1130943 BLAKE2B a4c6f4fa057c0258fdaf396be1714649ee9feb584479462c62b865cddfbb3b0be2857fcd87011e1c22d0afb836d4519250e1e0b6d29414fbdadab8f141aedb46 SHA512 08f4f8ca74c2c8d885b88388d420691358ca357b1f3f03bb1aa778cb0b9115e4ed7446fedaaa83c5b95e8a306ad596acb090fe6dfa11055b7588a342f8bf185c
DIST faudio-25.11.tar.gz 1130946 BLAKE2B d897e8d1a54f5988d3a1414904cf2719b045e3ad42062581575dea0c72bb473d8d07c46784e4623fd28b5677280da5a1b242ec55f971e585b672c53ab4d16e30 SHA512 00a3b6d7eb1fa91547f06fc0ec9bd9e7f956d2244568da3ba5144641113a6040c94c0b1d0b32da37ac1a4b51de8322afb8947c5d8817dc1e6de3214f086ee554

View File

@ -0,0 +1,41 @@
# Copyright 1999-2025 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
}