commit:     aed75bf5efd81db64464a60207ebea49cb0bba76
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 20:55:46 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 20:56:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed75bf5

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 <AT> gentoo.org>

 media-libs/openal/metadata.xml                                      | 3 +++
 media-libs/openal/{openal-1.21.1.ebuild => openal-1.21.1-r1.ebuild} | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/media-libs/openal/metadata.xml b/media-libs/openal/metadata.xml
index c584b0dd21e..a80658a8279 100644
--- a/media-libs/openal/metadata.xml
+++ b/media-libs/openal/metadata.xml
@@ -5,6 +5,9 @@
                <email>[email protected]</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
similarity index 93%
rename from media-libs/openal/openal-1.21.1.ebuild
rename to media-libs/openal/openal-1.21.1-r1.ebuild
index 477edb7b212..abc96492de7 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

Reply via email to