summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-11-17 08:42:08 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-11-17 08:42:17 +0100
commita2e77ae36a11093230677359bf541d0afdc8c2f1 (patch)
tree6449bfed97236b499ba76ddd592fac32ffe36e85 /media-libs/rtaudio
parentdev-ada/gnatcoll-bindings: add subslot (diff)
downloadgentoo-a2e77ae36a11093230677359bf541d0afdc8c2f1.tar.gz
gentoo-a2e77ae36a11093230677359bf541d0afdc8c2f1.tar.bz2
gentoo-a2e77ae36a11093230677359bf541d0afdc8c2f1.zip
media-libs/rtaudio: bump to 5.2.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/rtaudio')
-rw-r--r--media-libs/rtaudio/Manifest1
-rw-r--r--media-libs/rtaudio/rtaudio-5.2.0.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/media-libs/rtaudio/Manifest b/media-libs/rtaudio/Manifest
index 7ef013b98bc9..35defda9daf1 100644
--- a/media-libs/rtaudio/Manifest
+++ b/media-libs/rtaudio/Manifest
@@ -1 +1,2 @@
DIST rtaudio-5.1.0.tar.gz 655613 BLAKE2B 9fee4a42a2fc040d3f8c8a18c4ef361bfd9cab22df189f6aff23098e299424d8cb4b54075f33ee4f1ab1f851125194228f65814838b091144431bd891a4c7dfe SHA512 221636cfac2286e17f1f2312be2094b6c89087230b95b649661f9ce91356c77fdd8996fd031f0895aba0b50e8091491cdf393a6aeee6f8508ed320180d8fccf6
+DIST rtaudio-5.2.0.tar.gz 247110 BLAKE2B 1949885c3cbb2846e083fd25ec06ed5ca716563dd4c121f6985e2487488d88b9ffb62078185fe2f4261083c8c1ed4c3e8502d25614767d70d2ab316d77f51eeb SHA512 34e78522778db13d95d4465d7c6a808a63b34d4e1bd0b88113b6390f7b192017e405d0d9ac8fbb1151129627688626d17569dc47da420f7b4631892eb1adff11
diff --git a/media-libs/rtaudio/rtaudio-5.2.0.ebuild b/media-libs/rtaudio/rtaudio-5.2.0.ebuild
new file mode 100644
index 000000000000..60e4cfba7baa
--- /dev/null
+++ b/media-libs/rtaudio/rtaudio-5.2.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A set of cross-platform C++ classes for realtime audio I/O"
+HOMEPAGE="https://www.music.mcgill.ca/~gary/rtaudio/"
+SRC_URI="https://github.com/thestk/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/6"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="+alsa doc jack pulseaudio static-libs"
+REQUIRED_USE="|| ( alsa jack pulseaudio )"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ jack? (
+ media-libs/alsa-lib
+ virtual/jack
+ )
+ pulseaudio? ( media-sound/pulseaudio )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.1.0-cflags.patch
+)
+
+src_prepare() {
+ default
+
+ # don't rebuild docs
+ export ac_cv_prog_DOXYGEN=
+
+ eautoreconf
+}
+
+src_configure() {
+ # OSS support requires OSSv4
+ local myconf=(
+ $(use_enable static-libs static)
+ $(use_with jack)
+ $(use_with alsa)
+ $(use_with pulseaudio pulse)
+ --without-oss
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ emake
+
+ if use doc; then
+ pushd doc
+ doxygen || die
+ popd
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc README.md doc/release.txt
+ if use doc; then
+ dodoc -r doc/html
+ dodoc -r doc/images
+ fi
+
+ find "${D}" -name "*.la" -delete
+}