[proaudio] [2287] Initial media-libs/rtmidi ebuild

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 2287
Author:   dominique
Date:     2012-11-11 16:15:54 +0100 (Sun, 11 Nov 2012)
Log Message:
-----------
Initial media-libs/rtmidi ebuild

Added Paths:
-----------
    trunk/overlays/proaudio/media-libs/rtmidi/
    trunk/overlays/proaudio/media-libs/rtmidi/ChangeLog
    trunk/overlays/proaudio/media-libs/rtmidi/Manifest
    trunk/overlays/proaudio/media-libs/rtmidi/files/
    trunk/overlays/proaudio/media-libs/rtmidi/files/rtmidi-2.0.1_buildsystem.patch
    trunk/overlays/proaudio/media-libs/rtmidi/rtmidi-2.0.1.ebuild

Added: trunk/overlays/proaudio/media-libs/rtmidi/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/rtmidi/ChangeLog	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/rtmidi/ChangeLog	2012-11-11 15:15:54 UTC (rev 2287)
@@ -0,0 +1,7 @@
+# ChangeLog for media-libs/rtmidi
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  11 Nov 2012: Dominique Michel <dominique_libre@xxxxxxxxxxxxxxx> Initial rtmidi ebuild:
+  +rtmidi-2.0.1.ebuild
+  +files/rtmidi-2.0.1_buildsystem.patch from Debian

Added: trunk/overlays/proaudio/media-libs/rtmidi/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/rtmidi/Manifest	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/rtmidi/Manifest	2012-11-11 15:15:54 UTC (rev 2287)
@@ -0,0 +1,4 @@
+AUX rtmidi-2.0.1_buildsystem.patch 4586 SHA256 af07a24f641379ee1d07173a27f6d33bb0c6139f8b52b000fb1a5e82c893d62f SHA512 d2737aa3a11f78a80842848b1519fed37d68aef990848d1e70bf57049079fb8e1c6356e97d94fb76de949f3dcb3868dc51a80704361a54a0c94c5311162b33d3 WHIRLPOOL 77f232e6ca78ba87a18b3db073f5be680143433c5be4bcda1cae4568b4bfb02c56f182855dc71b2c29130daaa0b87722120bd05491284bfb860f16a859dd6fc7
+DIST rtmidi-2.0.1.tar.gz 239394 SHA256 b5017a91df0c2bc4c0d5c6548ac5f9696c5bc0c202f6bec704563c6f6bec64ec SHA512 220c4f2085921fdc591b2f45e06cbb9b285e788b0784fdb05a571f19236ab26135d436cf484398d483ba2846a9551a4aa57fbb45008fe9b6511748525ffea9c5 WHIRLPOOL d13dcc2fc514acdfd0807f41a35d12622d894cfeeca372355cbe6f385beb036e1fbae56fb9eeb813867a1e040a008a29794286be1fb03be26a5a8641237f0fc1
+EBUILD rtmidi-2.0.1.ebuild 1159 SHA256 6aec8df8d8cc13e2297179039e655e1a8dc1161da8a8e985c15edba61ee3e240 SHA512 2e42bd03405ca6f08e02dc91d2b65b5f0d0ef4919b55916f1c019f0ac49dcb01f78c503c1a4190655171cedbfa8b0b9934dfb67d67af18a38353dc5b69a5a7f8 WHIRLPOOL 8f25a7ab024aacd0db530a64a23ba42cea6c079bd46eb1c222b938b449a2fde5d412b707529c73859aae2a72e4329c9b5828d384ce5cb3f25355c3f7d2b82df0
+MISC ChangeLog 282 SHA256 3bcff7e20d1bae82f19393cc1639a71d9a3e2c72ceeb570f208a587ba9dd1c31 SHA512 fdcf44dbc0c47e68d12ed687a33b08b3ca781013fe2b038bb0f3c1119f11fb4cbc11804ef85e88894f3834998423232a67a64d0537cee38c405aee9407ce0aa2 WHIRLPOOL 798a1ec4879a10aaeec2fb7d9e666b63cf8781baa500a21352447c4ab83fcd244711e5682757f400f58d0c1542b315c8c9313adbf15fe5eb0e54b98473f1b1bf

