freebsd-ports/audio/libconvolve/files/patch-Makefile
Martin Wilke 4c69167eb4 Simple C library for partitioned convolution.
WWW:	http://tapas.affenbande.org/wordpress/?page_id=9

PR:		ports/111128
Submitted by:	trasz <trasz at pin.if.uz.zgora.pl>
2007-04-09 17:46:35 +00:00

32 lines
1,015 B
Text

--- 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