+++ /dev/null
---- rtaudio-4.1.2/configure.ac
-+++ rtaudio-4.1.2/configure.ac
-@@ -69,9 +69,9 @@
- AC_PROG_CXX(g++ CC c++ cxx)
- AM_PROG_AR
- AC_PATH_PROG(AR, ar, no)
--if [[ $AR = "no" ]] ; then
-- AC_MSG_ERROR("Could not find ar - needed to create a library");
--fi
-+AS_IF([test "x$AR" == "x" ], [
-+ AC_MSG_ERROR("Could not find ar - needed to create a library")
-+])
-
- # Initialize libtool
- LT_INIT([win32-dll])
-@@ -131,38 +130,41 @@
- ;;
-
- *-*-linux*)
-- AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (mac and linux only)], [
-+ AC_ARG_WITH([jack], AS_HELP_STRING([--with-jack], [choose JACK server support (mac and linux only)]))
-+ AS_IF([test "x$with_jack" != "xno"], [
- api="$api -D__UNIX_JACK__"
- AC_MSG_RESULT(using JACK)
- AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))
-- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))], )
-+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))])
-
- # Look for ALSA flag
-- AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)], [
-+ AC_ARG_WITH([alsa], AS_HELP_STRING([--with-alsa], [choose native ALSA API support (linux only)]))
-+ AS_IF([test "x$with_alsa" != "xno"], [
- api="$api -D__LINUX_ALSA__"
- req="$req alsa"
- AC_MSG_RESULT(using ALSA)
-- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], )
-+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))])
-
- # Look for PULSE flag
-- AC_ARG_WITH(pulse, [ --with-pulse = choose PulseAudio API support (linux only)], [
-+ AC_ARG_WITH([pulse], AS_HELP_STRING([--with-pulse], [choose PulseAudio API support (linux only)]))
-+ AS_IF([test "x$with_pulse" != "xno"], [
- api="$api -D__LINUX_PULSE__"
- req="$req libpulse-simple"
- AC_MSG_RESULT(using PulseAudio)
-- AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], )
-+ AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))])
-
- # Look for OSS flag
-- AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (linux only)], [
-+ AC_ARG_WITH([oss], AS_HELP_STRING([--with-oss], [choose OSS API support (linux only)]))
-+ AS_IF([test "x$with_oss" != "xno"], [
- api="$api -D__LINUX_OSS__"
-- AC_MSG_RESULT(using OSS)], )
-+ AC_MSG_RESULT(using OSS)])
-
- # If no audio api flags specified, use ALSA
-- if [test "$api" == "";] then
-+ AS_IF([test "x$api" == "x"], [
- AC_MSG_RESULT(using ALSA)
- AC_SUBST( api, [-D__LINUX_ALSA__] )
- req="$req alsa"
-- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))
-- fi
-+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))])
-
- AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
- ;;
+++ /dev/null
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils autotools ltprune
-
-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"
-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
- 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
-}
+++ /dev/null
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit ltprune 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
- media-sound/jack-audio-connection-kit
- )
- pulseaudio? ( media-sound/pulseaudio )"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.1.2-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 doc/release.txt
- if use doc; then
- dodoc -r doc/html
- dodoc -r doc/images
- fi
-
- prune_libtool_files
-}