aboutsummaryrefslogtreecommitdiffstats
path: root/audio/cadence/files/patch-Makefile
blob: 471b0af85f2c6ee28db2f858c560f53d57a4c54d (plain) (blame)
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
--- Makefile.orig	2018-10-28 19:12:08 UTC
+++ Makefile
@@ -12,11 +12,7 @@ PYUIC ?= pyuic5
 PYRCC ?= pyrcc5
 
 # Detect X11 rules dir
-ifeq "$(wildcard /etc/X11/Xsession.d/ )" ""
-	X11_RC_DIR = $(DESTDIR)/etc/X11/xinit/xinitrc.d/
-else
-	X11_RC_DIR = $(DESTDIR)/etc/X11/Xsession.d/
-endif
+	X11_RC_DIR = $(DESTDIR)$(PREFIX)/etc/X11/xinit/xinitrc.d/
 
 # -----------------------------------------------------------------------------------------------------------------------------------------
 
@@ -85,7 +81,7 @@ debug:
 
 install:
 	# Create directories
-	install -d $(DESTDIR)/etc/xdg/autostart/
+	install -d $(DESTDIR)$(PREFIX)/etc/xdg/autostart/
 	install -d $(DESTDIR)$(PREFIX)/bin/
 	install -d $(DESTDIR)$(PREFIX)/share/applications/
 	install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
@@ -120,7 +116,7 @@ install:
 		$(DESTDIR)$(PREFIX)/bin/
 
 	# Install desktop files
-	install -m 644 data/autostart/*.desktop $(DESTDIR)/etc/xdg/autostart/
+	install -m 644 data/autostart/*.desktop $(DESTDIR)$(PREFIX)/etc/xdg/autostart/
 	install -m 644 data/*.desktop           $(DESTDIR)$(PREFIX)/share/applications/
 
 	# Install icons, 16x16
@@ -171,7 +167,7 @@ install:
 	cp -r data/templates/* $(DESTDIR)$(PREFIX)/share/cadence/templates/
 
 	# Adjust PREFIX value in script files
-	sed -i "s?X-PREFIX-X?$(PREFIX)?" \
+	sed -i "" "s?X-PREFIX-X?$(PREFIX)?" \
 		$(DESTDIR)$(PREFIX)/bin/cadence \
 		$(DESTDIR)$(PREFIX)/bin/cadence-aloop-daemon \
 		$(DESTDIR)$(PREFIX)/bin/cadence-jacksettings \