parent
e7c37d3495
commit
85d66b2262
@ -0,0 +1,8 @@
|
||||
AUX rtaudio-4.0.11-cflags.patch 977 SHA256 24561d3814ab1387af4caa2a49f56018502e987355e98fbd88b5a035c920382b SHA512 7295c7ab58dfb2c685a5a740d338e42daa550da09969a5a1c2a8897c832b497774457b5dc1cb9f1b8203e12edc2fb56b2e1e787d0fccd21873c1c20fe843b37b WHIRLPOOL 8abfb7e19a4c94a85229fb5a850360045228a92acba1522cd28a3a829f5b11fdd83b82dfcd38dff5c7b02018ea40742234abe0925b88483e6540d4dca2e84a50
|
||||
AUX rtaudio-4.0.12-configure.patch 3067 SHA256 080cc8bfef1d3a7f93db221bde8a06288d7d9a8cf591c32e1ece11b9419467ba SHA512 15b9e2855fac77a612b6a61f5005a9c5ce3f5f26b5c79be440372ddd450dbc06750fa8ea7bcc935138ee6b2511eecd2db10bc42153fc53699a7dc9db284e5ac5 WHIRLPOOL 9c9c238f805a53027653dbd6a85e3cc080e380913a73097f306949ced25a4d2380fdec915607560bec9ca25e4ab15baea0a66d47f76f6d0dd33f7e6f76049b41
|
||||
AUX rtaudio-4.0.12-makefile.patch 387 SHA256 70326583122dddd62a525c9a4cef10a837c9be08be0d489904a707ff9b960122 SHA512 d9af95399ce9b76adf532c8febd7543a0aacedc6b3ba214fa0e53c0dc607ebb086762442330d07dc182c8d96e5de834c016798b9b6c4eefab8c96a06332cd207 WHIRLPOOL d60e5e1f4703cffeb43da494e81398e35f9fd815d81b7b3009a2993b80143f2674151dc91bb40ed34182508166fac97d26f3b071003c67a5660dd1874579939b
|
||||
AUX rtaudio-4.1.2-cflags.patch 405 SHA256 3c9360f1286c33bd061ec6b24a1c663828c8c94892ac2cfc8ba7a0d69ba3dc6c SHA512 6958533ff2a33bd5e1daf18206ffa816d279b9f39993cbd3987148228099f08910df0e243dbdd1112bdcd6e8fe554dbea9dfc79ef9217695c76996c817310375 WHIRLPOOL 80071e19c77328b7685d163fdbb4c65d33c7830c6f52644cee987f6d2581002044c09646f008f709163089c5588cc84577c8f63d1d8e9c9ee7db3cd5781ce144
|
||||
AUX rtaudio-4.1.2-configure.patch 3054 SHA256 f09e86107620836d3eca69b7fd67d3036d4915161188548620f495aa57173514 SHA512 d359742fa55d7d188a0032f512165cb73300fff3e85e03221a7b30340941fab5149645fe8683cad79f26c5ebdcfcef1a591cc16d0096fb0d5a699e6e7a819ed9 WHIRLPOOL 7e73539d4d104b276161fee999ad13197cd796eb87b8e668b57411661f9ec96e44cb3a01222bdf04d3ea3cbcd19955bef97b591cd96b3a5663d87e25ddcacb21
|
||||
DIST rtaudio-5.0.0.tar.gz 615284 SHA256 799deae1192da52cc2c15a078ed3b42449580be7d096fe9bc841c5bba0289c57 SHA512 390b6c454c42cf066fa94af397b784430dadc1650de320be377b7bbd09eda8705936bff3ee4327358815c3d5247a38fead81c8778cd85db30a12a6ace742c84a WHIRLPOOL da2f9da5d24d3d427695fc1be017063e437c71c5216bc140b839bf4201af2c3733b438daf5cedd14e9a01946b03d6a72e0551b4fe131e0844a1450bdd2109617
|
||||
EBUILD rtaudio-5.0.0.ebuild 1152 SHA256 98bdca0647decf93d7127a745a9295f2637eecc4057101c37c3c6801520cef7b SHA512 b5dc11f7535c915da637b017c747af03b5fe923f93aa22434862a2aa35d1beb7badd688a71f02b1bb7d39091f169830149b5996585b777f2ce94a9caa3677b6f WHIRLPOOL 9ab99352ffe29fbf0c44df56616ceacfa77caae0ba8ade38c0b5df31e77a4d22e1a45624a6184e2db852b11ab3c39fd523e7633008ebb2f06d13f2aad37a3794
|
||||
MISC metadata.xml 264 SHA256 66aae4b23ca6dd2a02872f22e752ec3d9d10263f8f633d17939da3954cdd548d SHA512 37840f10f81322125f3d9103c3138ca9bd6def621729ee0e3c773e82c2834ff0aca0af10447b5fa7dde324546416606a7b5fd4fb1b9de76ac7fbf21dde6bb53b WHIRLPOOL c06c0e906cacb6f88336cbde310f7152a81f5ac45ae7ea60a06ff3e573dece66fda50bed44a92b60239601a1611d0f9fcc1a15f8ecb0b094c8433390ac82070b
|
@ -0,0 +1,24 @@
|
||||
--- rtaudio-4.0.11/configure.ac
|
||||
+++ rtaudio-4.0.11/configure.ac
|
||||
@@ -23,8 +23,8 @@
|
||||
AC_MSG_CHECKING(whether to compile debug version)
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug = enable various debug output],
|
||||
- [AC_SUBST( cppflag, [-D__RTAUDIO_DEBUG__] ) AC_SUBST( cxxflag, [-g] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)],
|
||||
- [AC_SUBST( cppflag, [] ) AC_SUBST( cxxflag, [-O2] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)])
|
||||
+ [AC_SUBST( cppflag, [-D__RTAUDIO_DEBUG__] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)],
|
||||
+ [AC_SUBST( cppflag, [] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)])
|
||||
|
||||
|
||||
# Checks for functions
|
||||
@@ -33,10 +33,6 @@
|
||||
# For -I and -D flags
|
||||
CPPFLAGS="$CPPFLAGS $cppflag"
|
||||
|
||||
-# For debugging and optimization ... overwrite default because it has both -g and -O2
|
||||
-#CXXFLAGS="$CXXFLAGS $cxxflag"
|
||||
-CXXFLAGS="$cxxflag"
|
||||
-
|
||||
# Check compiler and use -Wall if gnu.
|
||||
if [test $GXX = "yes" ;] then
|
||||
AC_SUBST( cxxflag, [-Wall] )
|
@ -0,0 +1,73 @@
|
||||
--- rtaudio-4.0.12/configure.ac
|
||||
+++ rtaudio-4.0.12/configure.ac
|
||||
@@ -25,9 +25,9 @@
|
||||
AC_PROG_CXX(g++ CC c++ cxx)
|
||||
AC_PROG_RANLIB
|
||||
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")
|
||||
+])
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
@@ -83,39 +83,46 @@
|
||||
;;
|
||||
|
||||
*-*-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)
|
||||
PKG_CHECK_MODULES([PULSE], [libpulse-simple], , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))
|
||||
- LIBS="$LIBS `pkg-config --libs libpulse-simple`" ], )
|
||||
+ LIBS="$LIBS `pkg-config --libs libpulse-simple`" ])
|
||||
|
||||
# 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!))
|
||||
;;
|
@ -0,0 +1,16 @@
|
||||
--- rtaudio-4.0.12/Makefile.in
|
||||
+++ rtaudio-4.0.12/Makefile.in
|
||||
@@ -24,9 +24,11 @@
|
||||
tests:
|
||||
cd tests && $(MAKE) all
|
||||
|
||||
-$(LIBRARIES): $(OBJECTS)
|
||||
+$(STATIC): $(OBJECTS)
|
||||
$(AR) ruv $(STATIC) $(OBJECTS)
|
||||
- ranlib $(STATIC)
|
||||
+ $(RANLIB) $(STATIC)
|
||||
+
|
||||
+$(SHARED): $(OBJECTS)
|
||||
$(CC) -fPIC @libflags@ $(OBJECTS) @LIBS@
|
||||
$(LN) -sf @sharedname@ $(SHARED)
|
||||
$(LN) -sf @sharedname@ $(SHARED).$(MAJOR)
|
@ -0,0 +1,12 @@
|
||||
--- rtaudio-4.1.2/configure.ac
|
||||
+++ rtaudio-4.1.2/configure.ac
|
||||
@@ -62,8 +62,7 @@
|
||||
AC_MSG_CHECKING(whether to compile debug version)
|
||||
AC_ARG_ENABLE(debug,
|
||||
[AS_HELP_STRING([--enable-debug],[enable various debug output])],
|
||||
- [: ${CXXFLAGS="-g -O0"};] [AC_DEFINE([__RTAUDIO_DEBUG__])],
|
||||
- [: ${CXXFLAGS="-O3"}])
|
||||
+ [AC_DEFINE([__RTAUDIO_DEBUG__])], )
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CXX(g++ CC c++ cxx)
|
@ -0,0 +1,68 @@
|
||||
--- 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!))
|
||||
;;
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>webmaster@gentoostudio.org</email>
|
||||
<name>Gentoo Studio/Damien Moody</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# 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 ~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}-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
|
||||
}
|
Loading…
Reference in new issue