[proaudio] [2657] media-sound/remid: import, virtual sid midi synth

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


Revision: 2657
Author:   gavlee
Date:     2013-04-04 18:51:36 +0200 (Thu, 04 Apr 2013)
Log Message:
-----------
media-sound/remid: import, virtual sid midi synth

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/remid/
    trunk/overlays/proaudio/media-sound/remid/ChangeLog
    trunk/overlays/proaudio/media-sound/remid/Manifest
    trunk/overlays/proaudio/media-sound/remid/files/
    trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-Makefile.patch
    trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-printf-include.patch
    trunk/overlays/proaudio/media-sound/remid/metadata.xml
    trunk/overlays/proaudio/media-sound/remid/remid-0.9.1.ebuild

Added: trunk/overlays/proaudio/media-sound/remid/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/ChangeLog	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/ChangeLog	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,11 @@
+# ChangeLog for media-sound/remid
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*remid-0.9.1 (04 Apr 2013)
+
+  04 Apr 2013; Gavin Pryke (gavlee) <gavinlee303@xxxxxxxxxxxxxx>
+  +remid-0.9.1.ebuild, +files/remid-0.9.1-Makefile.patch,
+  +files/remid-0.9.1-printf-include.patch, +metadata.xml:
+  import
+

Added: trunk/overlays/proaudio/media-sound/remid/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/Manifest	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/Manifest	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,6 @@
+AUX remid-0.9.1-Makefile.patch 1658 SHA256 e7955185f4c16dd9641095a162535c3443b549ca39b0e89cee06471ef163b493 SHA512 a0f30374913c2ca0a7afb88e918fca9e13b4d83818b1916f66150776cee034128511d962b9e93f9a0cb1172b88db99aa6bb795342fa4827aaeab550411e84f48 WHIRLPOOL 37c26c68ce1b89e938e93a61c76f48883acd037a8fb77ab8c2e6298cfdcedfc81022cd5792cbc87489be207b231d2d41185f6ae9231a16852f4295dd2d4dbbed
+AUX remid-0.9.1-printf-include.patch 564 SHA256 90686ed30a3c043e1dcffb22bec326939c15ad9929271b6887254ee3e92b0f78 SHA512 dc8fcf58aec3143ca21dbb6ea29d8d616f2cc8b5be54e3f7c6376e5c6301f01b359df50019e5a235b852a6191813c7f3f25f9534b459b4b38af2d932b66a3f55 WHIRLPOOL d37950e2343c59b881f75c06c690b8c856b78a9446e58486a16a37ac7e19c0383a5af2d6cf6eb444bfe93dccdbf9df3b57b1a4882e80eb1f6b4f7e4f7eb0763b
+DIST reMID-0.9.1.tar.gz 24569 SHA256 dc9b9bfacbe07415e70ed1e2d25893443444d03fc6b70ad8cff3b1b2ca73a95c SHA512 25764caafea6854c97ad2d31f5683aa5ac2a51a3b65830e5fe97c499be0de95fc66ddab75898ddc12bbf3f1fccc42c2e88beccae2a3994516766239610d45b98 WHIRLPOOL 0d97711a7765b4711ea601c8d8a0f262c23c8d18dc020c0bd48309fc594909df54cada40f16f66969d66f9569da614d7cbf4d36f61b9527bea36da73fa5d7e35
+EBUILD remid-0.9.1.ebuild 1387 SHA256 10b17598dc7f72638596b2e5ba17be2c4ed631affa90be81b17e53d858c86a86 SHA512 ae1bb7bdcae5b2b9888861bd72efda2d0de6dad2015869476199c469e1697b5f9869116b70aa9ed29d076f9f7201aba9e2d8c51dafb7f49856a3347a3094ea6d WHIRLPOOL b7a3d19d3d1652f601a10f872c73803d8bea561f6e8465d9acc39d537cc8a50518dc6c5bf5bb66a998325b5644211972d3165f9468267a74714fe8fa5d53b0bd
+MISC ChangeLog 337 SHA256 80c90ed3e318004b9719a5b1b4136c0a2e2786de73a9af0155dbbfc5b56563b6 SHA512 96c74be1429413e05b20e8648e7c97ed8f49a5d8b57a667a8556091ca294700f6c4c8dc538a84be649c04d917a1fd5906407ab02a4af5abf1af6ee178e749205 WHIRLPOOL 987e65dab43d8e846341deac4614c0cbb25110e19c28732688d08d3335b117db97a349f3e3b4e813474a48f96498c18729653aa9bf2bddc0e55e5e137a5b2d7f
+MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f

