From 3e49c40866be1fa5073fa49b76f09c15cb3ac193 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 2 Sep 2026 12:17:31 +0100 Subject: [PATCH 1/3] media-sound/fluidsynth: RDEPEND on media-sound/fluid-soundfont fluidsynth needs a soundfont and it's broken out of the box without it. This will allow individual packages to drop their dependency on media-sound/fluid-soundfont too. It's not clear what a better solution is here, maybe some virtual, but I don't know enough about this area (bug report with suggestions welcome): users can also use package.provided though I am interested in a nicer option here. Most reverse dependencies of fluid-soundfont end up sedding so maybe we really need to include default.sf2 as well somewhere. For those cases, I left the explicit dep in for now. Bug: https://bugs.gentoo.org/479534 Bug: https://bugs.gentoo.org/782871 Signed-off-by: Sam James --- .../fluidsynth/fluidsynth-2.5.7-r1.ebuild | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 media-sound/fluidsynth/fluidsynth-2.5.7-r1.ebuild diff --git a/media-sound/fluidsynth/fluidsynth-2.5.7-r1.ebuild b/media-sound/fluidsynth/fluidsynth-2.5.7-r1.ebuild new file mode 100644 index 0000000000000..3b58ab53a8ffb --- /dev/null +++ b/media-sound/fluidsynth/fluidsynth-2.5.7-r1.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2026 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 + +# 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 ~arm64 ~ppc ~ppc64 ~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} + media-sound/fluid-soundfont +" + +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" + + 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() { + 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" +} From 2c441d12bafefbe8949f66898f0bffc312795bf0 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 2 Sep 2026 12:38:20 +0100 Subject: [PATCH 2/3] games-simulation/corsix-th: don't explicitly depend on fluid-soundfont media-sound/fluidsynth now does that for us. All other reverse dependencies of fluid-soundfont end up sedding so maybe we really need to include default.sf2 as well somewhere. Bug: https://bugs.gentoo.org/479534 Bug: https://bugs.gentoo.org/782871 Signed-off-by: Sam James --- .../{corsix-th-0.70.0-r3.ebuild => corsix-th-0.70.0-r4.ebuild} | 1 - games-simulation/corsix-th/corsix-th-9999.ebuild | 1 - 2 files changed, 2 deletions(-) rename games-simulation/corsix-th/{corsix-th-0.70.0-r3.ebuild => corsix-th-0.70.0-r4.ebuild} (98%) diff --git a/games-simulation/corsix-th/corsix-th-0.70.0-r3.ebuild b/games-simulation/corsix-th/corsix-th-0.70.0-r4.ebuild similarity index 98% rename from games-simulation/corsix-th/corsix-th-0.70.0-r3.ebuild rename to games-simulation/corsix-th/corsix-th-0.70.0-r4.ebuild index c2b9735b14008..3da460ed60641 100644 --- a/games-simulation/corsix-th/corsix-th-0.70.0-r3.ebuild +++ b/games-simulation/corsix-th/corsix-th-0.70.0-r4.ebuild @@ -45,7 +45,6 @@ RDEPEND=" virtual/zlib:= midi? ( media-libs/rtmidi - media-sound/fluid-soundfont ) videos? ( >=media-video/ffmpeg-2.2.3:0= ) " diff --git a/games-simulation/corsix-th/corsix-th-9999.ebuild b/games-simulation/corsix-th/corsix-th-9999.ebuild index 9593f316cdf38..edfad85e4901d 100644 --- a/games-simulation/corsix-th/corsix-th-9999.ebuild +++ b/games-simulation/corsix-th/corsix-th-9999.ebuild @@ -45,7 +45,6 @@ RDEPEND=" virtual/zlib:= midi? ( media-libs/rtmidi - media-sound/fluid-soundfont ) videos? ( >=media-video/ffmpeg-2.2.3:0= ) " From 8d0827aec981533935c1fbb3c9e14e1870bf4c65 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 2 Sep 2026 12:46:28 +0100 Subject: [PATCH 3/3] games-simulation/simutrans: don't explicitly depend on fluid-soundfont media-sound/fluidsynth now does that for us. All other reverse dependencies of fluid-soundfont end up sedding so maybe we really need to include default.sf2 as well somewhere. Bug: https://bugs.gentoo.org/479534 Bug: https://bugs.gentoo.org/782871 Signed-off-by: Sam James --- .../{simutrans-124.2.1.ebuild => simutrans-124.2.1-r1.ebuild} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename games-simulation/simutrans/{simutrans-124.2.1.ebuild => simutrans-124.2.1-r1.ebuild} (97%) diff --git a/games-simulation/simutrans/simutrans-124.2.1.ebuild b/games-simulation/simutrans/simutrans-124.2.1-r1.ebuild similarity index 97% rename from games-simulation/simutrans/simutrans-124.2.1.ebuild rename to games-simulation/simutrans/simutrans-124.2.1-r1.ebuild index 194b40bb31661..095a12926d396 100644 --- a/games-simulation/simutrans/simutrans-124.2.1.ebuild +++ b/games-simulation/simutrans/simutrans-124.2.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -41,7 +41,6 @@ DEPEND=" " RDEPEND=" ${DEPEND} - midi? ( media-sound/fluid-soundfont ) !