aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libconvolve/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libconvolve/files/patch-Makefile')
-rw-r--r--audio/libconvolve/files/patch-Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/libconvolve/files/patch-Makefile b/audio/libconvolve/files/patch-Makefile
new file mode 100644
index 00000000000..1ab141eb90c
--- /dev/null
+++ b/audio/libconvolve/files/patch-Makefile
@@ -0,0 +1,32 @@
+--- Makefile.orig Mon Apr 2 09:20:41 2007
++++ Makefile Mon Apr 2 09:20:55 2007
+@@ -1,19 +1,18 @@
+ PREFIX=/usr/local
+
+-COMPILE_FLAGS = -fPIC `pkg-config fftw3f samplerate sndfile --cflags`
++COMPILE_FLAGS = $(CFLAGS) -fPIC `pkg-config fftw3f samplerate sndfile --cflags`
+ #COMPILE_FLAGS += -g
+-COMPILE_FLAGS += -O3 -funroll-loops -funroll-all-loops
+
+ LINK_FLAGS = `pkg-config fftw3f samplerate sndfile --libs`
+
+ # uncomment the following line if libDSP is not available for
+ # your platform (power pc etc.)...
+
+-# COMPILE_FLAGS += -DC_CMUL
++COMPILE_FLAGS += -DC_CMUL
+
+ # ...and comment this one out:
+
+-LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++
++#LINK_FLAGS += -L/usr/local/lib -ldsp -lstdc++
+
+
+ ST_TARGET = libconvolve.a
+@@ -53,5 +52,5 @@
+ cp $(TARGET) $(PREFIX)/lib/
+ cp $(ST_TARGET) $(PREFIX)/lib/
+ cp convolve.h $(PREFIX)/include/
+- ldconfig -n $(PREFIX)/lib
++ ln -s $(PREFIX)/lib/$(TARGET) $(PREFIX)/lib/$(SONAME) || true
+ ln -s $(PREFIX)/lib/$(SONAME) $(PREFIX)/lib/$(SMALLNAME) || true