[proaudio] [1255] bump & fix stk

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


Revision: 1255
Author:   gimpel
Date:     2008-07-16 14:45:27 +0200 (Wed, 16 Jul 2008)

Log Message:
-----------
bump & fix stk

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/stk/ChangeLog
    trunk/overlays/proaudio/media-sound/stk/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-cflags-lib.patch
    trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-fpic.patch
    trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-gcc43.patch
    trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-missing.patch
    trunk/overlays/proaudio/media-sound/stk/stk-4.3.1.ebuild


Modified: trunk/overlays/proaudio/media-sound/stk/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/ChangeLog	2008-07-15 10:54:38 UTC (rev 1254)
+++ trunk/overlays/proaudio/media-sound/stk/ChangeLog	2008-07-16 12:45:27 UTC (rev 1255)
@@ -1,7 +1,13 @@
 # ChangeLog for media-sound/stk
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  16 Jul 2008; Thomas Kuther <gimpel@xxxxxxxxxxxxxxxx>
+  +files/stk-4.3.1-cflags-lib.patch, +files/stk-4.3.1-fpic.patch,
+  +files/stk-4.3.1-gcc43.patch, +files/stk-4.3.1-missing.patch,
+  +stk-4.3.1.ebuild:
+  version bump, add various patches
+
   17 Dec 2007; Thomas Kuther <gimpel@xxxxxxxxxxxxxxxx> ChangeLog:
   added a changelog
 

Modified: trunk/overlays/proaudio/media-sound/stk/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/Manifest	2008-07-15 10:54:38 UTC (rev 1254)
+++ trunk/overlays/proaudio/media-sound/stk/Manifest	2008-07-16 12:45:27 UTC (rev 1255)
@@ -1,4 +1,10 @@
+AUX stk-4.3.1-cflags-lib.patch 1687 RMD160 d81cc35b588f48b3fc0b624efe2871134956c81e SHA1 9176b2a49e45a21d247b184e53ec7a8d1f7aecd4 SHA256 ae1a1bca7d4f4ba0f94e61ef52c525b024e684f1ab4df701f5265b24c0644d92
+AUX stk-4.3.1-fpic.patch 1327 RMD160 f8bb978968cd194e80cb099fb33bd479dcea7fb0 SHA1 86858582fb8d235d0aaa16fc29e0d7c88255be2f SHA256 d1215c76d362298c530dfcd1e0ca3a3b4c19a9b84c60129549919cea2f9c0e95
+AUX stk-4.3.1-gcc43.patch 8066 RMD160 db8cbe250fc36f3855c22a7449e0b90b29e2e372 SHA1 265a9f591b86fcc55e17c625bba82232a79cbf40 SHA256 ddd36ac2a288d363d57ec1960ec9be68f01282131dd7b90b3be2d2e124274d43
+AUX stk-4.3.1-missing.patch 184 RMD160 7934473e75e5dfb7a7abbaba321b0ac24d6ad485 SHA1 306fdf8dbe2f265dfc3a983d851c26915ecac413 SHA256 413f49d39320c4c5af3da6c45f2927fc75eac101cd64c8d0fcc1a054907ed3cb
 DIST stk-4.3.0.tar.gz 2015826 RMD160 6c363ffe6e9914791a88262020a8870b62a36483 SHA1 3274d88765bce69d2f2edf0b4cd00e17a5b43385 SHA256 dcc064c393d88fdf912d8df4c37dcbbb4e83019890990faa198a0d106932bd8b
+DIST stk-4.3.1.tar.gz 1952667 RMD160 f0cde3c13af08f4ae58174272bfd09df6f00fec1 SHA1 56922c001f9fc8f7c5cefe5f0c2e64ffa273dffe SHA256 e87fae4fe4e4681185afb752f5ce90cf8fcf16600a0c76d025a3f638be32cee0
 EBUILD stk-4.3.0.ebuild 1521 RMD160 ac2d32e5dbbc8cd714a45436563e40dc77da22f1 SHA1 d91775bbab60059c9be05bb215f0bc34ff3c2dc0 SHA256 0c9be10615e819312529d7b502f92c98e1b106985958fb2ea055fd085d91dd5b
