Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mednafen/, games-emulation/mednafen/files/
Date: Tue, 29 Dec 2015 15:54:07
Message-Id: 1451404424.0ddb9fcbec1c779051df973a3d4a08821fb42b83.mr_bones_@gentoo
1 commit: 0ddb9fcbec1c779051df973a3d4a08821fb42b83
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 15:47:53 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 15:53:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ddb9fcb
7
8 games-emulation/mednafen: version bump
9
10 Package-Manager: portage-2.2.24
11
12 games-emulation/mednafen/Manifest | 1 +
13 .../mednafen/files/mednafen-0.9.38.7-cflags.patch | 28 +++
14 .../files/mednafen-0.9.38.7-localedir.patch | 278 +++++++++++++++++++++
15 .../mednafen/files/mednafen-0.9.38.7-zlib.patch | 27 ++
16 games-emulation/mednafen/mednafen-0.9.38.7.ebuild | 68 +++++
17 5 files changed, 402 insertions(+)
18
19 diff --git a/games-emulation/mednafen/Manifest b/games-emulation/mednafen/Manifest
20 index 95cfdb7..dd9924b 100644
21 --- a/games-emulation/mednafen/Manifest
22 +++ b/games-emulation/mednafen/Manifest
23 @@ -1 +1,2 @@
24 DIST mednafen-0.9.38.4.tar.bz2 3820560 SHA256 3298e2d5c03efbe638c2a98bf74435e306768461c65d2bb9b9a95e99dc463105 SHA512 3eb19a10e97cd285387fcf86eae09f550d248ab9c070750b1c0af0f334cce47ea375227df72cf7cdbc2193b311bab5e09108388a15634f694ef398b1a77ac3df WHIRLPOOL 17ae061668052fa33ce08b56d1aac75935bb91d02961d3dad042c07537ef15aa4374730652508941408764e7deb7cfe0969f80f32e6d642d20a32ac053bba491
25 +DIST mednafen-0.9.38.7.tar.bz2 3882418 SHA256 1bb3beef883a325c35d1a1ce14959c307a4c321f2ea29d4ddb216c6dd03aded8 SHA512 759c83928ef7a9e856dc7f546542ab1e7cbe944d0184a7693ce3b1466220233eb40c2b215100920920754eb5a93587bd8e2d8150e00ec9c93da1d518107e0d76 WHIRLPOOL 0cb94abdaa697558f3575c8e4d6e0a816888ace2b860797a8a947ddca3ae66e517dd044f9ce266e7a19ac6e16a56f91bc93db2bbc7a9817e5afcc75a93cb2f42
26
27 diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.7-cflags.patch b/games-emulation/mednafen/files/mednafen-0.9.38.7-cflags.patch
28 new file mode 100644
29 index 0000000..c43af81
30 --- /dev/null
31 +++ b/games-emulation/mednafen/files/mednafen-0.9.38.7-cflags.patch
32 @@ -0,0 +1,28 @@
33 +--- configure.ac.orig
34 ++++ configure.ac
35 +@@ -80,25 +80,6 @@
36 + AC_CHECK_LIB([z], [zlibVersion],[], AC_MSG_ERROR([*** zlib not found!]))
37 + LIBS="$LIBS -lz"
38 +
39 +-OPTIMIZER_FLAGS=""
40 +-
41 +-dnl -ffast-math removed January 12, 2013. Don't re-add it, nor any of its sub-options(ESPECIALLY not -funsafe-math-optimizations),
42 +-dnl it messes up certain code(NES resampler, for example) under certain conditions and alignments of the great celestial squid.
43 +-dnl
44 +-dnl In fact, let's explicitly disable it here with -fno-fast-math.
45 +-dnl
46 +-dnl -fomit-frame-pointer is required for some x86 inline assembly to compile.
47 +-dnl
48 +-dnl November 28, 2014: Use -fwrapv unconditionally instead of -fno-strict-overflow, -fno-strict-overflow is buggy
49 +-dnl and does not work as documented/implied.
50 +-dnl
51 +-AX_CFLAGS_GCC_OPTION([-fno-fast-math], OPTIMIZER_FLAGS)
52 +-AX_CFLAGS_GCC_OPTION([-fno-unsafe-math-optimizations], OPTIMIZER_FLAGS)
53 +-AX_CFLAGS_GCC_OPTION([-fno-aggressive-loop-optimizations], OPTIMIZER_FLAGS)
54 +-AX_CFLAGS_GCC_OPTION([-fomit-frame-pointer], OPTIMIZER_FLAGS)
55 +-AX_CFLAGS_GCC_OPTION([-fwrapv], OPTIMIZER_FLAGS)
56 +-
57 +-
58 + WARNING_FLAGS=""
59 + AX_CFLAGS_GCC_OPTION([-Wall], WARNING_FLAGS)
60 + AX_CFLAGS_GCC_OPTION([-Wshadow], WARNING_FLAGS)
61
62 diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.7-localedir.patch b/games-emulation/mednafen/files/mednafen-0.9.38.7-localedir.patch
63 new file mode 100644
64 index 0000000..5f2b3c6
65 --- /dev/null
66 +++ b/games-emulation/mednafen/files/mednafen-0.9.38.7-localedir.patch
67 @@ -0,0 +1,278 @@
68 +--- mednafen.orig/intl/Makefile.in
69 ++++ mednafen/intl/Makefile.in
70 +@@ -44,7 +44,7 @@
71 + includedir = @includedir@
72 + datarootdir = @datarootdir@
73 + datadir = @datadir@
74 +-localedir = $(datadir)/locale
75 ++localedir = /usr/share/locale
76 + gettextsrcdir = $(datadir)/gettext/intl
77 + aliaspath = $(localedir)
78 + subdir = intl
79 +--- mednafen.orig/src/cdplay/Makefile.am
80 ++++ mednafen/src/cdplay/Makefile.am
81 +@@ -1,5 +1,5 @@
82 + AUTOMAKE_OPTIONS = subdir-objects
83 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
84 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
85 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
86 +
87 + noinst_LIBRARIES = libcdplay.a
88 +--- mednafen.orig/src/demo/Makefile.am
89 ++++ mednafen/src/demo/Makefile.am
90 +@@ -1,5 +1,5 @@
91 + AUTOMAKE_OPTIONS = subdir-objects
92 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
93 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
94 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
95 +
96 + noinst_LIBRARIES = libdemo.a
97 +--- mednafen.orig/src/desa68/Makefile.am
98 ++++ mednafen/src/desa68/Makefile.am
99 +@@ -6,7 +6,7 @@
100 +
101 + AUTOMAKE_OPTIONS = subdir-objects
102 + AM_CFLAGS = @AM_CFLAGS@ -Wno-multichar
103 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
104 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
105 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
106 +
107 + noinst_LIBRARIES = libdesa68.a
108 +--- mednafen.orig/src/drivers/Makefile.am
109 ++++ mednafen/src/drivers/Makefile.am
110 +@@ -1,5 +1,5 @@
111 + AUTOMAKE_OPTIONS = subdir-objects
112 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @SDL_CFLAGS@
113 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @SDL_CFLAGS@
114 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
115 +
116 + noinst_LIBRARIES = libmdfnsdl.a
117 +--- mednafen.orig/src/drivers_dos/Makefile.am
118 ++++ mednafen/src/drivers_dos/Makefile.am
119 +@@ -1,5 +1,5 @@
120 + AUTOMAKE_OPTIONS = subdir-objects
121 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @SDL_CFLAGS@
122 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @SDL_CFLAGS@
123 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
124 +
125 + noinst_LIBRARIES = libmdfndos.a
126 +--- mednafen.orig/src/gb/Makefile.am
127 ++++ mednafen/src/gb/Makefile.am
128 +@@ -1,5 +1,5 @@
129 + AUTOMAKE_OPTIONS = subdir-objects
130 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
131 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
132 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
133 +
134 + noinst_LIBRARIES = libgb.a
135 +--- mednafen.orig/src/gba/Makefile.am
136 ++++ mednafen/src/gba/Makefile.am
137 +@@ -1,5 +1,5 @@
138 + AUTOMAKE_OPTIONS = subdir-objects
139 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
140 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
141 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
142 +
143 + noinst_LIBRARIES = libgba.a
144 +--- mednafen.orig/src/hw_cpu/Makefile.am
145 ++++ mednafen/src/hw_cpu/Makefile.am
146 +@@ -1,5 +1,5 @@
147 + AUTOMAKE_OPTIONS = subdir-objects
148 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
149 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
150 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
151 +
152 + noinst_LIBRARIES = libmdfnhwcpu.a
153 +--- mednafen.orig/src/hw_misc/Makefile.am
154 ++++ mednafen/src/hw_misc/Makefile.am
155 +@@ -1,5 +1,5 @@
156 + AUTOMAKE_OPTIONS = subdir-objects
157 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
158 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
159 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
160 +
161 + noinst_LIBRARIES = libmdfnhwmisc.a
162 +--- mednafen.orig/src/hw_sound/Makefile.am
163 ++++ mednafen/src/hw_sound/Makefile.am
164 +@@ -1,5 +1,5 @@
165 + AUTOMAKE_OPTIONS = subdir-objects
166 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
167 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
168 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
169 +
170 + noinst_LIBRARIES = libmdfnhwsound.a
171 +--- mednafen.orig/src/hw_video/Makefile.am
172 ++++ mednafen/src/hw_video/Makefile.am
173 +@@ -1,5 +1,5 @@
174 + AUTOMAKE_OPTIONS = subdir-objects
175 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
176 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
177 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
178 +
179 + noinst_LIBRARIES = libmdfnhwvideo.a
180 +--- mednafen.orig/src/lynx/Makefile.am
181 ++++ mednafen/src/lynx/Makefile.am
182 +@@ -1,5 +1,5 @@
183 + AUTOMAKE_OPTIONS = subdir-objects
184 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
185 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
186 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
187 +
188 + noinst_LIBRARIES = liblynx.a
189 +--- mednafen.orig/src/Makefile.am
190 ++++ mednafen/src/Makefile.am
191 +@@ -1,6 +1,6 @@
192 + SUBDIRS = trio
193 + AUTOMAKE_OPTIONS = subdir-objects
194 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
195 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
196 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
197 +
198 + bin_PROGRAMS = mednafen
199 +--- mednafen.orig/src/md/Makefile.am
200 ++++ mednafen/src/md/Makefile.am
201 +@@ -1,5 +1,5 @@
202 + AUTOMAKE_OPTIONS = subdir-objects
203 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
204 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
205 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
206 +
207 + noinst_LIBRARIES = libmd.a
208 +--- mednafen.orig/src/nes/Makefile.am
209 ++++ mednafen/src/nes/Makefile.am
210 +@@ -1,5 +1,5 @@
211 + AUTOMAKE_OPTIONS = subdir-objects
212 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
213 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
214 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
215 +
216 + noinst_LIBRARIES = libnes.a
217 +--- mednafen.orig/src/ngp/Makefile.am
218 ++++ mednafen/src/ngp/Makefile.am
219 +@@ -1,5 +1,5 @@
220 + AUTOMAKE_OPTIONS = subdir-objects
221 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -fno-strict-aliasing
222 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ -fno-strict-aliasing
223 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
224 +
225 + noinst_LIBRARIES = libngp.a
226 +--- mednafen.orig/src/pce/Makefile.am
227 ++++ mednafen/src/pce/Makefile.am
228 +@@ -1,5 +1,5 @@
229 + AUTOMAKE_OPTIONS = subdir-objects
230 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
231 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
232 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
233 +
234 + noinst_LIBRARIES = libpce.a
235 +--- mednafen.orig/src/pce_fast/Makefile.am
236 ++++ mednafen/src/pce_fast/Makefile.am
237 +@@ -1,5 +1,5 @@
238 + AUTOMAKE_OPTIONS = subdir-objects
239 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
240 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
241 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
242 +
243 + noinst_LIBRARIES = libpce_fast.a
244 +--- mednafen.orig/src/pcfx/Makefile.am
245 ++++ mednafen/src/pcfx/Makefile.am
246 +@@ -1,5 +1,5 @@
247 + AUTOMAKE_OPTIONS = subdir-objects
248 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
249 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
250 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
251 +
252 + noinst_LIBRARIES = libpcfx.a
253 +--- mednafen.orig/src/psx/Makefile.am
254 ++++ mednafen/src/psx/Makefile.am
255 +@@ -1,5 +1,5 @@
256 + AUTOMAKE_OPTIONS = subdir-objects
257 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
258 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
259 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
260 +
261 + noinst_LIBRARIES = libpsx.a
262 +--- mednafen.orig/src/quicklz/Makefile.am
263 ++++ mednafen/src/quicklz/Makefile.am
264 +@@ -1,6 +1,6 @@
265 + AM_CFLAGS = @AM_CFLAGS@ -fno-strict-aliasing -Wno-shadow -Wno-unused-but-set-variable
266 + AUTOMAKE_OPTIONS = subdir-objects
267 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -fno-strict-aliasing
268 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ -fno-strict-aliasing
269 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
270 +
271 + noinst_LIBRARIES = libmdfnquicklz.a
272 +--- mednafen.orig/src/sexyal/Makefile.am
273 ++++ mednafen/src/sexyal/Makefile.am
274 +@@ -1,5 +1,5 @@
275 + AUTOMAKE_OPTIONS = subdir-objects
276 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @SDL_CFLAGS@
277 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @SDL_CFLAGS@
278 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
279 +
280 + noinst_LIBRARIES = libsexyal.a
281 +--- mednafen.orig/src/sms/Makefile.am
282 ++++ mednafen/src/sms/Makefile.am
283 +@@ -1,5 +1,5 @@
284 + AUTOMAKE_OPTIONS = subdir-objects
285 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
286 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
287 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
288 +
289 + noinst_LIBRARIES = libsms.a
290 +--- mednafen.orig/src/snes/Makefile.am
291 ++++ mednafen/src/snes/Makefile.am
292 +@@ -1,7 +1,7 @@
293 + AM_CFLAGS = @AM_CFLAGS@ @SNES_EXTRA_FLAGS@
294 + AM_CXXFLAGS = @AM_CXXFLAGS@ @SNES_EXTRA_FLAGS@ @SNES_EXTRA_CXXFLAGS@
295 + AUTOMAKE_OPTIONS = subdir-objects
296 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -DNOMINMAX
297 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ -DNOMINMAX
298 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl -I$(srcdir)/src/lib
299 +
300 + noinst_LIBRARIES = libsnes.a
301 +--- mednafen.orig/src/snes_faust/Makefile.am
302 ++++ mednafen/src/snes_faust/Makefile.am
303 +@@ -1,5 +1,5 @@
304 + AUTOMAKE_OPTIONS = subdir-objects
305 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
306 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
307 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
308 +
309 + noinst_LIBRARIES = libsnes_faust.a
310 +--- mednafen.orig/src/sound/Makefile.am
311 ++++ mednafen/src/sound/Makefile.am
312 +@@ -1,5 +1,5 @@
313 + AUTOMAKE_OPTIONS = subdir-objects
314 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
315 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
316 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
317 +
318 + noinst_LIBRARIES = libmdfnsound.a
319 +--- mednafen.orig/src/trio/Makefile.am
320 ++++ mednafen/src/trio/Makefile.am
321 +@@ -1,5 +1,5 @@
322 + AUTOMAKE_OPTIONS = subdir-objects
323 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @TRIO_CFLAGS@
324 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ @TRIO_CFLAGS@
325 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
326 +
327 + noinst_LIBRARIES = libtrio.a
328 +--- mednafen.orig/src/vb/Makefile.am
329 ++++ mednafen/src/vb/Makefile.am
330 +@@ -1,5 +1,5 @@
331 + AUTOMAKE_OPTIONS = subdir-objects
332 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -fno-strict-aliasing
333 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@ -fno-strict-aliasing
334 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
335 +
336 + noinst_LIBRARIES = libvb.a
337 +--- mednafen.orig/src/wswan/Makefile.am
338 ++++ mednafen/src/wswan/Makefile.am
339 +@@ -1,5 +1,5 @@
340 + AUTOMAKE_OPTIONS = subdir-objects
341 +-DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
342 ++DEFS = -DLOCALEDIR=\"/usr/share/locale\" @DEFS@
343 + DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
344 +
345 + noinst_LIBRARIES = libwswan.a
346
347 diff --git a/games-emulation/mednafen/files/mednafen-0.9.38.7-zlib.patch b/games-emulation/mednafen/files/mednafen-0.9.38.7-zlib.patch
348 new file mode 100644
349 index 0000000..510fb1c
350 --- /dev/null
351 +++ b/games-emulation/mednafen/files/mednafen-0.9.38.7-zlib.patch
352 @@ -0,0 +1,27 @@
353 +--- mednafen.orig/include/mednafen/compress/Makefile.am.inc
354 ++++ mednafen/include/mednafen/compress/Makefile.am.inc
355 +@@ -1 +1 @@
356 +-mednafen_SOURCES += compress/minilzo.c compress/ioapi.c compress/unzip.c compress/GZFileStream.cpp compress/ZLInflateFilter.cpp
357 ++mednafen_SOURCES += compress/minilzo.c compress/ioapi.c compress/GZFileStream.cpp compress/ZLInflateFilter.cpp
358 +--- mednafen.orig/include/mednafen/file.cpp
359 ++++ mednafen/include/mednafen/file.cpp
360 +@@ -29,7 +29,7 @@
361 + #include <errno.h>
362 + #include <trio/trio.h>
363 +
364 +-#include "compress/unzip.h"
365 ++#include <minizip/unzip.h>
366 +
367 + #include "file.h"
368 + #include "general.h"
369 +--- mednafen.orig/include/mednafen/Makefile.am
370 ++++ mednafen/include/mednafen/Makefile.am
371 +@@ -6,7 +6,7 @@
372 + bin_PROGRAMS = mednafen
373 +
374 + mednafen_SOURCES = debug.cpp error.cpp mempatcher.cpp settings.cpp endian.cpp mednafen.cpp git.cpp file.cpp general.cpp memory.cpp netplay.cpp state.cpp state_rewind.cpp movie.cpp player.cpp PSFLoader.cpp SNSFLoader.cpp SPCReader.cpp tests.cpp qtrecord.cpp Stream.cpp MemoryStream.cpp FileStream.cpp IPSPatcher.cpp
375 +-mednafen_LDADD = trio/libtrio.a
376 ++mednafen_LDADD = trio/libtrio.a -lminizip
377 + mednafen_DEPENDENCIES = trio/libtrio.a
378 +
379 + if HAVE_SDL
380
381 diff --git a/games-emulation/mednafen/mednafen-0.9.38.7.ebuild b/games-emulation/mednafen/mednafen-0.9.38.7.ebuild
382 new file mode 100644
383 index 0000000..025d9ca
384 --- /dev/null
385 +++ b/games-emulation/mednafen/mednafen-0.9.38.7.ebuild
386 @@ -0,0 +1,68 @@
387 +# Copyright 1999-2015 Gentoo Foundation
388 +# Distributed under the terms of the GNU General Public License v2
389 +# $Id$
390 +
391 +EAPI=5
392 +inherit autotools eutils flag-o-matic pax-utils games
393 +
394 +DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC and Lynx emulator"
395 +HOMEPAGE="http://mednafen.fobby.net/"
396 +SRC_URI="http://mednafen.fobby.net/releases/files/${P}.tar.bz2"
397 +
398 +LICENSE="GPL-2+"
399 +SLOT="0"
400 +KEYWORDS="~amd64 ~ppc ~x86"
401 +IUSE="alsa altivec cjk debugger jack nls pax_kernel"
402 +
403 +RDEPEND="virtual/opengl
404 + media-libs/libsndfile
405 + dev-libs/libcdio
406 + media-libs/libsdl[sound,joystick,opengl,video]
407 + media-libs/sdl-net
408 + sys-libs/zlib[minizip]
409 + alsa? ( media-libs/alsa-lib )
410 + jack? ( media-sound/jack-audio-connection-kit )
411 + nls? ( virtual/libintl )"
412 +DEPEND="${RDEPEND}
413 + virtual/pkgconfig
414 + nls? ( sys-devel/gettext )"
415 +
416 +S=${WORKDIR}/${PN}
417 +
418 +pkg_pretend() {
419 + if has ccache ${FEATURES} ; then
420 + ewarn
421 + ewarn "If you experience build failure, try turning off ccache in FEATURES."
422 + ewarn
423 + fi
424 +}
425 +
426 +src_prepare() {
427 + epatch \
428 + "${FILESDIR}"/${P}-localedir.patch \
429 + "${FILESDIR}"/${P}-zlib.patch \
430 + "${FILESDIR}"/${P}-cflags.patch
431 + eautoreconf
432 +}
433 +
434 +src_configure() {
435 + # very sensitive code (bug #539992)
436 + strip-flags
437 + append-flags -fomit-frame-pointer -fwrapv
438 + egamesconf \
439 + $(use_enable alsa) \
440 + $(use_enable altivec) \
441 + $(use_enable cjk cjk-fonts) \
442 + $(use_enable debugger) \
443 + $(use_enable jack) \
444 + $(use_enable nls)
445 +}
446 +
447 +src_install() {
448 + DOCS="Documentation/cheats.txt ChangeLog TODO" \
449 + default
450 + if use pax_kernel; then
451 + pax-mark m "${D}${GAMES_BINDIR}"/mednafen || die
452 + fi
453 + prepgamesdirs
454 +}