summaryrefslogtreecommitdiff
blob: adf2866e1fdfaf19860765e26643ce943da3a1b6 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
From a5b0086e76672083f91ddb4d0350cc99c19604fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 11 Dec 2013 17:12:58 +0100
Subject: [PATCH 1/2] Fix install paths for Gentoo.

---
 data/Makefile.am              | 2 +-
 gui/Makefile.am               | 6 +++---
 libpcsxcore/Makefile.am       | 2 +-
 pixmaps/Makefile.am           | 2 +-
 plugins/bladesio1/Makefile.am | 6 +++---
 plugins/dfcdrom/Makefile.am   | 6 +++---
 plugins/dfinput/Makefile.am   | 6 +++---
 plugins/dfnet/Makefile.am     | 6 +++---
 plugins/dfsound/Makefile.am   | 6 +++---
 plugins/dfxvideo/Makefile.am  | 6 +++---
 plugins/peopsxgl/Makefile.am  | 8 ++++----
 11 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/data/Makefile.am b/data/Makefile.am
index 8f1ce6a..9df8e87 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,7 +1,7 @@
 glade_DATA = pcsxr.ui
 gladedir = $(datadir)/pcsxr
 
-desktopdir = $(datadir)/applications
+desktopdir = $(datarootdir)/applications
 desktop_DATA = pcsxr.desktop
 
 EXTRA_DIST = $(glade_DATA) pcsxr.desktop
diff --git a/gui/Makefile.am b/gui/Makefile.am
index 5feb39e..6146ef0 100644
--- a/gui/Makefile.am
+++ b/gui/Makefile.am
@@ -1,10 +1,10 @@
 AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"${datadir}/pcsxr/\" \
-	-DPIXMAPDIR=\"${datadir}/pixmaps/\" \
-	-DLOCALE_DIR=\"${datadir}/locale/\" \
+	-DPIXMAPDIR=\"${datarootdir}/pixmaps/\" \
+	-DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	$(GTK3_CFLAGS) \
 	-I$(top_srcdir)/libpcsxcore -I$(top_srcdir)/include \
 	-DPSEMU_DATA_DIR=\"${datadir}/psemu\" \
-	-DDEF_PLUGIN_DIR=\"${libdir}/games/psemu\"
+	-DDEF_PLUGIN_DIR=\"${libdir}/psemu\"
 
 bin_PROGRAMS = pcsxr
 
diff --git a/libpcsxcore/Makefile.am b/libpcsxcore/Makefile.am
index 1ae5389..9571ea3 100644
--- a/libpcsxcore/Makefile.am
+++ b/libpcsxcore/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-I$(top_srcdir)/include
 
 noinst_LIBRARIES = libpcsxcore.a
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
index e77fda4..f7e10da 100644
--- a/pixmaps/Makefile.am
+++ b/pixmaps/Makefile.am
@@ -1,7 +1,7 @@
 pixmapdir = "$(datadir)/pcsxr"
 pixmap_DATA = pcsxr.png iso-open.png iso-reopen.png cd.png cdr.png gpu.png memcard.png pad.png play.png sio1.png spu.png
 
-icondir = "$(datadir)/pixmaps"
+icondir = "$(datarootdir)/pixmaps"
 icon_DATA = pcsxr-icon.png
 
 EXTRA_DIST = pcsxr.png iso-open.png iso-reopen.png cd.png cdr.png gpu.png memcard.png pad.png play.png sio1.png spu.png pcsxr-icon.png
diff --git a/plugins/bladesio1/Makefile.am b/plugins/bladesio1/Makefile.am
index 5b7fee4..75d9588 100644
--- a/plugins/bladesio1/Makefile.am
+++ b/plugins/bladesio1/Makefile.am
@@ -1,12 +1,12 @@
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libBladeSio1.la
 
 libBladeSio1_la_SOURCES = cfg.c sio1.c sio1.h fifo.c fifo.h connection.c connection.h
 libBladeSio1_la_LDFLAGS = -module -avoid-version
 
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) \
 	-I../../libpcsxcore -I../../include