-MISC ChangeLog 203 RMD160 399fcca9f008c776e7ad35578ce7e0c8145c95f1 SHA1 27441ab6ceda4db2c48ce3a288f9a66e5a3ac0e5 SHA256 d07540550ff27524b9b374d333927365458bd0a7091b64c41ea6dc8e72213495
+EBUILD stk-4.3.1.ebuild 1766 RMD160 47f6510d0697008fb3e435b6774e7ea5c8a6c20c SHA1 d0bdec2989283c214e17dd39e5de601d84e7afef SHA256 2782821abbbfa12e5c3f05b95edad330e3e8a267635dcb8449a9a47dec29e4d6
+MISC ChangeLog 446 RMD160 5c2005e3c70d6e64a157e843d898e42da8a4ce63 SHA1 34353031aa640176fd3e8909f3cb27b100cd58d4 SHA256 12b0f53dbc8c179ba46f27436f461372fd06b72eedfaf4f2612043827d619dfa
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-cflags-lib.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-cflags-lib.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-cflags-lib.patch	2008-07-16 12:45:27 UTC (rev 1255)
@@ -0,0 +1,46 @@
+diff -up stk-4.3.1/src/Makefile.in.orig stk-4.3.1/src/Makefile.in
+--- stk-4.3.1/src/Makefile.in.orig	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/src/Makefile.in	2008-07-03 23:31:43.000000000 +0200
+@@ -38,7 +38,7 @@ endif
+ CC       = @CXX@
+ DEFS     = @byte_order@
+ DEFS    += @debug@
+-CFLAGS   = @cflags@
++CFLAGS   = @CFLAGS@
+ CFLAGS  += @warn@ $(INCLUDE) -Iinclude
+ 
+ REALTIME = @realtime@
+diff -up stk-4.3.1/projects/demo/Makefile.in.orig stk-4.3.1/projects/demo/Makefile.in
+--- stk-4.3.1/projects/demo/Makefile.in.orig	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/projects/demo/Makefile.in	2008-07-04 02:02:32.000000000 +0200
+@@ -33,7 +33,7 @@ vpath %.h $(INCLUDE)
+ CC       = @CXX@
+ DEFS     = @byte_order@
+ DEFS    += @debug@
+-CFLAGS   = @cflags@
++CFLAGS   = @CFLAGS@
+ CFLAGS  += @warn@ -I$(INCLUDE) -I../../src/include
+ LIBRARY = @LIBS@
+ LIBRARY += @frameworks@
+--- stk-4.3.1/projects/effects/Makefile.in.orig	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/projects/effects/Makefile.in	2008-07-04 03:08:29.000000000 +0200
+@@ -22,7 +22,7 @@ vpath %.h $(INCLUDE)
+ CC       = @CXX@
+ DEFS     = @byte_order@
+ DEFS    += @debug@
+-CFLAGS   = @cflags@
++CFLAGS   = @CFLAGS@
+ CFLAGS  += @warn@ -I$(INCLUDE) -I../../src/include
+ LIBRARY = @LIBS@
+ LIBRARY += @frameworks@
+--- stk-4.3.1/projects/ragamatic/Makefile.in.orig	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/projects/ragamatic/Makefile.in	2008-07-04 03:10:23.000000000 +0200
+@@ -23,7 +23,7 @@ vpath %.h $(INCLUDE)
+ CC       = @CXX@
+ DEFS     = @byte_order@
+ DEFS    += @debug@
+-CFLAGS   = @cflags@
++CFLAGS   = @CFLAGS@
+ CFLAGS  += @warn@ -I$(INCLUDE) -I../../src/include
+ LIBRARY = @LIBS@
+ LIBRARY += @frameworks@

Added: trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-fpic.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-fpic.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-fpic.patch	2008-07-16 12:45:27 UTC (rev 1255)
@@ -0,0 +1,48 @@
+diff -up stk-4.3.1/src/Makefile.in.sharedlib stk-4.3.1/src/Makefile.in
+--- stk-4.3.1/src/Makefile.in.sharedlib	2008-07-15 21:43:37.000000000 +0200
++++ stk-4.3.1/src/Makefile.in	2008-07-15 21:51:45.000000000 +0200
+@@ -2,8 +2,13 @@
+ ### libstk Makefile - for various flavors of unix
+ 
+ LIBRARY = libstk.a
++SHAREDLIB = libstk.so
++MAJOR = 4
++RELEASE = 4.3.1
++
+ AR = ar -rsc
+ RM = /bin/rm
++LN = /bin/ln
+ OBJECT_PATH = @object_path@
+ vpath %.o $(OBJECT_PATH)
+ 
+@@ -40,6 +45,9 @@ DEFS     = @byte_order@
+ DEFS    += @debug@
+ CFLAGS   = @CFLAGS@
+ CFLAGS  += @warn@ $(INCLUDE) -Iinclude
++CFLAGS  += -fPIC
++LIBS     = @LIBS@
++LIBS    += @frameworks@
+ 
+ REALTIME = @realtime@
+ ifeq ($(REALTIME),yes)
+@@ -59,12 +67,18 @@ DEFS    += -DRAWWAVE_PATH=\"$(RAWWAVES)\
+ %.o : ../src/include/%.cpp
+ 	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
+ 
+-all : $(LIBRARY)
++all : $(LIBRARY) $(SHAREDLIB).$(RELEASE)
+ 
+ $(LIBRARY) : $(OBJECTS)
+-	/bin/rm -f $(LIBRARY)
++	$(RM) -f $(LIBRARY)
+ 	$(AR) $(LIBRARY) $(OBJECT_PATH)/*.o
+ 
++$(SHAREDLIB).$(RELEASE) : $(OBJECTS)
++	$(RM) -f $(@) $(SHAREDLIB).$(MAJOR) $(SHAREDLIB)
++	$(CC) -fPIC -shared -Wl,-soname,$(SHAREDLIB).$(MAJOR) -o $(@) $(OBJECT_PATH)/*.o $(LIBS)
++	$(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB).$(MAJOR)
++	$(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB)
++
+ $(OBJECTS) : Stk.h
+ 
+ clean : 

Added: trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-gcc43.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-gcc43.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-gcc43.patch	2008-07-16 12:45:27 UTC (rev 1255)
@@ -0,0 +1,271 @@
+--- stk-4.3.1.orig/projects/effects/effects.cpp	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/projects/effects/effects.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -15,6 +15,7 @@
+ #include <signal.h>
+ #include <iostream>
+ #include <algorithm>
++#include <cstring>
+ using std::min;
+ 
+ void usage(void) {
+--- stk-4.3.1.orig/projects/examples/duplex.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/duplex.cpp	2008-06-16 23:56:00.000000000 +0200
+@@ -10,6 +10,8 @@
+ 
+ #include "RtAudio.h"
+ #include <iostream>
++#include <cstdlib>
++#include <cstring>
+ 
+ /*
+ typedef signed long  MY_TYPE;
+--- stk-4.3.1.orig/projects/examples/foursine.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/foursine.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -2,6 +2,7 @@
+ 
+ #include "SineWave.h"
+ #include "FileWvOut.h"
++#include <cstdlib>
+ 
+ int main()
+ {
+--- stk-4.3.1.orig/projects/examples/grains.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/grains.cpp	2008-06-16 23:57:46.000000000 +0200
+@@ -4,6 +4,7 @@
+ 
+ #include "Granulate.h"
+ #include "RtAudio.h"
++#include <cstdlib>
+ 
+ // This tick() function handles sample computation only.  It will be
+ // called automatically when the system needs a new buffer of audio
+--- stk-4.3.1.orig/projects/examples/inetIn.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/inetIn.cpp	2008-06-16 23:56:18.000000000 +0200
+@@ -30,6 +30,7 @@
+ 
+ #include "InetWvIn.h"
+ #include "RtWvOut.h"
++#include <cstdlib>
+ 
+ void usage(void) {
+   // Error function in case of incorrect command-line
+--- stk-4.3.1.orig/projects/examples/inetOut.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/inetOut.cpp	2008-06-16 23:56:33.000000000 +0200
+@@ -19,6 +19,7 @@
+ 
+ #include "FileWvIn.h"
+ #include "InetWvOut.h"
++#include <cstdlib>
+ 
+ void usage(void) {
+   // Error function in case of incorrect command-line
+--- stk-4.3.1.orig/projects/examples/midiprobe.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/midiprobe.cpp	2008-06-16 23:55:29.000000000 +0200
+@@ -6,6 +6,7 @@
+ 
+ #include <iostream>
+ #include "RtMidi.h"
++#include <cstdlib>
+ 
+ int main()
+ {
+--- stk-4.3.1.orig/projects/examples/play.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/play.cpp	2008-06-16 23:54:54.000000000 +0200
+@@ -18,6 +18,7 @@
+ 
+ #include <signal.h>
+ #include <iostream>
++#include <cstdlib>
+ 
+ // Eewww ... global variables! :-)
+ bool done;
+--- stk-4.3.1.orig/projects/examples/playsmf.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/playsmf.cpp	2008-06-16 23:57:25.000000000 +0200
+@@ -7,7 +7,8 @@
+ 
+ #include "MidiFileIn.h"
+ #include "RtMidi.h"
+-#include <signal.h>
++#include <csignal>
++#include <cstdlib>
+ 
+ bool done = false;
+ static void finish(int ignore){ done = true; }
+--- stk-4.3.1.orig/projects/examples/record.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/record.cpp	2008-06-16 23:55:10.000000000 +0200
+@@ -24,6 +24,7 @@
+ 
+ #include "RtWvIn.h"
+ #include "FileWvOut.h"
++#include <cstdlib>
+ 
+ void usage( void ) {
+   // Error function in case of incorrect command-line
+--- stk-4.3.1.orig/projects/examples/rtsine.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/rtsine.cpp	2008-06-16 23:53:54.000000000 +0200
+@@ -2,6 +2,7 @@
+ 
+ #include "SineWave.h"
+ #include "RtWvOut.h"
++#include <cstdlib>
+ 
+ int main()
+ {
+--- stk-4.3.1.orig/projects/examples/sine.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/sine.cpp	2008-06-16 23:54:20.000000000 +0200
+@@ -14,6 +14,7 @@
+ 
+ #include "SineWave.h"
+ #include "FileWvOut.h"
++#include <cstdlib>
+ 
+ void usage(void) {
+   // Error function in case of incorrect command-line
+--- stk-4.3.1.orig/projects/examples/sineosc.cpp	2007-12-06 01:58:34.000000000 +0100
++++ stk-4.3.1/projects/examples/sineosc.cpp	2008-06-16 23:54:38.000000000 +0200
+@@ -2,6 +2,7 @@
+ 
+ #include "WaveLoop.h"
+ #include "FileWvOut.h"
++#include <cstdlib>
+ 
+ int main()
+ {
+--- stk-4.3.1.orig/projects/ragamatic/ragamat.cpp	2007-12-07 07:25:42.000000000 +0100
++++ stk-4.3.1/projects/ragamatic/ragamat.cpp	2008-06-16 23:59:13.000000000 +0200
+@@ -10,9 +10,11 @@
+ #include "Messager.h"
+ #include "RtAudio.h"
+ 
+-#include <signal.h>
++#include <csignal>
+ #include <iostream>
+ #include <algorithm>
++#include <cstdlib>
++#include <cstring>
+ using std::min;
+ 
+ StkFloat float_random(StkFloat max) // Return random float between 0.0 and max
+--- stk-4.3.1.orig/src/FileRead.cpp	2007-12-06 01:58:27.000000000 +0100
++++ stk-4.3.1/src/FileRead.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <cmath>
++#include <cstring>
+ 
+ FileRead :: FileRead()
+   : fd_(0)
+--- stk-4.3.1.orig/src/FileWrite.cpp	2007-12-06 01:58:27.000000000 +0100
++++ stk-4.3.1/src/FileWrite.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -23,6 +23,7 @@
+ 
+ #include "FileWrite.h"
+ #include <cmath>
++#include <cstring>
+ 
+ const FileWrite::FILE_TYPE FileWrite :: FILE_RAW = 1;
+ const FileWrite::FILE_TYPE FileWrite :: FILE_WAV = 2;
+--- stk-4.3.1.orig/src/Messager.cpp	2007-12-06 01:58:27.000000000 +0100
++++ stk-4.3.1/src/Messager.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -34,6 +34,7 @@
+ 
+ #include "Messager.h"
+ #include <iostream>
++#include <algorithm>
+ #include "SKINI.msg"
+ 
+ static const int STK_FILE   = 0x1;
+--- stk-4.3.1.orig/src/MidiFileIn.cpp	2007-12-06 01:58:27.000000000 +0100
++++ stk-4.3.1/src/MidiFileIn.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -17,6 +17,7 @@
+ 
+ #include "MidiFileIn.h"
+ #include <iostream>
++#include <cstring>
+ 
+ MidiFileIn :: MidiFileIn( std::string fileName )
+ {
+--- stk-4.3.1.orig/src/Modal.cpp	2007-12-06 01:58:27.000000000 +0100
++++ stk-4.3.1/src/Modal.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -12,6 +12,7 @@
+ /***************************************************/
+ 
+ #include "Modal.h"
++#include <cstdlib>
+ 
+ Modal :: Modal(unsigned int modes)
+   : nModes_(modes)
+--- stk-4.3.1.orig/src/RtAudio.cpp	2007-12-07 09:04:43.000000000 +0100
++++ stk-4.3.1/src/RtAudio.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -42,6 +42,9 @@
+ 
+ #include "RtAudio.h"
+ #include <iostream>
++#include <cstdlib>
++#include <cstring>
++#include <climits>
+ 
+ // Static variable definitions.
+ const unsigned int RtApi::MAX_SAMPLE_RATES = 14;
+--- stk-4.3.1.orig/src/Shakers.cpp	2007-12-06 01:58:26.000000000 +0100
++++ stk-4.3.1/src/Shakers.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -54,6 +54,8 @@
+ 
+ #include "Stk.h"
+ #include <cmath>
++#include <cstdlib>
++#include <cstring>
+ 
+ int my_random(int max) //  Return Random Int Between 0 and max
+ {
+--- stk-4.3.1.orig/src/Skini.cpp	2007-12-06 01:58:26.000000000 +0100
++++ stk-4.3.1/src/Skini.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -25,6 +25,7 @@
+ 
+ #include "Skini.h"
+ #include "SKINI.tbl"
++#include <cstdlib>
+ 
+ Skini :: Skini()
+ {
+--- stk-4.3.1.orig/src/Stk.cpp	2007-12-06 01:58:28.000000000 +0100
++++ stk-4.3.1/src/Stk.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -51,6 +51,7 @@
+ /***************************************************/
+ 
+ #include "Stk.h"
++#include <cstdlib>
+ 
+ StkFloat Stk :: srate_ = (StkFloat) SRATE;
+ std::string Stk :: rawwavepath_ = RAWWAVE_PATH;
+--- stk-4.3.1.orig/src/TcpClient.cpp	2007-12-06 01:58:26.000000000 +0100
++++ stk-4.3.1/src/TcpClient.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -24,6 +24,7 @@
+ /***************************************************/
+ 
+ #include "TcpClient.h"
++#include <cstring>
+ 
+ TcpClient :: TcpClient(int port, std::string hostname )
+ {
+--- stk-4.3.1.orig/src/UdpSocket.cpp	2007-12-06 01:58:26.000000000 +0100
++++ stk-4.3.1/src/UdpSocket.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -22,6 +22,7 @@
+ /***************************************************/
+ 
+ #include "UdpSocket.h"
++#include <cstring>
+ 
+ UdpSocket :: UdpSocket(int port )
+ {
+--- stk-4.3.1.orig/src/VoicForm.cpp	2007-12-06 01:58:26.000000000 +0100
++++ stk-4.3.1/src/VoicForm.cpp	2008-06-16 23:52:34.000000000 +0200
+@@ -30,6 +30,7 @@
+ #include "SKINI.msg"
+ 
+ #include <cmath>
++#include <cstring>
+ 
+ VoicForm :: VoicForm() : Instrmnt()
+ {

Added: trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-missing.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-missing.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/stk/files/stk-4.3.1-missing.patch	2008-07-16 12:45:27 UTC (rev 1255)
@@ -0,0 +1,4 @@
+--- /dev/null	2008-06-04 20:47:47.568000746 +0200
++++ stk-4.3.1/projects/demo/Banded	2008-07-04 03:35:48.000000000 +0200
+@@ -0,0 +1 @@
++wish < tcl/Banded.tcl | ./demo BandedWG -or -ip

Added: trunk/overlays/proaudio/media-sound/stk/stk-4.3.1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/stk/stk-4.3.1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/stk/stk-4.3.1.ebuild	2008-07-16 12:45:27 UTC (rev 1255)
@@ -0,0 +1,79 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils autotools
+
+DESCRIPTION="Synthesis ToolKit in C++"
+HOMEPAGE="http://ccrma.stanford.edu/software/stk/";
+SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz";
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="alsa jack midi oss"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+		jack? ( media-sound/jack-audio-connection-kit )
+		midi? ( media-libs/alsa-lib )"
+DEPEND="${RDEPEND}
+		dev-lang/perl"
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+	epatch "${FILESDIR}/${P}-cflags-lib.patch"
+	epatch "${FILESDIR}/${P}-gcc43.patch"
+	epatch "${FILESDIR}/${P}-fpic.patch"
+	epatch "${FILESDIR}/${P}-missing.patch"
+	eautoreconf
+}
+		
+src_compile() {
+	econf \
+		`use_with alsa` \
+		`use_with jack` \
+		`use_with oss` \
+		RAWWAVE_PATH=/usr/share/stk/rawwaves/ \
+		|| die "configure failed!"
+
+	# build the whole bunch
+	cd src
+	emake || die "make in src failed!"
+
+	cd ../projects
+	for i in demo effects examples ragamatic; do
+		cd $i
+		emake || die
+		rm -f Release/*.o
+		cd ..
+	done
+
+	# reconfigure to correct paths, hell knows
+	cd "${S}"
+	econf \
+		`use_with alsa` \
+		`use_with jack` \
+		`use_with oss` \
+		RAWWAVE_PATH=/usr/share/stk/rawwaves \
+		INCLUDE_PATH=/usr/include/stk \
+		|| die "re-configure failed!"
+
+	# fix include paths
+	find . -type f -name Makefile\* -exec \
+		perl -p -i -e "s|../../src|/usr/share/stk/src|g" {} \;
+}
+
+src_install() {
+	dodoc README STK_TODO.txt
+	insinto /usr/include/stk
+	doins include/*.h include/*.msg include/*.tbl
+	insinto /usr/share/stk/src
+	doins src/*.cpp
+	insinto /usr/share/stk/rawwaves
+	doins rawwaves/*.raw
+	dolib src/libstk.*
+	# this one actually sucks, but..
+	mv projects "${D}"/usr/share/stk
+}
+


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