summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libsoundio')
-rw-r--r--media-libs/libsoundio/Manifest1
-rw-r--r--media-libs/libsoundio/libsoundio-2.0.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/media-libs/libsoundio/Manifest b/media-libs/libsoundio/Manifest
index 4a44b2910051..dfe8285ee198 100644
--- a/media-libs/libsoundio/Manifest
+++ b/media-libs/libsoundio/Manifest
@@ -1 +1,2 @@
DIST libsoundio-1.1.0.tar.gz 118672 BLAKE2B bafebad3a45cabca18cd1f73c4d8c2a404cacd5c1f23f333678300b4300eb1724faffd60caec7c35925f42c019d4a9bc51685892efb30cd259c2d3f84dae5d59 SHA512 3de35fa83395faea5e6f4478cd82d49615e470b09847fb076647664238e232ff3d4597ca7a07ce06012ae084f11e5d3903b42d8f4afe64c27b1a4b92d2081b5f
+DIST libsoundio-2.0.0.tar.gz 120387 BLAKE2B d4005667767633cf90fbf524cdf102c69e04e4e37cad55b4f9b1af7fb3f89f7b1a6ff47569c86bf5d86649fd34d9d080b8ed74d6da07c4155abadb3cad0797f0 SHA512 347a9be1789a41e778ea8d0efa1d00e03e725a4ab65e3aaf6c71e49138643f08a50a81bd60087d86a3b4d63beaeec617e47ba6b81f829ece8a3ac17418eb5309
diff --git a/media-libs/libsoundio/libsoundio-2.0.0.ebuild b/media-libs/libsoundio/libsoundio-2.0.0.ebuild
new file mode 100644
index 000000000000..33ece577af32
--- /dev/null
+++ b/media-libs/libsoundio/libsoundio-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-multilib
+
+DESCRIPTION="C library for cross-platform real-time audio input and output"
+HOMEPAGE="http://libsound.io/"
+SRC_URI="https://github.com/andrewrk/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa coreaudio examples jack pulseaudio static-libs"
+
+DEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ jack? ( virtual/jack[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_ALSA=$(usex alsa)
+ -DENABLE_COREAUDIO=$(usex coreaudio)
+ -DENABLE_JACK=$(usex jack)
+ -DENABLE_PULSEAUDIO=$(usex pulseaudio)
+ -DENABLE_WASAPI=no
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ -DBUILD_EXAMPLE_PROGRAMS=$(multilib_native_usex examples)
+ -DBUILD_TESTS=no
+ )
+ cmake-utils_src_configure
+}