Description: added DESTDIR support to build
Author: IOhannes m zmölnig
Last-Update: 2013-12-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pdp.orig/scaf/Makefile
+++ pdp/scaf/Makefile
@@ -29,12 +29,12 @@
 	gcc -rdynamic -shared -o pdp_scaf.pd_linux pdp/*.o $(PDP_CA_LIBS) $(LDFLAGS)
 
 install: all
-	install -d $(prefix)/lib/scaf
-	install -m 755 compiler/scafc $(prefix)/bin || echo failed
-	install -m 755 compiler/scafc.pl $(prefix)/lib/scaf || echo failed
-	install -m 644 compiler/kernel.scaf $(prefix)/lib/scaf || echo failed
-	install -m 644 compiler/scafmacro.s $(prefix)/lib/scaf || echo failed
-	install -m 644 compiler/optim.rules $(prefix)/lib/scaf || echo failed
-	install -m 755 rules/carules.scafo $(prefix)/lib/scaf/default.scafo || echo failed
-	install -m 755 pdp_scaf.pd_linux $(prefix)/lib/pd/extra
-	install -m 644 doc/*.pd $(prefix)/lib/pd/doc/5.reference
+	install -d $(DESTDIR)$(prefix)/lib/scaf
+	install -m 755 compiler/scafc $(DESTDIR)$(prefix)/bin || echo failed
+	install -m 755 compiler/scafc.pl $(DESTDIR)$(prefix)/lib/scaf || echo failed
+	install -m 644 compiler/kernel.scaf $(DESTDIR)$(prefix)/lib/scaf || echo failed
+	install -m 644 compiler/scafmacro.s $(DESTDIR)$(prefix)/lib/scaf || echo failed
+	install -m 644 compiler/optim.rules $(DESTDIR)$(prefix)/lib/scaf || echo failed
+	install -m 755 rules/carules.scafo $(DESTDIR)$(prefix)/lib/scaf/default.scafo || echo failed
+	install -m 755 pdp_scaf.pd_linux $(DESTDIR)$(prefix)/lib/pd/extra
+	install -m 644 doc/*.pd $(DESTDIR)$(prefix)/lib/pd/doc/5.reference
