summaryrefslogtreecommitdiff
path: root/games/bsnes/bsnes-v091.patch
blob: 2cf1aa1417667f5e329a782f9b245a3227d8c9c7 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
diff -crB bsnes_v091-source/bsnes/target-ethos/Makefile bsnes_v091-source-hh/bsnes/target-ethos/Makefile
*** bsnes_v091-source/bsnes/target-ethos/Makefile	2012-08-09 19:32:19.000000000 -0400
--- bsnes_v091-source-hh/bsnes/target-ethos/Makefile	2012-11-01 22:06:29.000000000 -0400
***************
*** 16,22 ****
  # 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 += input.sdl input.x
  else ifeq ($(platform),osx)
    ruby :=
--- 16,22 ----
  # platform
  ifeq ($(platform),x)
    ruby := video.glx video.xv video.sdl
!   ruby += audio.alsa audio.openal audio.oss audio.ao
    ruby += input.sdl input.x
  else ifeq ($(platform),osx)
    ruby :=
***************
*** 76,93 ****
  	sourcery $(ui)/resource/resource.xml $(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.xml ~/.config/$(name)/cheats.xml
! 	chmod -R 777 ~/.config/$(name)
  endif
  
  uninstall:
--- 76,102 ----
  	sourcery $(ui)/resource/resource.xml $(ui)/resource/resource.cpp $(ui)/resource/resource.hpp
  
  install:
! # edit: hackedhead 2012-11-01: process installation as root for slackware, drop profile into /usr/share
! # 	we'll add a note in the readme about where to get the config files
! #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)
! 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
! 
! #	mkdir -p ~/.config/$(name)
! #	cp -R profile/* ~/.config/$(name)
! #	cp data/cheats.xml ~/.config/$(name)/cheats.xml
! #	chmod -R 777 ~/.config/$(name)
! 
! 	install -d -m 644 $(DESTDIR)$(prefix)/share/$(name)/profile
! 	cp -R profile/* $(DESTDIR)$(prefix)/share/$(name)/profile
! 	cp data/cheats.xml $(DESTDIR)$(prefix)/share/$(name)/profile
! 	chmod -R 644 $(DESTDIR)$(prefix)/share/$(name)/profile
! 
  endif
  
  uninstall:
diff -crB bsnes_v091-source/purify/Makefile bsnes_v091-source-hh/purify/Makefile
*** bsnes_v091-source/purify/Makefile	2012-08-06 17:54:40.000000000 -0400
--- bsnes_v091-source-hh/purify/Makefile	2012-11-01 21:56:33.000000000 -0400
***************
*** 4,10 ****
  application := purify
  resource :=
  flags := -std=gnu++0x -I. -O3 -fomit-frame-pointer
! link := -s
  
  ifeq ($(platform),win)
    resource := resource.o
--- 4,10 ----
  application := purify
  resource :=
  flags := -std=gnu++0x -I. -O3 -fomit-frame-pointer
! link := -s -lX11
  
  ifeq ($(platform),win)
    resource := resource.o