diff options
Diffstat (limited to 'media-libs/rtaudio/rtaudio-4.1.2.ebuild')
-rw-r--r-- | media-libs/rtaudio/rtaudio-4.1.2.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/media-libs/rtaudio/rtaudio-4.1.2.ebuild b/media-libs/rtaudio/rtaudio-4.1.2.ebuild new file mode 100644 index 000000000000..604a64003780 --- /dev/null +++ b/media-libs/rtaudio/rtaudio-4.1.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils autotools + +DESCRIPTION="A set of cross-platform C++ classes for realtime audio I/O" +HOMEPAGE="http://www.music.mcgill.ca/~gary/rtaudio/" +SRC_URI="http://www.music.mcgill.ca/~gary/${PN}/release/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+alsa doc jack pulseaudio static-libs" +REQUIRED_USE="|| ( alsa jack pulseaudio )" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + jack? ( + media-libs/alsa-lib + media-sound/jack-audio-connection-kit + ) + pulseaudio? ( media-sound/pulseaudio )" +DEPEND="${RDEPEND}" + +src_prepare() { + local PATCHES=( + "${FILESDIR}"/${P}-configure.patch + "${FILESDIR}"/${P}-cflags.patch + ) + + 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 doc/release.txt + if use doc ; then + dodoc -r doc/html + dodoc -r doc/images + fi + + prune_libtool_files +} |