diff --git a/plugins/dfcdrom/Makefile.am b/plugins/dfcdrom/Makefile.am
index b4c729f..297b4f9 100644
--- a/plugins/dfcdrom/Makefile.am
+++ b/plugins/dfcdrom/Makefile.am
@@ -1,5 +1,5 @@
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libDFCdrom.la
 
@@ -21,7 +21,7 @@ libDFCdrom_la_CFLAGS += -DUSE_LIBCDIO=1 $(LIBCDIO_CFLAGS)
 libDFCdrom_la_LIBADD += $(LIBCDIO_LIBS)
 endif
 
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) \
 	-I../../libpcsxcore -I../../include
diff --git a/plugins/dfinput/Makefile.am b/plugins/dfinput/Makefile.am
index f270ca7..0f7f9b5 100644
--- a/plugins/dfinput/Makefile.am
+++ b/plugins/dfinput/Makefile.am
@@ -1,5 +1,5 @@
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libDFInput.la
 
@@ -7,7 +7,7 @@ libDFInput_la_SOURCES = cfg.c pad.c pad.h sdljoy.c xkb.c analog.c util.c util.h
 libDFInput_la_LDFLAGS = -module -avoid-version 
 libDFInput_la_LIBADD = -lpthread -lX11 $(SDL2_LIBS) $(SDL_LIBS)
 
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) \
 	-I../../include -I../../libpcsxcore $(SDL2_CFLAGS) $(SDL_CFLAGS)
diff --git a/plugins/dfnet/Makefile.am b/plugins/dfnet/Makefile.am
index 004df63..fff3dba 100644
--- a/plugins/dfnet/Makefile.am
+++ b/plugins/dfnet/Makefile.am
@@ -1,12 +1,12 @@
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libDFNet.la
 
 libDFNet_la_SOURCES = dfnet.c dfnet.h unix.c cfg.c
 libDFNet_la_LDFLAGS = -module -avoid-version
 
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) \
 	-I../../libpcsxcore -I../../include
diff --git a/plugins/dfsound/Makefile.am b/plugins/dfsound/Makefile.am
index 5325555..15515b8 100644
--- a/plugins/dfsound/Makefile.am
+++ b/plugins/dfsound/Makefile.am
@@ -1,7 +1,7 @@
 AM_CPPFLAGS = -I../../include
 
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libDFSound.la
 
@@ -46,7 +46,7 @@ libDFSound_la_CPPFLAGS += -DUSENULL=1
 endif
 
 bin_PROGRAMS = cfgDFSound
-cfgDFSound_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+cfgDFSound_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) $(AM_CPPFLAGS)
 cfgDFSound_SOURCES = spucfg-0.1df/main.c
diff --git a/plugins/dfxvideo/Makefile.am b/plugins/dfxvideo/Makefile.am
index 2af76fd..0515690 100644
--- a/plugins/dfxvideo/Makefile.am
+++ b/plugins/dfxvideo/Makefile.am
@@ -6,14 +6,14 @@ SUFFIXES = .asm
 	$(LIBTOOL) --tag=CC --mode=compile \
 	$(STRIP_FPIC) $(NASM) -f elf -d ELF -I${srcdir}/ $<
 
-AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS)\
 	-I../../libpcsxcore \
 	-I../../include
 
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libDFXVideo.la
 
diff --git a/plugins/peopsxgl/Makefile.am b/plugins/peopsxgl/Makefile.am
index 99c9554..e3af49f 100644
--- a/plugins/peopsxgl/Makefile.am
+++ b/plugins/peopsxgl/Makefile.am
@@ -1,11 +1,11 @@
-AM_CPPFLAGS = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \
-	-DLOCALE_DIR=\"${datadir}/locale/\" \
+AM_CPPFLAGS = -DPIXMAPDIR=\"${datarootdir}/pixmaps/\" \
+	-DLOCALE_DIR=\"${datarootdir}/locale/\" \
 	-DDATADIR=\"${datadir}/psemu/\" \
 	$(GTK3_CFLAGS) \
 	-I../../libpcsxcore -I../../include
 
-bindir = @libdir@/games/psemu/
-libdir = @libdir@/games/psemu/
+bindir = @libdir@/psemu/
+libdir = @libdir@/psemu/
 
 lib_LTLIBRARIES = libpeopsxgl.la
 
-- 
1.8.5.1