summaryrefslogtreecommitdiff
path: root/games/higan/higan-v092.patch
blob: dcd3604b4a35eb83b2303620cd02e173f831f4c3 (plain)
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
43
44
45
46
47
48
49
50
diff -Nur higan_v092-source.orig/ananke/Makefile higan_v092-source/ananke/Makefile
--- higan_v092-source.orig/ananke/Makefile	2013-01-12 17:18:14.000000000 -0600
+++ higan_v092-source/ananke/Makefile	2013-06-03 15:46:20.887735981 -0500
@@ -26,7 +26,6 @@
 
 install: uninstall
 ifeq ($(platform),x)
-	if [ ! -d ~/.config/ananke ]; then mkdir ~/.config/ananke; fi
 	sudo cp libananke.so $(path)/libananke.so.1
 	sudo ln -s $(path)/libananke.so.1 $(path)/libananke.so
 endif
diff -Nur higan_v092-source.orig/higan/target-ethos/Makefile higan_v092-source/higan/target-ethos/Makefile
--- higan_v092-source.orig/higan/target-ethos/Makefile	2013-01-12 15:59:47.000000000 -0600
+++ higan_v092-source/higan/target-ethos/Makefile	2013-06-03 15:46:38.235227179 -0500
@@ -17,7 +17,7 @@
 # platform
 ifeq ($(platform),x)
   ruby := video.glx video.xv video.sdl
-  ruby += audio.alsa audio.openal audio.oss audio.pulseaudio audio.pulseaudiosimple audio.ao
+  ruby += audio.alsa audio.openal audio.oss audio.ao
   ruby += input.sdl input.x
 else ifeq ($(platform),osx)
   ruby :=
@@ -80,18 +80,14 @@
 	sourcery $(ui)/resource/resource.bml $(ui)/resource/resource.cpp $(ui)/resource/resource.hpp
 
 install:
-ifeq ($(USER),root)
-	@echo Please do not run make install as root.
-	@echo The installer needs to know your home directory to install important files.
-else ifeq ($(platform),x)
-	sudo install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/bin/$(name)
-	sudo install -D -m 644 data/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
-	sudo install -D -m 644 data/$(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop
-
-	mkdir -p ~/.config/$(name)
-	cp -R profile/* ~/.config/$(name)
-	cp data/cheats.bml ~/.config/$(name)/cheats.bml
-	chmod -R 777 ~/.config/$(name)
+ifeq ($(platform),x)
+	install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/bin/$(name)
+	install -D -m 644 data/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
+	install -D -m 644 data/$(name).desktop $(DESTDIR)$(prefix)/share/applications/$(name).desktop
+	install -d -m 755 $(DESTDIR)$(prefix)/share/$(name)/profile
+	cp -R profile/* $(DESTDIR)$(prefix)/share/$(name)/profile
+	install -m 644 data/cheats.bml $(DESTDIR)$(prefix)/share/$(name)/profile/cheats.bml
+	chmod -R 644 $(DESTDIR)$(prefix)/share/$(name)/profile/*/*
 endif
 
 uninstall: