From 8fc630eb6356c8c2a9ebafdb5ee7a1d6dba2cdf7 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 23 Feb 2021 00:16:27 +0100 Subject: [PATCH] media-libs/libsdl2: Add sndio support Signed-off-by: Haelwenn (lanodan) Monnier Closes: https://github.com/gentoo/gentoo/pull/19609 Signed-off-by: James Le Cuirot --- media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild | 6 ++++-- media-libs/libsdl2/metadata.xml | 1 + profiles/arch/alpha/package.use.mask | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild b/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild index e6a22bd2b6b10..50f6d8e1fe461 100644 --- a/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild +++ b/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild @@ -14,7 +14,7 @@ LICENSE="ZLIB" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="alsa aqua cpu_flags_ppc_altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 custom-cflags dbus fcitx4 gles1 gles2 haptic ibus jack +joystick kms libsamplerate nas opengl oss pulseaudio +sound static-libs +threads udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver" +IUSE="alsa aqua cpu_flags_ppc_altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 custom-cflags dbus fcitx4 gles1 gles2 haptic ibus jack +joystick kms libsamplerate nas opengl oss pulseaudio sndio +sound static-libs +threads udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver" REQUIRED_USE=" alsa? ( sound ) fcitx4? ( dbus ) @@ -25,6 +25,7 @@ REQUIRED_USE=" nas? ( sound ) opengl? ( video ) pulseaudio? ( sound ) + sndio? ( sound ) vulkan? ( video ) wayland? ( gles2 ) xinerama? ( X ) @@ -52,6 +53,7 @@ CDEPEND=" >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] ) pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) + sndio? ( media-sound/sndio:=[${MULTILIB_USEDEP}] ) udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] ) wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] @@ -154,7 +156,7 @@ multilib_src_configure() { $(use_enable libsamplerate) $(use_enable nas) --disable-nas-shared - --disable-sndio + $(use_enable sndio) --disable-sndio-shared $(use_enable sound diskaudio) $(use_enable sound dummyaudio) diff --git a/media-libs/libsdl2/metadata.xml b/media-libs/libsdl2/metadata.xml index a35fb97837a85..7c587dc6d2ec9 100644 --- a/media-libs/libsdl2/metadata.xml +++ b/media-libs/libsdl2/metadata.xml @@ -31,6 +31,7 @@ Enable support for app-i18n/ibus Control joystick support (disable at your own risk) Build the KMSDRM video driver + Enable support for the media-sound/sndio backend Control audio support (disable at your own risk) Build with tslib support for touchscreen devices Control video support (disable at your own risk) diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask index 155629c2d6598..88c37c564b174 100644 --- a/profiles/arch/alpha/package.use.mask +++ b/profiles/arch/alpha/package.use.mask @@ -32,6 +32,7 @@ media-libs/openal sndio media-video/ffmpeg sndio media-sound/moc sndio media-sound/mpd sndio +media-libs/libsdl2 sndio # Sam James (2021-01-19) # Avoid pulling in a large unkeyworded dep