aboutsummaryrefslogtreecommitdiff
path: root/audio/blop/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-21 06:01:33 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-21 06:01:33 +0000
commitcd734abda273910f486146824cf9febedfe87f6a (patch)
treecb434c8d62c85b685e9cf72c8aa0a6b277ef9655 /audio/blop/files
parent91942e3d7d0bbade2bbd31b592df5f4b847f2667 (diff)
downloadports-cd734abda273910f486146824cf9febedfe87f6a.tar.gz
ports-cd734abda273910f486146824cf9febedfe87f6a.zip
Notes
Diffstat (limited to 'audio/blop/files')
-rw-r--r--audio/blop/files/patch-Makefile81
-rw-r--r--audio/blop/files/patch-wdatutil.c10
2 files changed, 91 insertions, 0 deletions
diff --git a/audio/blop/files/patch-Makefile b/audio/blop/files/patch-Makefile
new file mode 100644
index 000000000000..bc1166ccb83f
--- /dev/null
+++ b/audio/blop/files/patch-Makefile
@@ -0,0 +1,81 @@
+--- Makefile.orig Wed May 15 18:24:08 2002
++++ Makefile Wed May 15 18:47:27 2002
+@@ -16,12 +16,8 @@
+ square.so \
+ pulse.so \
+ triangle.so
+-LD = ld
+-CC = cc
+-CFLAGS = -Iinclude -Wall -fomit-frame-pointer -fstrength-reduce \
+- -funroll-loops -fmove-all-movables -ffast-math -fPIC -DPIC \
+- -O6 -mcpu=i586 -march=i586 -c
+-LDFLAGS = -shared -lm
++CFLAGS += -I/usr/local/include -Iinclude -Wall -DPIC
++LDFLAGS += -L/usr/local/lib -lm -lgnugetopt
+
+ all: $(PLUGINS)
+
+@@ -39,45 +35,45 @@
+
+
+ sawtooth.so: sawtooth.o avltree.o sawtooth.so.o
+- $(LD) $(LDFLAGS) sawtooth.o avltree.o sawtooth.so.o -o sawtooth.so
++ $(LD) $(LDFLAGS) -shared sawtooth.o avltree.o sawtooth.so.o -o sawtooth.so
+
+ square.so: square.o avltree.o square.so.o
+- $(LD) $(LDFLAGS) square.o avltree.o square.so.o -o square.so
++ $(LD) $(LDFLAGS) -shared square.o avltree.o square.so.o -o square.so
+
+ triangle.so: parabola.o avltree.o triangle.so.o
+- $(LD) $(LDFLAGS) parabola.o avltree.o triangle.so.o -o triangle.so
++ $(LD) $(LDFLAGS) -shared parabola.o avltree.o triangle.so.o -o triangle.so
+
+ pulse.so: sawtooth.o avltree.o pulse.so.o
+- $(LD) $(LDFLAGS) sawtooth.o avltree.o pulse.so.o -o pulse.so
++ $(LD) $(LDFLAGS) -shared sawtooth.o avltree.o pulse.so.o -o pulse.so
+
+
+ avltree.o: avltree.h common.h avltree.c
+- $(CC) $(CFLAGS) avltree.c
++ $(CC) $(CFLAGS) -c avltree.c
+
+ sawtooth.o: sawtooth_data.h wavedata.h wavedata.c
+- $(CC) $(CFLAGS) -DWAVETYPE_SAWTOOTH wavedata.c
++ $(CC) $(CFLAGS) -DWAVETYPE_SAWTOOTH -c wavedata.c
+ mv wavedata.o sawtooth.o
+
+ square.o: square_data.h wavedata.h wavedata.c
+- $(CC) $(CFLAGS) -DWAVETYPE_SQUARE wavedata.c
++ $(CC) $(CFLAGS) -DWAVETYPE_SQUARE -c wavedata.c
+ mv wavedata.o square.o
+
+ parabola.o: parabola_data.h wavedata.h wavedata.c
+- $(CC) $(CFLAGS) -DWAVETYPE_PARABOLA wavedata.c
++ $(CC) $(CFLAGS) -DWAVETYPE_PARABOLA -c wavedata.c
+ mv wavedata.o parabola.o
+
+
+ sawtooth.so.o: ladspa.h avltree.h wavedata.h sawtooth.so.c
+- $(CC) $(CFLAGS) sawtooth.so.c
++ $(CC) $(CFLAGS) -c sawtooth.so.c
+
+ square.so.o: ladspa.h avltree.h wavedata.h square.so.c
+- $(CC) $(CFLAGS) square.so.c
++ $(CC) $(CFLAGS) -c square.so.c
+
+ triangle.so.o: ladspa.h avltree.h wavedata.h triangle.so.c
+- $(CC) $(CFLAGS) triangle.so.c
++ $(CC) $(CFLAGS) -c triangle.so.c
+
+ pulse.so.o: ladspa.h avltree.h wavedata.h pulse.so.c
+- $(CC) $(CFLAGS) pulse.so.c
++ $(CC) $(CFLAGS) -c pulse.so.c
+
+
+ sawtooth_data.h: wavegen
+@@ -91,4 +87,4 @@
+
+
+ wavegen: wdatutil.h wdatutil.c wavegen.c
+- $(CC) -Iinclude wdatutil.c wavegen.c -lm -o wavegen
++ $(CC) ${CFLAGS} ${LDFLAGS} wdatutil.c wavegen.c -o wavegen
diff --git a/audio/blop/files/patch-wdatutil.c b/audio/blop/files/patch-wdatutil.c
new file mode 100644
index 000000000000..c1afda193033
--- /dev/null
+++ b/audio/blop/files/patch-wdatutil.c
@@ -0,0 +1,10 @@
+--- wdatutil.c.orig Wed May 15 18:50:21 2002
++++ wdatutil.c Wed May 15 18:51:20 2002
+@@ -2,6 +2,7 @@
+ #include <math.h>
+ #include "common.h"
+ #include "wdatutil.h"
++#include <stdlib.h>
+
+ #ifdef __cplusplus
+ extern "C" {