commit: bfd64d5fd3e194d358b5aad1348b0fc7ceeda2d8 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Dec 29 09:45:53 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 30 13:16:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfd64d5f
media-sound/fluidsynth: add 2.5.2 glib is now deprecated in favor of a new OSAL named 'cpp11' that adds native support for DLS gentables has been reworked : it uses a 3rdparty headers-only lib (gcem) the workaround to define the compiler is no longer required support for sdl2 is removed update doc with .cxx example Bug: https://bugs.gentoo.org/833979 Closes: https://bugs.gentoo.org/964575 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/45193 Closes: https://github.com/gentoo/gentoo/pull/45193 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/fluidsynth/Manifest | 2 + media-sound/fluidsynth/fluidsynth-2.5.2.ebuild | 148 +++++++++++++++++++++++++ 2 files changed, 150 insertions(+) diff --git a/media-sound/fluidsynth/Manifest b/media-sound/fluidsynth/Manifest index b6de1ac3bcba..17928daa5c2c 100644 --- a/media-sound/fluidsynth/Manifest +++ b/media-sound/fluidsynth/Manifest @@ -1,3 +1,5 @@ DIST fluidsynth-2.4.3.tar.gz 1788637 BLAKE2B d79a2a7a1486619c0a2f23019c30d44f2b260d95495f5be8073f60464ca0d95096a71f15fa9d2ee9469de74a972d103f79eb56950ff21c2483b27187f0e17999 SHA512 847d2f4529ac1bad735b71b57067c50586df7e2526c6311925c209c0635ee1e1dca1bd77dc6006181fc19a616738c8de1242bfb209707c8dbea9d7e2acc61017 DIST fluidsynth-2.4.6.tar.gz 1793331 BLAKE2B cddc60ddd97a7403d264a81712b7b71869a49a0927839491897f368dd77484bdb55e07433f95f42b4cd18f57ea111681cd0f5a36f1e77047b34f37bcd7d146bc SHA512 2d5424d80234742be45f1c7cdf696182c96b684232bb92b079edf270d726c5d1292c5fc42c8b580ae1a89642ad7b536245977928bbeecedd94443f6e1f47d5fd DIST fluidsynth-2.4.7.tar.gz 1797138 BLAKE2B 2935d4d859eb62bd8b15188ac049826fa70ec321eba453d1e12f22d0f9e673c3d7979e559f90bde84530d7f9719380d7c36b669cc80fb9a8b5e7d91a2d976dc1 SHA512 8f5d9e20ab5a50b966ae9abee349913611a3e4ebb6c4a39c8b0f56aaba06483e82a761e3d38a37af689e45a0940957c9db9d324ff77352b0841da40be1ff3899 +DIST fluidsynth-2.5.2.tar.gz 2111488 BLAKE2B ca524fa0ae674254a7ef6d354612567e83398560c241d5c8261e7de5bfd4762730058614da18ed23fa7bdf2a732dec403a9cd58e2a8195214cd3eddd901d2851 SHA512 5c376d9bf6388f04e5d48375a70682f9d7edcd65809383afc0190c77140b086492abc17a8d3a2aa07e59dde681ab17a919e9b8b7e174a91a2951c30b262c10e4 +DIST gcem-012ae73c6d0a2cb09ffe86475f5c6fba3926e200.tar.gz 57846 BLAKE2B 281b292409201842960d68e111ac1342dd45a4d996b92250abe9323993d0787ddf7de4d7dcc55fec3ece67abcb5adcc48ed3f5b01bb2b62c0a30c703faf331aa SHA512 5a5492add2669d7efd69772f5084edc59d8f80421463be9cc994bb4972a63b210eb132158c98fcdb16e8dc16194a3503133f0e714efdcc954c5ef0851f0e4f05 diff --git a/media-sound/fluidsynth/fluidsynth-2.5.2.ebuild b/media-sound/fluidsynth/fluidsynth-2.5.2.ebuild new file mode 100644 index 000000000000..ccb5df2ba749 --- /dev/null +++ b/media-sound/fluidsynth/fluidsynth-2.5.2.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# doc/android/fluidsynth-assetloader/CMakeLists.txt unused +CMAKE_QA_COMPAT_SKIP=yes +inherit cmake-multilib systemd toolchain-funcs tmpfiles + +# gcem is headers-only +HASH_GCEM="012ae73c6d0a2cb09ffe86475f5c6fba3926e200" +DESCRIPTION="Software real-time synthesizer based on the Soundfont 2 specifications" +HOMEPAGE="https://www.fluidsynth.org" +SRC_URI=" + https://github.com/FluidSynth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/kthohr/gcem/archive/${HASH_GCEM}.tar.gz -> gcem-${HASH_GCEM}.tar.gz +" + +# Apache-2.0 for gcem +LICENSE="Apache-2.0 LGPL-2.1+" +SLOT="0/3" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~sparc ~x86" +IUSE="alsa dbus debug doc ipv6 jack ladspa openmp oss pipewire portaudio pulseaudio +readline sdl +sndfile systemd threads" + +BDEPEND=" + virtual/pkgconfig + doc? ( + app-text/doxygen + dev-libs/libxslt + ) +" +DEPEND=" + alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) + dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) + jack? ( virtual/jack[${MULTILIB_USEDEP}] ) + ladspa? ( + media-libs/ladspa-sdk[${MULTILIB_USEDEP}] + media-plugins/cmt-plugins[${MULTILIB_USEDEP}] + ) + pipewire? ( media-video/pipewire:0=[${MULTILIB_USEDEP}] ) + portaudio? ( media-libs/portaudio[${MULTILIB_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] ) + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) + sdl? ( media-libs/libsdl3[${MULTILIB_USEDEP}] ) + sndfile? ( media-libs/libsndfile[${MULTILIB_USEDEP}] ) + systemd? ( sys-apps/systemd ) +" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS CONTRIBUTING.md README.md THANKS TODO doc/fluidsynth-v20-devdoc.txt ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_unpack() { + default + rmdir "${S}"/gcem || die + ln -sfT ../gcem-${HASH_GCEM} "${S}"/gcem || die +} + +src_configure() { + local mycmakeargs=( + -Denable-alsa=$(usex alsa) + -Denable-aufile=ON + -Denable-dbus=$(usex dbus) + -Denable-dsound=OFF # Windows + -Denable-floats=OFF # loat instead of double for DSP samples + -Denable-fpe-check=$(usex debug) + -Denable-ipv6=$(usex ipv6) + -Denable-jack=$(usex jack) + -Denable-ladspa=$(usex ladspa) + -Denable-libinstpatch=OFF # deprecated + -Denable-midishare=OFF # http://midishare.sourceforge.net/ + -Denable-network=ON + -Denable-openmp=$(usex openmp) + -Denable-opensles=OFF + -Denable-oboe=OFF # requires OpenSLES and/or AAudio + -Denable-oss=$(usex oss) + -Denable-libsndfile=$(usex sndfile) + -Denable-native-dls=ON # instead of libinstpatch + -Denable-portaudio=$(usex portaudio) + -Denable-profiling=$(usex debug) + -Denable-pulseaudio=$(usex pulseaudio) + -Denable-pipewire=$(usex pipewire) + -Denable-readline=$(usex readline) + -Denable-sdl3=$(usex sdl) + -Denable-systemd=$(multilib_native_usex systemd) + -Denable-threads=$(usex threads) + -Denable-trap-on-fpe=$(usex debug) + -Denable-ubsan=OFF # compile and link against UBSan (for debugging fluidsynth internals) + -Denable-waveout=OFF # Windows + -Denable-winmidi=OFF # Windows + -Dosal=cpp11 # instead of glib + $(cmake_use_find_package doc Doxygen) + -DFLUID_DAEMON_ENV_FILE="/etc/fluidsynth.conf" + -DDEFAULT_SOUNDFONT="/usr/share/sounds/sf2/FluidR3_GM.sf2" + ) + + cmake-multilib_src_configure +} + +multilib_src_compile() { + cmake_src_compile + use doc && multilib_is_native_abi && cmake_build doxygen +} + +multilib_src_test() { + eninja check +} + +multilib_src_install() { + if multilib_is_native_abi ; then + systemd_dounit "${BUILD_DIR}/fluidsynth.service" + + newtmpfiles "${BUILD_DIR}/fluidsynth.tmpfiles" fluidsynth.conf + + insinto /etc + doins "${BUILD_DIR}/fluidsynth.conf" + + use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/api/html/. ) + fi + + cmake_src_install +} + +multilib_src_install_all() { + docinto pdf + dodoc doc/*.pdf + + docinto examples + dodoc doc/examples/*.{c,cxx} + + newinitd "${FILESDIR}/fluidsynth.init" fluidsynth + newconfd "${FILESDIR}/fluidsynth.confd" fluidsynth +} + +pkg_postinst() { + tmpfiles_process fluidsynth.conf + + elog "When using fluidsynth as a system service, make sure" + elog "to configure your fluidsynth settings globally in " + elog "/etc/fluidsynth.conf or per-user in ~/.config/fluidsynth" +}
