media-video/pipewire: wire up USE=sofa for libmysofa

Closes: https://bugs.gentoo.org/956967
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-07-22 00:51:23 +01:00
parent 77ce3f143e
commit 53655ca9e1
6 changed files with 18 additions and 6 deletions

View File

@@ -29,6 +29,7 @@
<flag name="modemmanager">Combined with USE=bluetooth, allows PipeWire to perform telephony on mobile devices.</flag>
<flag name="pipewire-alsa">Install ALSA plugin, similar to <pkg>media-plugins/alsa-plugins</pkg>'s USE=pulseaudio.</flag>
<flag name="roc">Enable roc support for real-time audio streaming over the network, using <pkg>media-libs/roc-toolkit</pkg>. See https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Network#roc</flag>
<flag name="sofa">Spatially Oriented Format for Acoustics (SOFA) support via <pkg>media-libs/libmysofa</pkg></flag>
<flag name="ssl">Enable raop-sink support (needs <pkg>dev-libs/openssl</pkg>)</flag>
<flag name="system-service">Install systemd unit files for running as a system service. Not recommended.</flag>
<flag name="X">Enable audible bell for X11</flag>

View File

@@ -63,7 +63,7 @@ LICENSE="MIT LGPL-2.1+ GPL-2"
SLOT="0/0.4"
IUSE="${PIPEWIRE_DOCS_USEFLAG} bluetooth elogind dbus doc echo-cancel extra ffmpeg fftw flatpak gstreamer gsettings"
IUSE+=" ieee1394 jack-client jack-sdk libcamera loudness lv2 modemmanager pipewire-alsa readline roc selinux"
IUSE+=" pulseaudio sound-server ssl system-service systemd test v4l X zeroconf"
IUSE+=" pulseaudio sound-server sofa ssl system-service systemd test v4l X zeroconf"
# Once replacing system JACK libraries is possible, it's likely that
# jack-client IUSE will need blocking to avoid users accidentally
@@ -165,6 +165,7 @@ RDEPEND="
roc? ( >=media-libs/roc-toolkit-0.4.0:= )
readline? ( sys-libs/readline:= )
selinux? ( sys-libs/libselinux )
sofa? ( media-libs/libmysofa )
ssl? ( dev-libs/openssl:= )
systemd? ( sys-apps/systemd )
system-service? ( acct-user/pipewire )
@@ -294,7 +295,7 @@ multilib_src_configure() {
-Dudev=enabled
-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install)
-Dlibmysofa=disabled # libmysofa is unpackaged
$(meson_native_use_feature sofa libmysofa)
$(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat)
-Dsession-managers="[]" # All available session managers are now their own projects, so there's nothing to build

View File

@@ -63,7 +63,7 @@ LICENSE="MIT LGPL-2.1+ GPL-2"
SLOT="0/0.4"
IUSE="${PIPEWIRE_DOCS_USEFLAG} bluetooth elogind dbus doc echo-cancel extra ffmpeg fftw flatpak gstreamer gsettings"
IUSE+=" ieee1394 jack-client jack-sdk libcamera loudness lv2 modemmanager pipewire-alsa readline roc selinux"
IUSE+=" pulseaudio sound-server ssl system-service systemd test v4l X zeroconf"
IUSE+=" pulseaudio sound-server sofa ssl system-service systemd test v4l X zeroconf"
# Once replacing system JACK libraries is possible, it's likely that
# jack-client IUSE will need blocking to avoid users accidentally
@@ -165,6 +165,7 @@ RDEPEND="
roc? ( >=media-libs/roc-toolkit-0.4.0:= )
readline? ( sys-libs/readline:= )
selinux? ( sys-libs/libselinux )
sofa? ( media-libs/libmysofa )
ssl? ( dev-libs/openssl:= )
systemd? ( sys-apps/systemd )
system-service? ( acct-user/pipewire )
@@ -294,7 +295,7 @@ multilib_src_configure() {
-Dudev=enabled
-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install)
-Dlibmysofa=disabled # libmysofa is unpackaged
$(meson_native_use_feature sofa libmysofa)
$(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat)
-Dsession-managers="[]" # All available session managers are now their own projects, so there's nothing to build

View File

@@ -63,7 +63,7 @@ LICENSE="MIT LGPL-2.1+ GPL-2"
SLOT="0/0.4"
IUSE="${PIPEWIRE_DOCS_USEFLAG} bluetooth elogind dbus doc echo-cancel extra ffmpeg fftw flatpak gstreamer gsettings"
IUSE+=" ieee1394 jack-client jack-sdk libcamera loudness lv2 modemmanager pipewire-alsa readline roc selinux"
IUSE+=" pulseaudio sound-server ssl system-service systemd test v4l X zeroconf"
IUSE+=" pulseaudio sound-server sofa ssl system-service systemd test v4l X zeroconf"
# Once replacing system JACK libraries is possible, it's likely that
# jack-client IUSE will need blocking to avoid users accidentally
@@ -165,6 +165,7 @@ RDEPEND="
roc? ( >=media-libs/roc-toolkit-0.4.0:= )
readline? ( sys-libs/readline:= )
selinux? ( sys-libs/libselinux )
sofa? ( media-libs/libmysofa )
ssl? ( dev-libs/openssl:= )
systemd? ( sys-apps/systemd )
system-service? ( acct-user/pipewire )
@@ -294,7 +295,7 @@ multilib_src_configure() {
-Dudev=enabled
-Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d"
-Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install)
-Dlibmysofa=disabled # libmysofa is unpackaged
$(meson_native_use_feature sofa libmysofa)
$(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat)
-Dsession-managers="[]" # All available session managers are now their own projects, so there's nothing to build

View File

@@ -17,6 +17,10 @@
#--- END OF EXAMPLES ---
# Sam James <sam@gentoo.org> (2026-07-22)
# media-libs/libmysofa is keyworded here
media-video/pipewire -sofa
# Alfredo Tupone <tupone@gentoo.org> (2026-05-18)
# Unmask on specific arches where it's available.
media-video/obs-studio -mpegts

View File

@@ -1,6 +1,10 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Sam James <sam@gentoo.org> (2026-07-22)
# media-libs/libmysofa not keyworded in most places
media-video/pipewire sofa
# Michał Górny <mgorny@gentoo.org> (2026-03-14)
# SPIRV target requires dev-libs/level-zero.
llvm-runtimes/offload llvm_targets_SPIRV