commit: 97c0deefd6861823d1086cfb93dcbc26d9179c1a Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Wed Apr 2 20:40:18 2025 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Fri Apr 4 20:15:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c0deef
app-emulation/faudio: add 25.04 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> app-emulation/faudio/Manifest | 1 + app-emulation/faudio/faudio-25.04.ebuild | 41 ++++++++++++++++++++++++++++++++ app-emulation/faudio/metadata.xml | 1 + profiles/arch/x86/package.use.mask | 4 ++++ 4 files changed, 47 insertions(+) diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest index 39eeda95fe5a..096d3a013b81 100644 --- a/app-emulation/faudio/Manifest +++ b/app-emulation/faudio/Manifest @@ -1,2 +1,3 @@ DIST faudio-25.02.tar.gz 1127116 BLAKE2B 9df60de8a9448d5425c1e4b5d88bed12b4b7f40971c04120795f4c799e2b7bf8eb45a8e649c0cec8e4445e64d9a602e78769ca69bc998ddae66e5b9fc74e22a6 SHA512 1d93b0d167e23ea2f012ec10ca1227e05ff1b81aa9568ab35bb6335622a62bacb5ed33b788ef6e953050a3bfa7d15e6a9579821cf5e36c239998a0e1271c9c1e DIST faudio-25.03.tar.gz 1126597 BLAKE2B bd95c8455adf072186309697040aea677b46afa25ccdc8ad45477d7f78237153908955fc8e772bfc7d460b9cd4dbad31a170a25b0352df052546b402a3f99023 SHA512 ec1f37a73aa5ad57841e297d8ee730b8b161144bc0624e29e9ba7b86c6f2d8657b2b20169603616701db04d99a9522dd1463c043e2c0e64eb7d980f4909327c7 +DIST faudio-25.04.tar.gz 1126602 BLAKE2B f25a05b6e4f94038c2e1d8d1574774d0039cff50db802674fb2c94d9a345a580e0e941d5e817faea06599eb9f31f70f350ae87e567257dfa748407b3d5ffda70 SHA512 191b4947c43161c74f32da0208d752f492bcc48eb4ce5bd94824fe541ce0446ff522bfed45fdde29eb05f6938ed814dba3bde31fd06abed4bccf6a79cf334eac 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 +} diff --git a/app-emulation/faudio/metadata.xml b/app-emulation/faudio/metadata.xml index 0c09d653bc92..06a722423fc7 100644 --- a/app-emulation/faudio/metadata.xml +++ b/app-emulation/faudio/metadata.xml @@ -12,6 +12,7 @@ </longdescription> <use> <flag name="dumpvoices">FAudio dumps buffer data to individual files with RIFF/XWMA headers, usable with players like ffplay/testxwma.</flag> + <flag name="sdl3">Build against SDL3 using <pkg>media-libs/libsdl3</pkg>.</flag> </use> <upstream> <remote-id type="github">FNA-XNA/FAudio</remote-id> diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask index bef6a6fe1e18..5de2ab42c9a7 100644 --- a/profiles/arch/x86/package.use.mask +++ b/profiles/arch/x86/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Conrad Kostecki <[email protected]> (2025-04-02) +# media-libs/libsdl3 is not keyworded +app-emulation/faudio sdl3 + # NRK <[email protected]> (2025-03-17) # media-libs/libyuv is not keyworded media-libs/libavif libyuv