Added: trunk/overlays/proaudio/media-libs/rtmidi/files/rtmidi-2.0.1_buildsystem.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/rtmidi/files/rtmidi-2.0.1_buildsystem.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/rtmidi/files/rtmidi-2.0.1_buildsystem.patch	2012-11-11 15:15:54 UTC (rev 2287)
@@ -0,0 +1,168 @@
+---
+ Makefile.in  |   14 ++++++--------
+ RtMidi.cpp   |    4 ++--
+ RtMidi.h     |   14 ++++++++++++--
+ configure.ac |   15 +++++++++++----
+ rtmidi.pc.in |   14 ++++++++++++++
+ 5 files changed, 45 insertions(+), 16 deletions(-)
+
+--- /dev/null
++++ rtmidi/rtmidi.pc.in
+@@ -0,0 +1,14 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: rtmidi
++Description: Library for realtime MIDI input/output
++Version: @VERSION@
++URL: http://www.music.mcgill.ca/~gary/rtmidi/index.html
++Requires: @pc_requires@
++Conflicts:
++Libs: -L${libdir} -l@SONAME@
++Libs.private:
++Cflags: @api@
+--- rtmidi.orig/RtMidi.cpp
++++ rtmidi/RtMidi.cpp
+@@ -123,7 +123,7 @@ void RtMidiIn :: openMidiApi( RtMidi::Ap
+ #endif
+ }
+ 
+-RtMidiIn :: RtMidiIn( RtMidi::Api api, const std::string clientName, unsigned int queueSizeLimit )
++extern RTMIDI_DLL_PUBLIC RtMidiIn :: RtMidiIn( RtMidi::Api api, const std::string clientName, unsigned int queueSizeLimit )
+ {
+   rtapi_ = 0;
+ 
+@@ -197,7 +197,7 @@ void RtMidiOut :: openMidiApi( RtMidi::A
+ #endif
+ }
+ 
+-RtMidiOut :: RtMidiOut( RtMidi::Api api, const std::string clientName )
++extern RTMIDI_DLL_PUBLIC RtMidiOut :: RtMidiOut( RtMidi::Api api, const std::string clientName )
+ {
+   rtapi_ = 0;
+ 
+--- rtmidi.orig/RtMidi.h
++++ rtmidi/RtMidi.h
+@@ -45,6 +45,16 @@
+ #ifndef RTMIDI_H
+ #define RTMIDI_H
+ 
++#if defined _WIN32 || defined __CYGWIN__
++  #define RTMIDI_DLL_PUBLIC
++#else
++  #if __GNUC__ >= 4
++    #define RTMIDI_DLL_PUBLIC __attribute__( (visibility( "default" )) )
++  #else
++    #define RTMIDI_DLL_PUBLIC
++  #endif
++#endif
++
+ #include "RtError.h"
+ #include <string>
+ #include <vector>
+@@ -131,7 +141,7 @@ class RtMidi
+ class MidiInApi;
+ class MidiOutApi;
+ 
+-class RtMidiIn : public RtMidi
++class RTMIDI_DLL_PUBLIC RtMidiIn : public RtMidi
+ {
+  public:
+ 
+@@ -246,7 +256,7 @@ class RtMidiIn : public RtMidi
+ */
+ /**********************************************************************/
+ 
+-class RtMidiOut : public RtMidi
++class RTMIDI_DLL_PUBLIC RtMidiOut : public RtMidi
+ {
+  public:
+ 
+--- rtmidi.orig/Makefile.in
++++ rtmidi/Makefile.in
+@@ -6,29 +6,27 @@ LN = /bin/ln
+ 
+ OBJECTS	= RtMidi.o
+ 
+-STATIC = librtmidi.a
+ SHARED = @sharedlib@
+-RELEASE = 2.0.0
++RELEASE = 2.0.1
+ MAJOR = 1
+-LIBRARIES = $(STATIC) $(SHARED)
++LIBRARIES = $(SHARED)
+ 
+ CC       = @CXX@
+ AR       = @AR@
+ RANLIB   = @RANLIB@
+ 
+ DEFS     = @CPPFLAGS@
+-CFLAGS   = @CXXFLAGS@ -Iinclude -fPIC
++CFLAGS   += @CXXFLAGS@ -Iinclude -fPIC
+ 
+ all : $(LIBRARIES)
+ 
+-tests:
++check:
+ 	cd tests && $(MAKE) all
+ 
+ $(LIBRARIES): $(OBJECTS)
+-	$(AR) ruv $(STATIC) $(OBJECTS)
+-	ranlib $(STATIC)
+ 	$(CC) -fPIC @libflags@ $(OBJECTS) @LIBS@
+-	$(LN) -sf @sharedname@ $(SHARED)
++	$(LN) -s @sharedname@.$(RELEASE) $(SHARED)
++	$(LN) -s @sharedname@.$(RELEASE) $(SHARED).$(MAJOR)
+ 
+ #	$(CC) -shared $(OBJECTS) -o $(SHARED) @LIBS@
+ 
+--- rtmidi.orig/configure.ac
++++ rtmidi/configure.ac
+@@ -1,5 +1,6 @@
+ # Process this file with autoconf to produce a configure script.
+ AC_INIT(RtMidi, 2.0, gary@xxxxxxxxxxxxxxx, rtmidi)
++AC_SUBST(VERSION, [2.0.1])
+ AC_CONFIG_AUX_DIR(config)
+ AC_CONFIG_SRCDIR(RtMidi.cpp)
+ AC_CONFIG_FILES(rtmidi-config Makefile tests/Makefile)
+@@ -44,8 +45,8 @@ CXXFLAGS="$CXXFLAGS $cxxflag"
+ AC_CANONICAL_HOST
+ 
+ AC_SUBST( sharedlib, ["librtmidi.so"] )
+-AC_SUBST( sharedname, ["librtmidi.so.\$(RELEASE)"] )
+-AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(RELEASE)"] )
++AC_SUBST( sharedname, ["librtmidi.so.\$(MAJOR)"] )
++AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(MAJOR).\$(RELEASE)"] )
+ case $host in
+   *-apple*)
+   AC_SUBST( sharedlib, ["librtmidi.dylib"] )
+@@ -54,13 +55,19 @@ case $host in
+ esac
+ 
+ AC_SUBST( api, [""] )
++AC_SUBST( pc_requires, [""] )
+ AC_MSG_CHECKING(for MIDI API)
+ case $host in
+   *-*-linux*)
+   AC_ARG_WITH(jack, [  --with-jack = choose JACK server support (mac and linux only)], [
+   api="$api -D__UNIX_JACK__"
++  pc_requires="$pc_requires"
+   AC_MSG_RESULT(using JACK)
+-  AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))], )
++  AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))
++  AC_SUBST(PC_FILE, [rtmidi.pc])
++  AC_SUBST(pc_requires, [jack])
++  AC_SUBST(SONAME, [rtmidi])
++  AC_CONFIG_FILES($PC_FILE:rtmidi.pc.in)] , )
+ 
+   # Look for ALSA flag
+   AC_ARG_WITH(alsa, [  --with-alsa = choose native ALSA sequencer API support (linux only)], [
+@@ -136,4 +143,4 @@ CPPFLAGS="$CPPFLAGS $api"
+ 
+ AC_OUTPUT
+ 
+-chmod oug+x rtmidi-config
+\ No newline at end of file
++chmod oug+x rtmidi-config

Added: trunk/overlays/proaudio/media-libs/rtmidi/rtmidi-2.0.1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/rtmidi/rtmidi-2.0.1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/rtmidi/rtmidi-2.0.1.ebuild	2012-11-11 15:15:54 UTC (rev 2287)
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="RtMidi provide a common C++ API for realtime MIDI input/output across ALSA and JACK."
+HOMEPAGE="http://www.music.mcgill.ca/~gary/rtmidi/";
+SRC_URI="www.music.mcgill.ca/~gary/rtmidi/release/rtmidi-2.0.1.tar.gz"
+
+LICENSE="Rt-Midi"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+alsa doc +jack"
+RDEPEND="alsa? ( media-libs/alsa-lib )
+	jack? ( media-sound/jack-audio-connection-kit )"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}_buildsystem.patch"
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+	$(use_with alsa) \
+	$(use_with jack) || die "./configure failed"
+}
+
+src_compile() {
+	emake -j1 || die "make failed"
+}
+
+src_install() {
+	dodoc readme
+	if use doc; then
+		dodoc doc/release.txt
+		dohtml doc/html/*
+	fi
+	dolib.so librtmidi.so.1.2.0.1
+	dosym "librtmidi.so.1.2.0.1" "/usr/$(get_libdir)/librtmidi.so"
+	dosym "librtmidi.so.1.2.0.1" "/usr/$(get_libdir)/librtmidi.so.1"
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins rtmidi.pc
+	insinto /usr/include
+	doins RtMidi.h RtError.h
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/