Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / ladspa / patches / patch-aa
blob7b7cf173b0b2ce769e5e6d72c3bab50381867071
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
4 +++ makefile
5 @@ -4,9 +4,9 @@
6  #
7  # Change these if you want to install somewhere else.
8  
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  ###############################################################################
17  #
18 @@ -14,8 +14,8 @@ INSTALL_BINARY_DIR    =       /usr/bin/
19  #
21  INCLUDES       =       -I.
22 -LIBRARIES      =       -ldl -lm
23 -CFLAGS         =       $(INCLUDES) -Wall -Werror -O3 -fPIC
24 +LIBRARIES      =       $(DL_LIBS) -lm
25 +CFLAGS         =       $(INCLUDES) -Wall -Werror -fPIC
26  CXXFLAGS       =       $(CFLAGS)
27  PLUGINS                =       ../plugins/amp.so                               \
28                         ../plugins/delay.so                             \
29 @@ -25,8 +25,8 @@ PLUGINS               =       ../plugins/amp.so                               \
30  PROGRAMS       =       ../bin/analyseplugin                            \
31                         ../bin/applyplugin                              \
32                         ../bin/listplugins
33 -CC             =       cc
34 -CPP            =       c++
35 +#CC            =       cc
36 +#CPP           =       c++
38  ###############################################################################
39  #
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  ###############################################################################
50  #
51 @@ -58,13 +58,13 @@ test:       /tmp/test.wav ../snd/noise.wav alw
52         -sndfile-play /tmp/test.wav
53         @echo Test complete.
55 -install:       targets
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)
62 +install:
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
71         ../bin/listplugins
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  ###############################################################################
80  #