summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-09-17 07:28:35 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-09-17 07:28:35 +0000
commit5005c7bd64b80ed890e14152e605a7e179dc59a4 (patch)
tree0f4e64aa4ef6c74e2e50ca1651e6c9e6c35dc3bf /media-libs/stk
parentVersion bump. DESCRIPTION and LICENSE changed (diff)
downloadhistorical-5005c7bd64b80ed890e14152e605a7e179dc59a4.tar.gz
historical-5005c7bd64b80ed890e14152e605a7e179dc59a4.tar.bz2
historical-5005c7bd64b80ed890e14152e605a7e179dc59a4.zip
Initial import; ebuild mainly by Thomas Kuther who I'm proxy maintaining the package for.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.3 x86_64
Diffstat (limited to 'media-libs/stk')
-rw-r--r--media-libs/stk/ChangeLog13
-rw-r--r--media-libs/stk/Manifest19
-rw-r--r--media-libs/stk/files/stk-4.3.1-cflags-lib.patch46
-rw-r--r--media-libs/stk/files/stk-4.3.1-fpic.patch48
-rw-r--r--media-libs/stk/files/stk-4.3.1-gcc43.patch271
-rw-r--r--media-libs/stk/files/stk-4.3.1-ldflags.patch146
-rw-r--r--media-libs/stk/files/stk-4.3.1-missing.patch4
-rw-r--r--media-libs/stk/metadata.xml13
-rw-r--r--media-libs/stk/stk-4.3.1.ebuild61
9 files changed, 621 insertions, 0 deletions
diff --git a/media-libs/stk/ChangeLog b/media-libs/stk/ChangeLog
new file mode 100644
index 000000000000..2b80ae5901d2
--- /dev/null
+++ b/media-libs/stk/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for media-libs/stk
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/ChangeLog,v 1.1 2008/09/17 07:28:34 aballier Exp $
+
+*stk-4.3.1 (17 Sep 2008)
+
+ 17 Sep 2008; Alexis Ballier <aballier@gentoo.org>
+ +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-ldflags.patch,
+ +files/stk-4.3.1-missing.patch, +metadata.xml, +stk-4.3.1.ebuild:
+ Initial import; ebuild mainly by Thomas Kuther who I'm proxy maintaining
+ the package for.
+
diff --git a/media-libs/stk/Manifest b/media-libs/stk/Manifest
new file mode 100644
index 000000000000..228b5a0fa408
--- /dev/null
+++ b/media-libs/stk/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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-ldflags.patch 14109 RMD160 53aac79e1acd8072436abc226a1a785824a4150e SHA1 c3aa6b7319bdd1ade81ad4514ccfe756c034428d SHA256 b6471df0ffbefbb71e184f84da9df2e7d6647261907d338dab18edcd7efadc18
+AUX stk-4.3.1-missing.patch 184 RMD160 7934473e75e5dfb7a7abbaba321b0ac24d6ad485 SHA1 306fdf8dbe2f265dfc3a983d851c26915ecac413 SHA256 413f49d39320c4c5af3da6c45f2927fc75eac101cd64c8d0fcc1a054907ed3cb
+DIST stk-4.3.1.tar.gz 1952667 RMD160 f0cde3c13af08f4ae58174272bfd09df6f00fec1 SHA1 56922c001f9fc8f7c5cefe5f0c2e64ffa273dffe SHA256 e87fae4fe4e4681185afb752f5ce90cf8fcf16600a0c76d025a3f638be32cee0
+EBUILD stk-4.3.1.ebuild 1421 RMD160 56ffb85da0f5e12c404b27bf777dd9db17582d99 SHA1 ef36b4761a981f067a3d5a3c332dcc1143f78846 SHA256 3962bce6e58ce6b144e3f2b08ee29ed8f2e3bea9d729227de8ba5c153558c089
+MISC ChangeLog 574 RMD160 21cad9f628c4eebed0c722b421ebba09f9cccdbd SHA1 d06f430f969955a7acd1768c52f4d9ded1c7a4c8 SHA256 2f713c94b37370cfc55b25cb2ba0ee485efece1be1006e73a517bd12fb38be37
+MISC metadata.xml 352 RMD160 8d338d54feb3c0f60dc71c3a44460e39a93f115a SHA1 fee1c5535bc79eb5119956e449e8212d4ed16785 SHA256 f2c8dc1810e2ee90a144d4670591484d8ad5ce927df0f493016548ea5cbaf343
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkjQsagACgkQvFcC4BYPU0pH8ACcCrgi2qZRhfoDJvXMaufURXO6
+atEAniytrCgcwLh3aVRCHfvYyFZY+qNn
+=WqJG
+-----END PGP SIGNATURE-----
diff --git a/media-libs/stk/files/stk-4.3.1-cflags-lib.patch b/media-libs/stk/files/stk-4.3.1-cflags-lib.patch
new file mode 100644
index 000000000000..91126d6ec299
--- /dev/null
+++ b/media-libs/stk/files/stk-4.3.1-cflags-lib.patch
@@ -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@
diff --git a/media-libs/stk/files/stk-4.3.1-fpic.patch b/media-libs/stk/files/stk-4.3.1-fpic.patch
new file mode 100644
index 000000000000..e48b10aa6258
--- /dev/null
+++ b/media-libs/stk/files/stk-4.3.1-fpic.patch
@@ -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 :
diff --git a/media-libs/stk/files/stk-4.3.1-gcc43.patch b/media-libs/stk/files/stk-4.3.1-gcc43.patch
new file mode 100644
index 000000000000..889e9ccab563
--- /dev/null
+++ b/media-libs/stk/files/stk-4.3.1-gcc43.patch
@@ -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()
+ {
diff --git a/media-libs/stk/files/stk-4.3.1-ldflags.patch b/media-libs/stk/files/stk-4.3.1-ldflags.patch
new file mode 100644
index 000000000000..2a0b347b545a
--- /dev/null
+++ b/media-libs/stk/files/stk-4.3.1-ldflags.patch
@@ -0,0 +1,146 @@
+Index: stk-4.3.1/projects/demo/Makefile.in
+===================================================================
+--- stk-4.3.1.orig/projects/demo/Makefile.in
++++ stk-4.3.1/projects/demo/Makefile.in
+@@ -60,16 +60,16 @@ DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\
+ all : $(PROGRAMS)
+
+ demo: demo.cpp $(OBJECTS)
+- $(CC) $(CFLAGS) $(DEFS) -o demo demo.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o demo demo.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
+
+ libdemo: demo.cpp
+- $(CC) $(CFLAGS) $(DEFS) -o demo utilities.cpp demo.cpp -L../../src -lstk $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o demo utilities.cpp demo.cpp -L../../src -lstk $(LIBRARY)
+
+ Md2Skini: Md2Skini.cpp Stk.o RtMidi.o
+- $(CC) $(CFLAGS) $(DEFS) -o Md2Skini Md2Skini.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o Md2Skini Md2Skini.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
+
+ libMd2Skini: Md2Skini.cpp
+- $(CC) $(CFLAGS) $(DEFS) -o Md2Skini Md2Skini.cpp -L../../src -lstk $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o Md2Skini Md2Skini.cpp -L../../src -lstk $(LIBRARY)
+
+ $(OBJECTS) : Stk.h
+
+Index: stk-4.3.1/projects/effects/Makefile.in
+===================================================================
+--- stk-4.3.1.orig/projects/effects/Makefile.in
++++ stk-4.3.1/projects/effects/Makefile.in
+@@ -49,10 +49,10 @@ DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\
+ all : $(PROGRAMS)
+
+ effects: effects.cpp $(OBJECTS)
+- $(CC) $(CFLAGS) $(DEFS) -o effects effects.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o effects effects.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
+
+ libeffects: effects.cpp
+- $(CC) $(CFLAGS) $(DEFS) -o effects effects.cpp -L../../src -lstk $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o effects effects.cpp -L../../src -lstk $(LIBRARY)
+
+ $(OBJECTS) : Stk.h
+
+Index: stk-4.3.1/projects/examples/Makefile.in
+===================================================================
+--- stk-4.3.1.orig/projects/examples/Makefile.in
++++ stk-4.3.1/projects/examples/Makefile.in
+@@ -51,52 +51,52 @@ strip :
+ strip $(PROGRAMS)
+
+ audioprobe: RtAudio.o @objects@
+- $(CC) $(CFLAGS) $(DEFS) -o audioprobe audioprobe.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o audioprobe audioprobe.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
+
+ midiprobe: RtMidi.o
+- $(CC) $(CFLAGS) $(DEFS) -o midiprobe midiprobe.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o midiprobe midiprobe.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
+
+ play: play.cpp Stk.o FileRead.o WvIn.o FileWvIn.o RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o play play.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o play play.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ record: record.cpp Stk.o WvIn.o FileWrite.o WvOut.o FileWvOut.o RtWvIn.o RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o record record.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/FileWvOut.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvIn.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o record record.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/FileWvOut.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvIn.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ sine: sine.cpp Stk.o Generator.o SineWave.o FileWrite.o WvOut.o FileWvOut.o
+- $(CC) $(CFLAGS) $(DEFS) -o sine sine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o sine sine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(LIBRARY)
+
+ duplex: duplex.cpp RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o duplex duplex.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o duplex duplex.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ inetIn: inetIn.cpp Stk.o WvIn.o InetWvIn.o WvOut.o RtWvOut.o RtAudio.o Socket.o TcpServer.o UdpSocket.o Thread.o Mutex.o
+- $(CC) $(CFLAGS) $(DEFS) -o inetIn inetIn.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/InetWvIn.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvOut.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o inetIn inetIn.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/InetWvIn.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvOut.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ inetOut: inetOut.cpp Stk.o FileRead.o WvIn.o FileWvIn.o WvOut.o InetWvOut.o Socket.o TcpClient.o UdpSocket.o Thread.o Mutex.o
+- $(CC) $(CFLAGS) $(DEFS) -o inetOut inetOut.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpClient.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/InetWvOut.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o inetOut inetOut.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpClient.o $(OBJECT_PATH)/UdpSocket.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/InetWvOut.o $(LIBRARY)
+
+ sineosc: sineosc.cpp Stk.o FileRead.o WvIn.o FileWvIn.o WaveLoop.o FileWrite.o WvOut.o FileWvOut.o
+- $(CC) $(CFLAGS) $(DEFS) -o sineosc sineosc.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(OBJECT_PATH)/WaveLoop.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o sineosc sineosc.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(OBJECT_PATH)/WaveLoop.o $(LIBRARY)
+
+ rtsine: rtsine.cpp Stk.o Generator.o SineWave.o WvOut.o RtWvOut.o RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o rtsine rtsine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvOut.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o rtsine rtsine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/RtWvOut.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ crtsine: crtsine.cpp Stk.o Generator.o SineWave.o RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o crtsine crtsine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o crtsine crtsine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+
+ bethree: bethree.cpp Stk.o WvIn.o FileRead.o FileWvIn.o WaveLoop.o FM.o RtAudio.o Instrmnt.o Filter.o TwoZero.o Generator.o SineWave.o Envelope.o ADSR.o BeeThree.o
+- $(CC) $(CFLAGS) $(DEFS) -o bethree bethree.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o bethree bethree.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(LIBRARY)
+
+ controlbee: controlbee.cpp Stk.o WvIn.o FileRead.o FileWvIn.o WaveLoop.o FM.o RtAudio.o Instrmnt.o Filter.o TwoZero.o Generator.o SineWave.o Envelope.o ADSR.o BeeThree.o Messager.o RtMidi.o Socket.o TcpServer.o Thread.o Mutex.o Skini.o
+- $(CC) $(CFLAGS) $(DEFS) -o controlbee controlbee.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o controlbee controlbee.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(LIBRARY)
+
+ foursine: foursine.cpp Stk.o Generator.o SineWave.o FileWrite.o WvOut.o FileWvOut.o
+- $(CC) $(CFLAGS) $(DEFS) -o foursine foursine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o foursine foursine.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/FileWrite.o $(OBJECT_PATH)/WvOut.o $(OBJECT_PATH)/FileWvOut.o $(LIBRARY)
+
+ threebees: threebees.cpp Stk.o FileRead.o WvIn.o FileWvIn.o WaveLoop.o FM.o RtAudio.o Instrmnt.o Filter.o TwoZero.o Generator.o SineWave.o Envelope.o ADSR.o BeeThree.o Messager.o RtMidi.o Socket.o TcpServer.o Thread.o Mutex.o Skini.o Voicer.o
+- $(CC) $(CFLAGS) $(DEFS) -o threebees threebees.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(OBJECT_PATH)/Voicer.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o threebees threebees.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/WvIn.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/FileWvIn.o $(OBJECT_PATH)/WaveLoop.o $(OBJECT_PATH)/FM.o $(OBJECT_PATH)/RtAudio.o $(OBJECT_PATH)/Instrmnt.o $(OBJECT_PATH)/Filter.o $(OBJECT_PATH)/TwoZero.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/SineWave.o $(OBJECT_PATH)/Envelope.o $(OBJECT_PATH)/ADSR.o $(OBJECT_PATH)/BeeThree.o $(OBJECT_PATH)/Messager.o $(OBJECT_PATH)/RtMidi.o $(OBJECT_PATH)/Socket.o $(OBJECT_PATH)/TcpServer.o $(OBJECT_PATH)/Thread.o $(OBJECT_PATH)/Mutex.o $(OBJECT_PATH)/Skini.o $(OBJECT_PATH)/Voicer.o $(LIBRARY)
+
+ playsmf: playsmf.cpp Stk.o MidiFileIn.o RtMidi.o
+- $(CC) $(CFLAGS) $(DEFS) -o playsmf playsmf.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/MidiFileIn.o $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o playsmf playsmf.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/MidiFileIn.o $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
+
+ grains: grains.cpp Stk.o Generator.o Granulate.o Noise.o FileRead.o RtAudio.o
+- $(CC) $(CFLAGS) $(DEFS) -o grains grains.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/Granulate.o $(OBJECT_PATH)/Noise.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o grains grains.cpp $(OBJECT_PATH)/Stk.o $(OBJECT_PATH)/Generator.o $(OBJECT_PATH)/Granulate.o $(OBJECT_PATH)/Noise.o $(OBJECT_PATH)/FileRead.o $(OBJECT_PATH)/RtAudio.o $(LIBRARY)
+Index: stk-4.3.1/projects/ragamatic/Makefile.in
+===================================================================
+--- stk-4.3.1.orig/projects/ragamatic/Makefile.in
++++ stk-4.3.1/projects/ragamatic/Makefile.in
+@@ -50,10 +50,10 @@ DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\
+ all : $(PROGRAMS)
+
+ ragamat: ragamat.cpp $(OBJECTS)
+- $(CC) $(CFLAGS) $(DEFS) -o ragamat ragamat.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o ragamat ragamat.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
+
+ libragamat: ragamat.cpp Tabla.cpp Drone.cpp VoicDrum.cpp
+- $(CC) $(CFLAGS) $(DEFS) -o ragamat Tabla.cpp Drone.cpp VoicDrum.cpp ragamat.cpp -L../../src $(LIBRARY) -lstk
++ $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o ragamat Tabla.cpp Drone.cpp VoicDrum.cpp ragamat.cpp -L../../src $(LIBRARY) -lstk
+
+ $(OBJECTS) : Stk.h
+
+Index: stk-4.3.1/src/Makefile.in
+===================================================================
+--- stk-4.3.1.orig/src/Makefile.in
++++ stk-4.3.1/src/Makefile.in
+@@ -75,7 +75,7 @@ $(LIBRARY) : $(OBJECTS)
+
+ $(SHAREDLIB).$(RELEASE) : $(OBJECTS)
+ $(RM) -f $(@) $(SHAREDLIB).$(MAJOR) $(SHAREDLIB)
+- $(CC) -fPIC -shared -Wl,-soname,$(SHAREDLIB).$(MAJOR) -o $(@) $(OBJECT_PATH)/*.o $(LIBS)
++ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(SHAREDLIB).$(MAJOR) -o $(@) $(OBJECT_PATH)/*.o $(LIBS)
+ $(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB).$(MAJOR)
+ $(LN) -s $(SHAREDLIB).$(RELEASE) $(SHAREDLIB)
+
diff --git a/media-libs/stk/files/stk-4.3.1-missing.patch b/media-libs/stk/files/stk-4.3.1-missing.patch
new file mode 100644
index 000000000000..5604200e4890
--- /dev/null
+++ b/media-libs/stk/files/stk-4.3.1-missing.patch
@@ -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
diff --git a/media-libs/stk/metadata.xml b/media-libs/stk/metadata.xml
new file mode 100644
index 000000000000..d108131d6916
--- /dev/null
+++ b/media-libs/stk/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proaudio</herd>
+<maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+</maintainer>
+<maintainer>
+ <email>gimpel@sonnenkinder.org</email>
+ <name>Thomas Kuther</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-libs/stk/stk-4.3.1.ebuild b/media-libs/stk/stk-4.3.1.ebuild
new file mode 100644
index 000000000000..236358e89563
--- /dev/null
+++ b/media-libs/stk/stk-4.3.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/stk/stk-4.3.1.ebuild,v 1.1 2008/09/17 07:28:34 aballier Exp $
+
+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="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa debug doc jack oss"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ 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"
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ `use_with alsa` \
+ `use_with jack` \
+ `use_with oss` \
+ `use_enable debug` \
+ RAWWAVE_PATH=/usr/share/stk/rawwaves/ \
+ || die "configure failed!"
+
+ # compile libstk
+ cd src
+ emake || die "make in src failed!"
+}
+
+src_install() {
+ dodoc README
+ # install the lib
+ dolib src/libstk.*
+ # install headers
+ insinto /usr/include/stk
+ doins include/*.h include/*.msg include/*.tbl
+ # install rawwaves
+ insinto /usr/share/stk/rawwaves
+ doins rawwaves/*.raw
+ # install docs
+ if use doc; then
+ dohtml -r doc/html/*
+ fi
+}