Added: trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-Makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-Makefile.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-Makefile.patch	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,76 @@
+From fee317b6265fb8d8ba8a678ac6f80da2e4812408 Mon Sep 17 00:00:00 2001
+From: "Gavin Pryke (gavlee)" <gavinlee303@xxxxxxxxxxxxxx>
+Date: Thu, 4 Apr 2013 14:37:11 +0100
+Subject: [PATCH 2/2] honour toolchain environment
+ (CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS)
+
+---
+ src/Makefile | 21 +++++++++++----------
+ 1 file changed, 11 insertions(+), 10 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 08fd550..ee2d710 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -8,39 +8,39 @@ APP=reMID
+ 
+ CC=gcc
+ 
+-CFLAGS= -g \
++CPPFLAGS+= \
+ 	$(shell pkg-config jack --cflags) \
+ 	$(shell pkg-config glib-2.0 --cflags)
+ 
+ ifeq ($(ALSA_MIDI), yes)
+-	CFLAGS+=-D ALSA_MIDI $(shell pkg-config alsa --cflags)
++	CPPFLAGS+=-D ALSA_MIDI $(shell pkg-config alsa --cflags)
+ endif
+ 
+ ifeq ($(JACK_MIDI), yes)
+-	CFLAGS+=-D JACK_MIDI
++	CPPFLAGS+=-D JACK_MIDI
+ endif
+ 
+-CPPFLAGS=-I/usr/include/resid
++CPPFLAGS+=-I/usr/include/resid
+ 
+-LDFLAGS= \
++LDLIBS= \
+ 	$(shell pkg-config jack --libs) \
+ 	$(shell pkg-config glib-2.0 --libs) \
+ 	-lstdc++
+ 
+ ifeq ($(ALSA_MIDI), yes)
+-	LDFLAGS+=$(shell pkg-config alsa --libs)
++	LDLIBS+=$(shell pkg-config alsa --libs)
+ endif
+ 
+-LIBS=-lresid
++LDLIBS+=-lresid
+ 
+ TARGETS=$(APP)
+ 
+ ifeq ($(GUI), yes)
+ 	GUI_OBJ=gui.o
+-	CFLAGS+=-DGUI \
++	CPPFLAGS+=-DGUI \
+ 		$(shell pkg-config gtk+-2.0 --cflags) \
+ 		$(shell pkg-config libglade-2.0 --cflags)
+-	LDFLAGS+= \
++	LDLIBS+= \
+ 		$(shell pkg-config gmodule-export-2.0 --libs) \
+ 		$(shell pkg-config libglade-2.0 --libs)
+ endif
+@@ -56,7 +56,8 @@ OBJS+=prefs.o
+ 
+ all: $(TARGETS)
+ 
+-$(APP): $(OBJS) $(LIBS)
++$(APP): $(OBJS)
++	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
+ 
+ clean:
+ 	rm -f $(TARGETS) *.o
+-- 
+1.8.1.5
+

Added: trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-printf-include.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-printf-include.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/files/remid-0.9.1-printf-include.patch	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,24 @@
+From 840bf3229de337b3a54c1f7f2b99156c54d64ef2 Mon Sep 17 00:00:00 2001
+From: "Gavin Pryke (gavlee)" <gavinlee303@xxxxxxxxxxxxxx>
+Date: Thu, 4 Apr 2013 04:08:45 +0100
+Subject: [PATCH 1/2] printf include
+
+---
+ src/sid_chips.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/sid_chips.cc b/src/sid_chips.cc
+index d130ebf..bbea1eb 100644
+--- a/src/sid_chips.cc
++++ b/src/sid_chips.cc
+@@ -5,6 +5,7 @@ using namespace std;
+ #include <math.h>
+ #include <alloca.h>
+ #include <cstdlib>
++#include <stdio.h>
+ 
+ #include "sid_instr.h"
+ #include "midi.h"
+-- 
+1.8.1.5
+

Added: trunk/overlays/proaudio/media-sound/remid/metadata.xml
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/metadata.xml	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/metadata.xml	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+	<maintainer>
+		<email>proaudio@xxxxxxxxxxxxx</email>
+		<name>pro-audio overlay team</name>
+	</maintainer>
+</pkgmetadata>

Added: trunk/overlays/proaudio/media-sound/remid/remid-0.9.1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/remid/remid-0.9.1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/remid/remid-0.9.1.ebuild	2013-04-04 16:51:36 UTC (rev 2657)
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit base toolchain-funcs
+
+DESCRIPTION="Real-time MIDI controllable virtual SID based synthesizer using the reSID emulation library"
+HOMEPAGE="http://gp2x.org/remid/";
+SRC_URI="http://gp2x.org/remid/reMID-${PV}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa gtk"
+
+RDEPEND="dev-libs/glib:2
+	media-libs/resid
+	media-sound/jack-audio-connection-kit
+	alsa? ( media-libs/alsa-lib )
+	gtk? ( gnome-base/libglade
+		   x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+S=${WORKDIR}/reMID-${PV}
+RESTRICT="mirror"
+
+DOCS=(README instruments.conf)
+
+PATCHES=(
+	"${FILESDIR}"/${P}-printf-include.patch
+	"${FILESDIR}"/${P}-Makefile.patch
+)
+
+src_prepare() {
+	base_src_prepare
+
+	# assumed to execute from source directory so will fail finding the glade
+	# file. the glade file is installed in src_install so this changes the
+	# source to reflect that. probably better done in Makefile or some other way
+	sed -i -e "s@reMID.glade@${EPREFIX}/usr/share/reMID/&@" src/gui.c || die
+}
+
+src_compile() {
+	base_src_make \
+		CC="$(tc-getCC)" \
+		CXX="$(tc-getCXX)" \
+		ALSA_MIDI=$(use alsa && echo yes || echo no) \
+		GUI=$(use gtk && echo yes || echo no)
+}
+
+src_install() {
+	dobin reMID
+
+	insinto /usr/share/reMID
+	doins reMID.glade
+
+	base_src_install_docs
+}


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