1 $NetBSD: patch-aa,v 1.3 2009/07/07 15:23:05 joerg Exp $
3 --- makefile.orig 2007-11-06 10:42:45.000000000 +0000
7 # Change these if you want to install somewhere else.
9 -INSTALL_PLUGINS_DIR = /usr/lib/ladspa/
10 -INSTALL_INCLUDE_DIR = /usr/include/
11 -INSTALL_BINARY_DIR = /usr/bin/
12 +INSTALL_PLUGINS_DIR = ${PREFIX}/lib/ladspa/
13 +INSTALL_INCLUDE_DIR = ${PREFIX}/include/
14 +INSTALL_BINARY_DIR = ${PREFIX}/bin/
16 ###############################################################################
18 @@ -14,8 +14,8 @@ INSTALL_BINARY_DIR = /usr/bin/
23 -CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
24 +LIBRARIES = $(DL_LIBS) -lm
25 +CFLAGS = $(INCLUDES) -Wall -Werror -fPIC
27 PLUGINS = ../plugins/amp.so \
29 @@ -25,8 +25,8 @@ PLUGINS = ../plugins/amp.so \
30 PROGRAMS = ../bin/analyseplugin \
38 ###############################################################################
40 @@ -38,8 +38,8 @@ CPP = c++
41 $(LD) -o ../plugins/$*.so plugins/$*.o -shared
43 ../plugins/%.so: plugins/%.cpp ladspa.h
44 - $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
45 - $(CPP) -o ../plugins/$*.so plugins/$*.o -shared
46 + $(CXX) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
47 + $(CXX) -o ../plugins/$*.so plugins/$*.o -shared
49 ###############################################################################
51 @@ -58,13 +58,13 @@ test: /tmp/test.wav ../snd/noise.wav alw
52 -sndfile-play /tmp/test.wav
56 - -mkdirhier $(INSTALL_PLUGINS_DIR)
57 - -mkdirhier $(INSTALL_INCLUDE_DIR)
58 - -mkdirhier $(INSTALL_BINARY_DIR)
59 - cp ../plugins/* $(INSTALL_PLUGINS_DIR)
60 - cp ladspa.h $(INSTALL_INCLUDE_DIR)
61 - cp ../bin/* $(INSTALL_BINARY_DIR)
63 + $(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(INSTALL_PLUGINS_DIR)
64 + $(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(INSTALL_INCLUDE_DIR)
65 + $(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(INSTALL_BINARY_DIR)
66 + $(BSD_INSTALL_DATA) ../plugins/* ${DESTDIR}$(INSTALL_PLUGINS_DIR)
67 + $(BSD_INSTALL_DATA) ladspa.h ${DESTDIR}$(INSTALL_INCLUDE_DIR)
68 + $(BSD_INSTALL_PROGRAM) ../bin/* ${DESTDIR}$(INSTALL_BINARY_DIR)
70 /tmp/test.wav: targets ../snd/noise.wav
72 @@ -82,7 +82,7 @@ install: targets
73 ../plugins/delay.so delay_5s 1 0.1 \
74 ../plugins/amp.so amp_mono 4 \
76 -targets: $(PLUGINS) $(PROGRAMS)
77 +all: $(PLUGINS) $(PROGRAMS)
79 ###############################################################################