summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-06 20:55:46 +0000
committerSam James <sam@gentoo.org>2021-02-06 20:56:20 +0000
commitaed75bf5efd81db64464a60207ebea49cb0bba76 (patch)
tree08f2de593a0821030f4537446659b62a66a5a463 /media-libs/openal
parentprofiles/arch/*: mask media-libs/openal[sndio] where no sndio (diff)
downloadgentoo-aed75bf5efd81db64464a60207ebea49cb0bba76.tar.gz
gentoo-aed75bf5efd81db64464a60207ebea49cb0bba76.tar.bz2
gentoo-aed75bf5efd81db64464a60207ebea49cb0bba76.zip
media-libs/openal: fix automagic dep on media-sound/sndio
Bug: https://bugs.gentoo.org/769122 Closes: https://bugs.gentoo.org/769098 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openal')
-rw-r--r--media-libs/openal/metadata.xml3
-rw-r--r--media-libs/openal/openal-1.21.1-r1.ebuild (renamed from media-libs/openal/openal-1.21.1.ebuild)4
2 files changed, 6 insertions, 1 deletions
diff --git a/media-libs/openal/metadata.xml b/media-libs/openal/metadata.xml
index c584b0dd21ee..a80658a8279e 100644
--- a/media-libs/openal/metadata.xml
+++ b/media-libs/openal/metadata.xml
@@ -5,6 +5,9 @@
<email>sound@gentoo.org</email>
<name>Gentoo Sound project</name>
</maintainer>
+ <use>
+ <flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag>
+ </use>
<upstream>
<remote-id type="github">kcat/openal-soft</remote-id>
</upstream>
diff --git a/media-libs/openal/openal-1.21.1.ebuild b/media-libs/openal/openal-1.21.1-r1.ebuild
index 477edb7b2128..abc96492de7a 100644
--- a/media-libs/openal/openal-1.21.1.ebuild
+++ b/media-libs/openal/openal-1.21.1-r1.ebuild
@@ -18,7 +18,7 @@ LICENSE="LGPL-2+ BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="
- alsa coreaudio debug jack oss portaudio pulseaudio sdl qt5
+ alsa coreaudio debug jack oss portaudio pulseaudio sdl sndio qt5
cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1
cpu_flags_arm_neon
"
@@ -34,6 +34,7 @@ RDEPEND="
dev-qt/qtwidgets:5
)
sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
+ sndio? ( media-sound/sndio[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}
oss? ( virtual/os-headers )"
@@ -53,6 +54,7 @@ src_configure() {
-DALSOFT_REQUIRE_PORTAUDIO=$(usex portaudio)
-DALSOFT_REQUIRE_PULSEAUDIO=$(usex pulseaudio)
-DALSOFT_REQUIRE_SDL2=$(usex sdl)
+ -DALSOFT_REQUIRE_SNDIO=$(usex sndio)
-DALSOFT_UTILS=$(multilib_is_native_abi && echo "ON" || echo "OFF")
-DALSOFT_NO_CONFIG_UTIL=$(usex qt5 "$(multilib_is_native_abi && echo "OFF" || echo "ON")" ON)
-DALSOFT_EXAMPLES=OFF