Package: wah-plugins / 0.1.0-1

01-makefile.patch Patch series | download
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
Description: Various changes to the Makefile.
 Set DESTDIR variable.
 Pass LDFLAGS to the linker.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: wah-plugins/Makefile
===================================================================
--- wah-plugins.orig/Makefile	2014-03-09 16:58:29.448709170 +0100
+++ wah-plugins/Makefile	2014-03-09 17:00:24.557430223 +0100
@@ -19,8 +19,11 @@
 # --------------------------------------------------------------------------
 
 
+DESTDIR =
+
 CPPFLAGS += -I. -D_REENTRANT
 CXXFLAGS += -ffast-math -fPIC -Wall -O3
+LDFLAGS	+=
 
 
 all:	autowah.so
@@ -30,13 +33,13 @@
 WAHPLUGINS_H = ladspaplugin.h autowah.h
 
 autowah.so:	$(WAHPLUGINS_O)
-	g++ -shared  -o autowah.so $(WAHPLUGINS_O)
+	g++ -shared $(LDFLAGS) -o autowah.so $(WAHPLUGINS_O)
 
 $(WAHPLUGINS_O):	$(WAHPLUGINS_H)
 
 
 install:	all
-	cp  *.so /usr/lib/ladspa
+	cp  *.so $(DESTDIR)/usr/lib/ladspa
 
 clean:
 	/bin/rm -f *~ *.o *.so