~dobey/swh-lv2/packaging-dailies

« back to all changes in this revision

Viewing changes to patches/01-makefile.patch

  • Committer: Rodney Dawes
  • Date: 2015-12-29 22:15:56 UTC
  • Revision ID: dobey@wayofthemonkey.com-20151229221556-nu39tqi0i0trusmt
Initial daily build packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Adjust installation path.
 
2
 Set OS only if unset.
 
3
Author: Alessio Treglia <alessio@debian.org>
 
4
Forwarded: no
 
5
---
 
6
 Makefile |    8 ++++----
 
7
 1 file changed, 4 insertions(+), 4 deletions(-)
 
8
 
 
9
--- swh-lv2.orig/Makefile
 
10
+++ swh-lv2/Makefile
 
11
@@ -1,5 +1,5 @@
 
12
-PREFIX = /usr/local
 
13
-INSTALL_DIR = $(PREFIX)/lib/lv2
 
14
+PREFIX ?= /usr/local
 
15
+INSTALL_DIR = $(DESTDIR)/$(PREFIX)/lib/lv2
 
16
 
 
17
 VERSION = 1.0.15
 
18
 
 
19
@@ -34,7 +34,7 @@ FFT_PLUGINS = mbeq-swh.lv2 pitch_scale-s
 
20
 
 
21
 
 
22
 DARWIN := $(shell uname | grep Darwin)
 
23
-OS := $(shell uname -s)
 
24
+OS ?= $(shell uname -s)
 
25
 
 
26
 ifdef DARWIN
 
27
 EXT = dylib
 
28
@@ -89,7 +89,7 @@ dist-clean:
 
29
 real-clean:
 
30
        rm -f plugins/*/*.{c,ttl,$(EXT),o,in} util/*.o gverb/*.o
 
31
 
 
32
-install:
 
33
+install: install-system
 
34
        @echo 'use install-user to install in home or install-system to install system wide'
 
35
 
 
36
 install-system: INSTALL_DIR_REALLY=$(INSTALL_DIR)