summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-11-27 07:35:52 +0000
committerTim Harder <radhermit@gentoo.org>2012-11-27 07:35:52 +0000
commitcac67913dfb107756a173b9a0a15909feb45ab87 (patch)
tree1b84a5eb1038d3463960d4d3fa7e7614eb1a56f0 /media-libs
parentVersion bump with some minor fixes. Drop old. (diff)
downloadgentoo-2-cac67913dfb107756a173b9a0a15909feb45ab87.tar.gz
gentoo-2-cac67913dfb107756a173b9a0a15909feb45ab87.tar.bz2
gentoo-2-cac67913dfb107756a173b9a0a15909feb45ab87.zip
Initial import, ebuild by me.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/rtaudio/ChangeLog11
-rw-r--r--media-libs/rtaudio/Manifest7
-rw-r--r--media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch24
-rw-r--r--media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch51
-rw-r--r--media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch21
-rw-r--r--media-libs/rtaudio/metadata.xml5
-rw-r--r--media-libs/rtaudio/rtaudio-4.0.11.ebuild56
7 files changed, 175 insertions, 0 deletions
diff --git a/media-libs/rtaudio/ChangeLog b/media-libs/rtaudio/ChangeLog
new file mode 100644
index 000000000000..f72a784492b0
--- /dev/null
+++ b/media-libs/rtaudio/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-libs/rtaudio
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/rtaudio/ChangeLog,v 1.1 2012/11/27 07:35:52 radhermit Exp $
+
+*rtaudio-4.0.11 (27 Nov 2012)
+
+ 27 Nov 2012; Tim Harder <radhermit@gentoo.org> +rtaudio-4.0.11.ebuild,
+ +files/rtaudio-4.0.11-cflags.patch, +files/rtaudio-4.0.11-configure.patch,
+ +files/rtaudio-4.0.11-makefile.patch, +metadata.xml:
+ Initial import, ebuild by me.
+
diff --git a/media-libs/rtaudio/Manifest b/media-libs/rtaudio/Manifest
new file mode 100644
index 000000000000..ca150da78c55
--- /dev/null
+++ b/media-libs/rtaudio/Manifest
@@ -0,0 +1,7 @@
+AUX rtaudio-4.0.11-cflags.patch 977 SHA256 24561d3814ab1387af4caa2a49f56018502e987355e98fbd88b5a035c920382b SHA512 7295c7ab58dfb2c685a5a740d338e42daa550da09969a5a1c2a8897c832b497774457b5dc1cb9f1b8203e12edc2fb56b2e1e787d0fccd21873c1c20fe843b37b WHIRLPOOL 8abfb7e19a4c94a85229fb5a850360045228a92acba1522cd28a3a829f5b11fdd83b82dfcd38dff5c7b02018ea40742234abe0925b88483e6540d4dca2e84a50
+AUX rtaudio-4.0.11-configure.patch 2251 SHA256 9162994677a7fd03d2e228967d4b1f5c092c13d24996f162c601349bbe521316 SHA512 a0dbd05c0c46f17b54b0801dfd715b22c923076987d881f25115381598dbbb24f0c876ba5db405250b48b2c69612f90fe8cd5e716f97e88327ce04ccf0aaae09 WHIRLPOOL ce2af6fbd348e726cea1f400826721334fc69ae836a3efa22dd49780fdb4c77bb2d98767c9661b2f7eed103e646bf6df4d28405638eda376c95802766f2a5d3c
+AUX rtaudio-4.0.11-makefile.patch 491 SHA256 02c2a4303fef86383012b085c6b592a7d0cfcb68d99947594d9e7f7aaa01ee5b SHA512 bf2626a53718a00d005027853d4120d7e054da97993f87a47d95760927e72ed7457c99836a5be71404bab542ba0efba6834e7f7423c1d0529a42eb56a0845d1f WHIRLPOOL beb5d466253d02e9195f892da7d49813180eb95895246137f736d306df918725ae8840e633b08cf6963fc6984a4448a190d2eb345bde869cbb0960981281d683
+DIST rtaudio-4.0.11.tar.gz 313295 SHA256 1167ebd33515c064cd7c2d7c7b44f34998ab016a182c1874d70790163eced311 SHA512 92611b9bba4984c6e29670b54d47ac474d884efab364bc2760876c8555b4e152845bd3763028497482a002282761be8e80f8f6aa775933ef7db9d8a13239770a WHIRLPOOL 982e884bb1ec09b228c1c12f76ed80c1d65fd145140e737510efc78d58b213bf56cdcc5e7c10484b7be1eb0e135b28ab5c32fe6f551645463a11e7e664932830
+EBUILD rtaudio-4.0.11.ebuild 1213 SHA256 8203714180698a1416694deaf3455cc204e29014ea59219a0734a77922803fb3 SHA512 55ba815be297a4f9e71e50c938dc1c4b6ac22ce8e84613d3fda843548b331b76487567200125b636cab4c386a2fda66c425659b9e02395fd4f2672fc89b15226 WHIRLPOOL 89eb3eed9398d0e58819791535d93c05ab44f7e7945161660732c0497c7137b11d3d20ad70c7e7d61b6de0a855d07d2c62c5dc513e1b5dc86826d379041901c4
+MISC ChangeLog 388 SHA256 1ca344ad21d0fd41190682bb39453cb76c2cc11ab4d738917051b44697d5362d SHA512 9db089a4968fd287fca3fa70ce1110dfdf8c7312c040394d211e8e909d4d8e4fed0699384ce5ea8d594a3226596cb18ec6866851ab2ef93a5486a70aadb9509d WHIRLPOOL b5354d17b2e2adc91c2eee7848d00f316a8f99815b6a6fddc2e0071d5c800c1fd0cfe802727bd928733caaa71553f6abc462a6aa12000a15200a372562f0403b
+MISC metadata.xml 161 SHA256 0ba191421eefd954d1efe9f6c3384e8c8d7455d35a7e79457272e1c29211b09e SHA512 e9f8695c64d7b6aa86b9b6186490d50b5a75d593ac1c86b9698265c6345899c64fa712acdde3bdbfb2464139e44623efdae29b67b73c1c85bcbedfbd10e874fd WHIRLPOOL c01ec8b583f907a3a62da7d5bf74d09809244709021f437dc3f0064b2d52baa3dd4386369b46a9fd74020146017cf6117ad04b147e8538b1a2c7202e1b4a2dd5
diff --git a/media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch b/media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch
new file mode 100644
index 000000000000..9fa657929c21
--- /dev/null
+++ b/media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch
@@ -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] )
diff --git a/media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch b/media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch
new file mode 100644
index 000000000000..55862e2782ca
--- /dev/null
+++ b/media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch
@@ -0,0 +1,51 @@
+--- rtaudio-4.0.11/configure.ac
++++ rtaudio-4.0.11/configure.ac
+@@ -68,28 +68,40 @@
+ ;;
+
+ *-*-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__"
+ 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__"
+ AC_MSG_RESULT(using PulseAudio)
+- AC_CHECK_LIB(pulse-simple, pa_simple_new, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], )
++ AC_CHECK_LIB(pulse-simple, pa_simple_new, , 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
diff --git a/media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch b/media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch
new file mode 100644
index 000000000000..af1c88e7d11c
--- /dev/null
+++ b/media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch
@@ -0,0 +1,21 @@
+--- rtaudio-4.0.11/Makefile.in
++++ rtaudio-4.0.11/Makefile.in
+@@ -24,13 +24,14 @@
+ 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) -s @sharedname@ $(SHARED)
+-
+-# $(CC) -shared $(OBJECTS) -o $(SHARED) @LIBS@
++ $(LN) -s @sharedname@ $(SHARED).$(MAJOR)
+
+ %.o : %.cpp
+ $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@
diff --git a/media-libs/rtaudio/metadata.xml b/media-libs/rtaudio/metadata.xml
new file mode 100644
index 000000000000..0dc3775f83d7
--- /dev/null
+++ b/media-libs/rtaudio/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proaudio</herd>
+</pkgmetadata>
diff --git a/media-libs/rtaudio/rtaudio-4.0.11.ebuild b/media-libs/rtaudio/rtaudio-4.0.11.ebuild
new file mode 100644
index 000000000000..2c772cb5c4e3
--- /dev/null
+++ b/media-libs/rtaudio/rtaudio-4.0.11.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/rtaudio/rtaudio-4.0.11.ebuild,v 1.1 2012/11/27 07:35:52 radhermit Exp $
+
+EAPI=5
+
+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"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ pulseaudio? ( media-sound/pulseaudio )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${P}-configure.patch
+
+ if ! use static-libs ; then
+ sed -i '/^LIBRARIES =/s/$(STATIC)//' Makefile.in || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ # OSS support requires OSSv4
+ econf \
+ --without-oss \
+ $(use_with alsa) \
+ $(use_with jack) \
+ $(use_with pulseaudio pulse)
+}
+
+src_install() {
+ dolib.so librtaudio.so*
+ use static-libs && dolib.a librtaudio.a
+
+ dobin rtaudio-config
+ doheader *.h
+ dodoc readme doc/release.txt
+
+ if use doc ; then
+ dohtml -r doc/html/*
+ dodoc -r doc/images
+ fi
+}