summaryrefslogtreecommitdiff
path: root/audio/ladspa/patches/patch-aa
blob: a5522729afde7daf1482f1797008c4b670fd9ba8 (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
78
79
80
81
82
83
84
85
86
87
88
$NetBSD: patch-aa,v 1.1.1.1 2005/01/12 13:57:51 xtraeme Exp $

--- makefile.orig	2004-02-28 17:30:22.000000000 +0100
+++ makefile	2004-02-28 17:35:17.000000000 +0100
@@ -5,9 +5,9 @@
 # Change these if you want to install somewhere else. In particularly
 # you may wish to remove the middle "local/" part of each entry.
 
-INSTALL_PLUGINS_DIR	=	/usr/local/lib/ladspa/
-INSTALL_INCLUDE_DIR	=	/usr/include/
-INSTALL_BINARY_DIR	=	/usr/local/bin/
+INSTALL_PLUGINS_DIR	=	${PREFIX}/lib/ladspa
+INSTALL_INCLUDE_DIR	=	${PREFIX}/include
+INSTALL_BINARY_DIR	=	${PREFIX}/bin
 
 ###############################################################################
 #
@@ -15,8 +15,8 @@
 #
 
 INCLUDES	=	-I.
-LIBRARIES	=	-ldl -lm
-CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
+LIBRARIES	=	-lm
+CFLAGS		=	$(INCLUDES) -Wall -Werror -fPIC
 CXXFLAGS	=	$(CFLAGS)
 PLUGINS		=	../plugins/amp.so				\
 			../plugins/delay.so				\
@@ -26,8 +26,8 @@
 PROGRAMS	=	../bin/analyseplugin				\
 			../bin/applyplugin 				\
 			../bin/listplugins
-CC		=	cc
-CPP		=	c++
+#CC		=	cc
+#CPP		=	c++
 
 ###############################################################################
 #
@@ -39,32 +39,19 @@
 	$(LD) -o ../plugins/$*.so plugins/$*.o -shared
 
 ../plugins/%.so:	plugins/%.cpp ladspa.h
-	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
-	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
+	$(CXX) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
+	$(CXX) -o ../plugins/$*.so plugins/$*.o -shared
 
 ###############################################################################
 #
 # TARGETS
 #
 
-test:	/tmp/test.wav ../snd/noise.wav always
-	@echo ---------------------------------------------
-	@echo First listen to the white noise input signal:
-	@echo ---------------------------------------------
-	play ../snd/noise.wav
-	@echo -------------------------
-	@echo Compare to plugin output.
-	@echo -------------------------
-	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
-	play /tmp/test.wav
-
-install:	targets
-	-mkdirhier	$(INSTALL_PLUGINS_DIR)				\
-			$(INSTALL_INCLUDE_DIR)				\
-			$(INSTALL_BINARY_DIR)
-	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
-	cp ladspa.h $(INSTALL_INCLUDE_DIR)
-	cp ../bin/* $(INSTALL_BINARY_DIR)
+install:
+	$(BSD_INSTALL_DATA_DIR)	$(INSTALL_PLUGINS_DIR)
+	$(BSD_INSTALL_DATA) ../plugins/* $(INSTALL_PLUGINS_DIR)
+	$(BSD_INSTALL_DATA) ladspa.h $(INSTALL_INCLUDE_DIR)
+	$(BSD_INSTALL_PROGRAM) ../bin/* $(INSTALL_BINARY_DIR)
 
 /tmp/test.wav:	targets ../snd/noise.wav
 	../bin/listplugins
@@ -82,7 +69,7 @@
 				../plugins/delay.so delay_5s 1 0.1	\
 				../plugins/amp.so amp_mono 4		\
 
-targets:	$(PLUGINS) $(PROGRAMS)
+all:	$(PLUGINS) $(PROGRAMS)
 
 ###############################################################################
 #