diff options
Diffstat (limited to 'media-libs/rtaudio')
-rw-r--r-- | media-libs/rtaudio/Manifest | 1 | ||||
-rw-r--r-- | media-libs/rtaudio/files/rtaudio-5.1.0-cflags.patch | 17 | ||||
-rw-r--r-- | media-libs/rtaudio/rtaudio-5.1.0.ebuild | 62 |
3 files changed, 80 insertions, 0 deletions
diff --git a/media-libs/rtaudio/Manifest b/media-libs/rtaudio/Manifest index 629e8dfbed2d..fcd2ddd0311d 100644 --- a/media-libs/rtaudio/Manifest +++ b/media-libs/rtaudio/Manifest @@ -1,2 +1,3 @@ DIST rtaudio-4.1.2.tar.gz 682382 BLAKE2B ddfb0797db8ffef9a73b1af1864a7e9ec5028ff92473a82c8198fc0e8cce35e76ce820487b750988a91b7a519230659f446f2644288b0347c12c2f72b03fd45d SHA512 1e7f7f0f4dc451d023a7c8ab287fe63034cf6b4e18fe138bab253c307d6dd0cddb669b031f6c21325aaac0ce53002acd2a17dd1e47bd8ac2cb14e058cfce1a21 DIST rtaudio-5.0.0.tar.gz 615284 BLAKE2B ffb21042896b868b5368708594e050773ea23638e5eca8ea4c63204ee8ad3e433e26f1cc7f359a113df3a962dcaceaff72846346357c9e134c30dde89813cf0a SHA512 390b6c454c42cf066fa94af397b784430dadc1650de320be377b7bbd09eda8705936bff3ee4327358815c3d5247a38fead81c8778cd85db30a12a6ace742c84a +DIST rtaudio-5.1.0.tar.gz 655613 BLAKE2B 9fee4a42a2fc040d3f8c8a18c4ef361bfd9cab22df189f6aff23098e299424d8cb4b54075f33ee4f1ab1f851125194228f65814838b091144431bd891a4c7dfe SHA512 221636cfac2286e17f1f2312be2094b6c89087230b95b649661f9ce91356c77fdd8996fd031f0895aba0b50e8091491cdf393a6aeee6f8508ed320180d8fccf6 diff --git a/media-libs/rtaudio/files/rtaudio-5.1.0-cflags.patch b/media-libs/rtaudio/files/rtaudio-5.1.0-cflags.patch new file mode 100644 index 000000000000..0304c57b4dbc --- /dev/null +++ b/media-libs/rtaudio/files/rtaudio-5.1.0-cflags.patch @@ -0,0 +1,17 @@ +diff --git a/configure.ac b/configure.ac +index 43c054a..27a809a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -101,12 +101,10 @@ AS_CASE([${enable_debug}], + [ yes ], [ + AC_MSG_RESULT([yes]) + AC_DEFINE([__RTAUDIO_DEBUG__]) +- debugflags="${debugflags} -g -O0" + object_path=Debug + ], + [ no ], [ + AC_MSG_RESULT([no!]) +- debugflags="${debugflags} -O3" + ], [ + AC_MSG_RESULT([no]) + ]) diff --git a/media-libs/rtaudio/rtaudio-5.1.0.ebuild b/media-libs/rtaudio/rtaudio-5.1.0.ebuild new file mode 100644 index 000000000000..b58111fc01a0 --- /dev/null +++ b/media-libs/rtaudio/rtaudio-5.1.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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://www.music.mcgill.ca/~gary/${PN}/release/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/6" +KEYWORDS="~amd64 ~arm64 ~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}"/${P}-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_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 +} |