app-admin/awscli: Bump to 1.37.9
[gentoo/gentoo.git] / media-libs / libsoundio / libsoundio-2.0.0-r1.ebuild
blob6f226175aee8480a10a8804d17bb7ab4be0826f1
1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit cmake-multilib
8 DESCRIPTION="C library for cross-platform real-time audio input and output"
9 HOMEPAGE="http://libsound.io/"
10 SRC_URI="https://github.com/andrewrk/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="MIT"
13 SLOT="0/2"
14 KEYWORDS="amd64 ~arm64 x86"
15 IUSE="alsa coreaudio examples jack pulseaudio static-libs"
17 DEPEND="
18         alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
19         jack? ( virtual/jack[${MULTILIB_USEDEP}] )
20         pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
22 RDEPEND="${DEPEND}"
24 multilib_src_configure() {
25         local mycmakeargs=(
26                 -DENABLE_ALSA=$(usex alsa)
27                 -DENABLE_COREAUDIO=$(usex coreaudio)
28                 -DENABLE_JACK=$(usex jack)
29                 -DENABLE_PULSEAUDIO=$(usex pulseaudio)
30                 -DENABLE_WASAPI=no
31                 -DBUILD_STATIC_LIBS=$(usex static-libs)
32                 -DBUILD_EXAMPLE_PROGRAMS=$(multilib_native_usex examples)
33                 -DBUILD_TESTS=no
34         )
35         cmake_src_configure