commit:     262456ca9a0fcd881114d7ac76e62e0b696f2a8b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 30 13:59:11 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 30 14:00:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=262456ca

media-sound/fluidsynth: add 2.4.8

> Very few changes over 2.4.7. We have 2.5.2 in-tree now and I'd
> like >2.4.3 stabled for the various fixes we've made to the ebuild
> since then.

i.e. the bits from e30fcf2e2f7b63e6e03b473bb4b5c30a70940043 and
95c93da7428b4b18762630a11e960fd51e955945.

Bug: https://bugs.gentoo.org/968176
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/fluidsynth/Manifest                |   1 +
 media-sound/fluidsynth/fluidsynth-2.4.8.ebuild | 148 +++++++++++++++++++++++++
 2 files changed, 149 insertions(+)

diff --git a/media-sound/fluidsynth/Manifest b/media-sound/fluidsynth/Manifest
index 17928daa5c2c..c0c63a608de1 100644
--- a/media-sound/fluidsynth/Manifest
+++ b/media-sound/fluidsynth/Manifest
@@ -1,5 +1,6 @@
 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.4.8.tar.gz 1798565 BLAKE2B 
4cb9edbda91acf157200125910ae488150a525afb4133a13d744ecdf317694efeedf69407e5361c05b5003a218eeda2c90fa328c6a42d22a9950219c99249fd9
 SHA512 
769f3d225fb1ad6c59d19c9d426a80352dc22704f426c94a52966376bf72537a1196611334aad3f0030b704c85de6c8080d326f67e875de2e54d17432d4bd793
 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.4.8.ebuild 
b/media-sound/fluidsynth/fluidsynth-2.4.8.ebuild
new file mode 100644
index 000000000000..326a5d0ff0ec
--- /dev/null
+++ b/media-sound/fluidsynth/fluidsynth-2.4.8.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib systemd toolchain-funcs tmpfiles
+
+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"
+
+LICENSE="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="
+       dev-libs/glib:2[${MULTILIB_USEDEP}]
+       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_prepare() {
+       # https://bugs.gentoo.org/833979#c17
+       sed -i "/CONFIGURE_COMMAND/{n;s/$/ 
-DCMAKE_C_COMPILER=$(tc-getBUILD_CC)/}" \
+               src/CMakeLists.txt || die
+       cmake_src_prepare
+}
+
+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 # 
https://github.com/swami/libinstpatch
+               -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-portaudio=$(usex portaudio)
+               -Denable-profiling=$(usex debug)
+               -Denable-pulseaudio=$(usex pulseaudio)
+               -Denable-pipewire=$(usex pipewire)
+               -Denable-readline=$(usex readline)
+               -Denable-sdl3=$(usex sdl)
+               -Denable-sdl2=OFF
+               -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
+               $(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() {
+       cmake_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"
+
+               if use doc ; then
+                       docinto .
+                       dodoc -r "${BUILD_DIR}/doc/api/html"
+               fi
+       fi
+}
+
+multilib_src_install_all() {
+       docinto pdf
+       dodoc doc/*.pdf
+
+       docinto examples
+       dodoc doc/examples/*.c
+
+       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"
+}

Reply via email to