summaryrefslogtreecommitdiff
blob: 91a8269824d6e4055cc60830a11dde6e5d22b0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
diff -Naur dssi-0.9.orig/examples/Makefile dssi-0.9/examples/Makefile
--- dssi-0.9.orig/examples/Makefile	2004-10-28 20:46:08.000000000 +0900
+++ dssi-0.9/examples/Makefile	2005-10-09 09:58:06.000000000 +0900
@@ -1,5 +1,6 @@
 
 PREFIX ?= /usr/local
+LIBDIR ?= $(PREFIX)/lib
 
 LIBLO_CFLAGS ?= $(shell pkg-config liblo --cflags)
 LIBLO_LIBS ?= $(shell pkg-config liblo --libs || echo -llo -lpthread)
@@ -25,19 +26,20 @@
 install: all
 	mkdir -p $(PREFIX)/bin
 	cp dssi_osc_update dssi_osc_send $(PREFIX)/bin/
-	mkdir -p $(PREFIX)/lib/dssi
-	cp trivial_synth.so $(PREFIX)/lib/dssi/
-	cp trivial_sampler.so $(PREFIX)/lib/dssi/
-	mkdir -p $(PREFIX)/lib/dssi/less_trivial_synth
-	cp less_trivial_synth.so $(PREFIX)/lib/dssi/
-	cp less_trivial_synth_qt_gui $(PREFIX)/lib/dssi/less_trivial_synth/LTS_qt
-	mkdir -p $(PREFIX)/lib/dssi/trivial_sampler
-	cp trivial_sampler.so $(PREFIX)/lib/dssi/
-	cp trivial_sampler_qt_gui $(PREFIX)/lib/dssi/trivial_sampler/trivial_sampler_qt
+	mkdir -p $(LIBDIR)/dssi
+	cp trivial_synth.so $(LIBDIR)/dssi/
+	cp trivial_sampler.so $(LIBDIR)/dssi/
+	mkdir -p $(LIBDIR)/dssi/less_trivial_synth
+	cp less_trivial_synth.so $(LIBDIR)/dssi/
+	cp less_trivial_synth_qt_gui $(LIBDIR)/dssi/less_trivial_synth/LTS_qt
+	mkdir -p $(LIBDIR)/dssi/trivial_sampler
+	cp trivial_sampler.so $(LIBDIR)/dssi/
+	cp trivial_sampler_qt_gui $(LIBDIR)/dssi/trivial_sampler/trivial_sampler_qt
 	test -x $(PREFIX)/bin/jack-dssi-host && ln -sf jack-dssi-host $(PREFIX)/bin/trivial_sampler
 
 
-CFLAGS = -Wall -O2 -I../dssi $(LIBLO_CFLAGS)
+OPTFLAGS=
+CFLAGS = $(OPTFLAGS) -fPIC -Wall -I../dssi $(LIBLO_CFLAGS)
 CXXFLAGS = $(CFLAGS) -I$(QTINCDIR)
 LDLIBS = $(LIBLO_LIBS)
 
diff -Naur dssi-0.9.orig/examples/trivial_sampler_qt_gui.cpp dssi-0.9/examples/trivial_sampler_qt_gui.cpp
--- dssi-0.9.orig/examples/trivial_sampler_qt_gui.cpp	2004-10-28 20:46:08.000000000 +0900
+++ dssi-0.9/examples/trivial_sampler_qt_gui.cpp	2005-10-09 09:58:38.000000000 +0900
@@ -24,6 +24,7 @@
 #include <iostream>
 #include <unistd.h>
 #include <sndfile.h>
+#include <cmath>
 
 #include "dssi.h"
 
diff -Naur dssi-0.9.orig/jack-dssi-host/Makefile dssi-0.9/jack-dssi-host/Makefile
--- dssi-0.9.orig/jack-dssi-host/Makefile	2004-10-01 20:57:26.000000000 +0900
+++ dssi-0.9/jack-dssi-host/Makefile	2005-10-09 09:55:40.000000000 +0900
@@ -10,7 +10,8 @@
 	mkdir -p $(PREFIX)/bin
 	cp jack-dssi-host $(PREFIX)/bin/
 
-CFLAGS = -Wall -g3 -I../dssi $(shell pkg-config liblo --cflags)
+OPTFLAGS=
+CFLAGS = $(OPTFLAGS) -fPIC -Wall -g3 -I../dssi $(shell pkg-config liblo --cflags)
 CXXFLAGS = $(CFLAGS)
 
 LDLIBS = -ljack -lasound -lpthread $(shell pkg-config liblo --libs)
diff -Naur dssi-0.9.orig/jack-dssi-host/jack-dssi-host.c dssi-0.9/jack-dssi-host/jack-dssi-host.c
--- dssi-0.9.orig/jack-dssi-host/jack-dssi-host.c	2004-11-02 23:14:49.000000000 +0900
+++ dssi-0.9/jack-dssi-host/jack-dssi-host.c	2005-10-09 09:53:57.000000000 +0900
@@ -597,7 +597,7 @@
 		}
 		
 		if (fork() == 0) {
-		    execlp(filename, filename, oscUrl, dllName, label, instanceTag, 0);
+		    execlp(filename, filename, oscUrl, dllName, label, instanceTag, NULL);
 		    perror("exec failed");
 		    exit(1);
 		}