1 |
commit: aca2d57a854ca7ef3c2a1b8f12342c9929262493 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 22 15:26:24 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 18:12:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aca2d57a |
7 |
|
8 |
games-emulation/zsnes: drop 1.51-r11 |
9 |
|
10 |
This seemed unusable either way, should be no reason to keep. |
11 |
Some of these patches may still be interesting, but they'll |
12 |
be available in history. |
13 |
|
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
games-emulation/zsnes/Manifest | 1 - |
17 |
.../zsnes/files/zsnes-1.51-CC-quotes.patch | 20 ---- |
18 |
.../zsnes/files/zsnes-1.51-ao-crash.patch | 30 ----- |
19 |
games-emulation/zsnes/files/zsnes-1.51-arch.patch | 77 ------------ |
20 |
.../zsnes/files/zsnes-1.51-buffer.patch | 85 -------------- |
21 |
games-emulation/zsnes/files/zsnes-1.51-c++17.patch | 76 ------------ |
22 |
.../zsnes/files/zsnes-1.51-cross-compile.patch | 34 ------ |
23 |
.../zsnes/files/zsnes-1.51-depbuild.patch | 24 ---- |
24 |
.../zsnes/files/zsnes-1.51-gcc-10.patch | 11 -- |
25 |
.../zsnes/files/zsnes-1.51-gcc43-20071031.patch | 39 ------- |
26 |
games-emulation/zsnes/files/zsnes-1.51-gcc47.patch | 15 --- |
27 |
.../zsnes/files/zsnes-1.51-libao-thread.patch | 25 ---- |
28 |
.../zsnes/files/zsnes-1.51-libpng.patch | 33 ------ |
29 |
.../zsnes/files/zsnes-1.51-libpng15.patch | 12 -- |
30 |
.../zsnes/files/zsnes-1.51-stack-align-v2.patch | 56 --------- |
31 |
.../zsnes/files/zsnes-1.51-stack-align-v3.patch | 40 ------- |
32 |
.../zsnes/files/zsnes-1.51-stack-align-v4.patch | 45 ------- |
33 |
games-emulation/zsnes/metadata.xml | 3 - |
34 |
games-emulation/zsnes/zsnes-1.51-r11.ebuild | 129 --------------------- |
35 |
19 files changed, 755 deletions(-) |
36 |
|
37 |
diff --git a/games-emulation/zsnes/Manifest b/games-emulation/zsnes/Manifest |
38 |
index 84c9a0519a79..eeb8097cf656 100644 |
39 |
--- a/games-emulation/zsnes/Manifest |
40 |
+++ b/games-emulation/zsnes/Manifest |
41 |
@@ -1,2 +1 @@ |
42 |
-DIST zsnes-1.51-20071031.tar.bz2 1072340 BLAKE2B d67c92e382ca130d4138d21fbb2effc06539d1c7e3aabf0339c9b7e773521daf2d3cb0bcef75991e1a4453fcc86903d3dead48d90806489c8b4bf7677f8ebf3b SHA512 b10373cf81b201a33dc60c728431d4f69d36de31fcf6f137b623ea206a2998f722dcd6132daec1d0bf14a05ae52f3ee9ecee4334517039be554db85c9f7b8274 |
43 |
DIST zsnes-2.0.9.tar.gz 935183 BLAKE2B a9b72ed15b2ed6d9e4631b4f12b2291ddca76a7236da008eba0f8b3ee27c94b98f00ff16a4929929adf484bc16554474b942b9f8306f46ab713e8a40e1f64624 SHA512 ea9244e98a175db9bceddf14e8212b3474ddaba1f508d698d8cfc43270fa3dabf51dca43dd30255272aba3cd061bf450bef04e005ce8087d550400e66faea565 |
44 |
|
45 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-CC-quotes.patch b/games-emulation/zsnes/files/zsnes-1.51-CC-quotes.patch |
46 |
deleted file mode 100644 |
47 |
index d3230d6d70d5..000000000000 |
48 |
--- a/games-emulation/zsnes/files/zsnes-1.51-CC-quotes.patch |
49 |
+++ /dev/null |
50 |
@@ -1,20 +0,0 @@ |
51 |
---- src/Makefile.in.orig |
52 |
-+++ src/Makefile.in |
53 |
-@@ -95,7 +95,7 @@ |
54 |
- %.o: %.cpp |
55 |
- @CXX@ @CXXFLAGS@ -o $@ -c $< |
56 |
- %.o %.h: %.psr $(PSR) |
57 |
-- ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $< |
58 |
-+ ./$(PSR) @PSRFLAGS@ -gcc "@CC@" -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $< |
59 |
- |
60 |
- default: main |
61 |
- all: main tools--- zsnes_1_51/src/Makefile.in.orig 2009-02-25 18:02:07.000000000 +0100 |
62 |
-@@ -133,7 +133,7 @@ |
63 |
- |
64 |
- include makefile.dep |
65 |
- makefile.dep: $(TOOL_D)/depbuild Makefile |
66 |
-- $(TOOL_D)/depbuild @CC@ "@CFLAGS@" @NASMPATH@ "@NFLAGS@" $(Z_OBJS) > makefile.dep |
67 |
-+ $(TOOL_D)/depbuild "@CC@" "@CFLAGS@" @NASMPATH@ "@NFLAGS@" $(Z_OBJS) > makefile.dep |
68 |
- |
69 |
- Makefile: Makefile.in config.status |
70 |
- ./config.status |
71 |
|
72 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-ao-crash.patch b/games-emulation/zsnes/files/zsnes-1.51-ao-crash.patch |
73 |
deleted file mode 100644 |
74 |
index 6ce142d9c27c..000000000000 |
75 |
--- a/games-emulation/zsnes/files/zsnes-1.51-ao-crash.patch |
76 |
+++ /dev/null |
77 |
@@ -1,30 +0,0 @@ |
78 |
-Fix frash in uninitialized driver_format.matrix. |
79 |
- |
80 |
-Thread 1 "zsnes" received signal SIGSEGV, Segmentation fault. |
81 |
-__strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50 |
82 |
-50 ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Нет такого файла или каталога. |
83 |
-(gdb) bt |
84 |
-#0 __strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50 |
85 |
-#1 0xf7e3c491 in _sanitize_matrix (maxchannels=2, matrix=0x1c00200 <error: Cannot access memory at address 0x1c00200>, device=device@entry=0x57057100) |
86 |
- at ../../libao-1.2.2/src/audio_out.c:634 |
87 |
-#2 0xf7e3e9bc in _open_device (driver_id=<optimized out>, format=format@entry=0xffffc638, options=options@entry=0x0, file=0x0) at ../../libao-1.2.2/src/audio_out.c:991 |
88 |
-#3 0xf7e3f579 in ao_open_live (driver_id=<optimized out>, format=0xffffc638, options=0x0) at ../../libao-1.2.2/src/audio_out.c:1337 |
89 |
-#4 0x5699fbb5 in SoundInit_ao () at linux/audio.c:197 |
90 |
-#5 InitSound () at linux/audio.c:338 |
91 |
-#6 0x569a2f7f in initwinvideo () at linux/sdllink.c:1080 |
92 |
-#7 0x569a07d3 in initvideo () |
93 |
-#8 0x56ad59bc in regptwa () |
94 |
-#9 0x56a3c490 in SA1tableG () |
95 |
-#10 0xffffc808 in ?? () |
96 |
-#11 0xf78619b5 in __libc_start_main (main=0x1, argc=1450015920, argv=0x0, init=0x566d7ce1 <_start+49>, fini=0x566d7c00 <main>, rtld_fini=0x1, stack_end=0xffffc8c4) at ../csu/libc-start.c:332 |
97 |
-#12 0x569cd000 in ?? () |
98 |
---- a/linux/audio.c |
99 |
-+++ b/linux/audio.c |
100 |
-@@ -166,6 +166,7 @@ static int SoundInit_ao() |
101 |
- if (driver_id < 0) { driver_id = ao_default_driver_id(); } |
102 |
- |
103 |
- ao_sample_format driver_format; |
104 |
-+ memset(&driver_format, 0, sizeof(driver_format)); |
105 |
- driver_format.bits = 16; |
106 |
- driver_format.channels = StereoSound+1; |
107 |
- driver_format.rate = freqtab[SoundQuality = ((SoundQuality > 6) ? 1 : SoundQuality)]; |
108 |
|
109 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-arch.patch b/games-emulation/zsnes/files/zsnes-1.51-arch.patch |
110 |
deleted file mode 100644 |
111 |
index b39549871b7f..000000000000 |
112 |
--- a/games-emulation/zsnes/files/zsnes-1.51-arch.patch |
113 |
+++ /dev/null |
114 |
@@ -1,77 +0,0 @@ |
115 |
---- a/configure.in.orig |
116 |
-+++ b/configure.in |
117 |
-@@ -233,72 +233,8 @@ |
118 |
- debug=no) |
119 |
- AC_MSG_CHECKING(if you want gdb friendly executable) |
120 |
- AC_MSG_RESULT($debug) |
121 |
--if test x$debug = xyes; then |
122 |
--dnl - It is easier to debug zsnes with no optimization enabled. |
123 |
-- ZSNESEXE="zsnesd" |
124 |
-- PSR_TEMP="" |
125 |
-- CFLAGS="$CFLAGS -Wall -W -DDEBUG -O0 -fno-omit-frame-pointer -gstabs3" |
126 |
-- NFLAGS="$NFLAGS -DDEBUG -g -F stabs -s -O0" |
127 |
--else |
128 |
-- ZSNESEXE="zsnes" |
129 |
-- PSR_TEMP=" rm -f t_\$*.c" |
130 |
-- |
131 |
-- CFLAGSBAK="$CFLAGS" |
132 |
-- AC_ARG_VAR(force_arch, [Force architecture to optimize GCC/G++ for]) |
133 |
-- AC_MSG_CHECKING(which cpu architecture to optimize for) |
134 |
-- if test x$force_arch != x; then |
135 |
-- CFLAGS="$CFLAGS -march=$force_arch" |
136 |
-- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]])], |
137 |
-- [AC_MSG_RESULT(forcing $force_arch)], |
138 |
-- [AC_MSG_RESULT($force_arch ??) |
139 |
-- AC_MSG_WARN(incorrect force_arch parameter) |
140 |
-- force_arch="" |
141 |
-- CFLAGS="$CFLAGSBAK" |
142 |
-- AC_MSG_CHECKING(for autodetected architecture)]) |
143 |
-- else |
144 |
-- if test x$ARCH_INFO = x; then |
145 |
-- case x$target in |
146 |
-- i686-*-*) |
147 |
-- AC_MSG_RESULT(guessing i686) |
148 |
-- CFLAGS="$CFLAGS -march=i686" |
149 |
-- ;; |
150 |
-- i586-*-*) |
151 |
-- AC_MSG_RESULT(guessing i586) |
152 |
-- CFLAGS="$CFLAGS -march=i586" |
153 |
-- ;; |
154 |
-- i486-*-*) |
155 |
-- AC_MSG_RESULT(guessing i486) |
156 |
-- CFLAGS="$CFLAGS -march=i486" |
157 |
-- ;; |
158 |
-- *) |
159 |
-- AC_MSG_RESULT(guessing i386) |
160 |
-- CFLAGS="$CFLAGS -march=i386" |
161 |
-- AC_MSG_WARN([This is not what you want, use --target or force-arch]) |
162 |
-- ;; |
163 |
-- esac |
164 |
-- else |
165 |
-- AC_MSG_RESULT($ARCH_INFO) |
166 |
-- CFLAGS="$CFLAGS -march=$ARCH_INFO" |
167 |
-- fi |
168 |
-- fi |
169 |
-- |
170 |
-- AC_ARG_ENABLE(release, |
171 |
-- [ --enable-release Build ultra-optimized release binary (zsnes)], |
172 |
-- release=$enableval, |
173 |
-- release=no) |
174 |
-- AC_MSG_CHECKING(if you want crazy optimizations) |
175 |
-- AC_MSG_RESULT($release) |
176 |
-- if test x$release = xyes; then |
177 |
-- if test x$force_arch = x; then |
178 |
-- AC_MSG_WARN([If you intend to distribute this binary, make sure you use force_arch and set to i586 (or whichever CPU Arch you intend for)]) |
179 |
-- fi |
180 |
-- CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr $STRIP -D__RELEASE__" |
181 |
-- NFLAGS="$NFLAGS -O99999999 -D__RELEASE__" |
182 |
-- else |
183 |
-- CFLAGS="$CFLAGS -O3 -fomit-frame-pointer $STRIP" |
184 |
-- NFLAGS="$NFLAGS -O1" |
185 |
-- fi |
186 |
--fi |
187 |
-+ZSNESEXE="zsnes" |
188 |
-+PSR_TEMP=" rm -f t_\$*.c" |
189 |
- CXXFLAGS="$CFLAGS -fno-rtti" |
190 |
- |
191 |
- if test x$enable_jma != xno; then |
192 |
|
193 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-buffer.patch b/games-emulation/zsnes/files/zsnes-1.51-buffer.patch |
194 |
deleted file mode 100644 |
195 |
index eb463682196d..000000000000 |
196 |
--- a/games-emulation/zsnes/files/zsnes-1.51-buffer.patch |
197 |
+++ /dev/null |
198 |
@@ -1,85 +0,0 @@ |
199 |
---- src/initc.c.fortify |
200 |
-+++ src/initc.c |
201 |
-@@ -1464,8 +1464,8 @@ |
202 |
- clearmem2(); |
203 |
- } |
204 |
- |
205 |
--extern unsigned char BRRBuffer[32]; |
206 |
--extern unsigned char echoon0; |
207 |
-+extern unsigned char BRRBuffer[]; |
208 |
-+extern unsigned char echoon0[]; |
209 |
- extern unsigned int PHdspsave; |
210 |
- extern unsigned int PHdspsave2; |
211 |
- unsigned char echobuf[90000]; |
212 |
-@@ -1479,7 +1479,7 @@ |
213 |
- memset(vidmemch4, 0, 4096); |
214 |
- memset(vidmemch8, 0, 4096); |
215 |
- memset(BRRBuffer, 0, PHdspsave); |
216 |
-- memset(&echoon0, 0, PHdspsave2); |
217 |
-+ memset(echoon0, 0, PHdspsave2); |
218 |
- memset(echobuf, 0, 90000); |
219 |
- memset(spcBuffera, 0, 65536*4+4096); |
220 |
- memset(DSPMem, 0, 256); |
221 |
-@@ -1822,7 +1822,7 @@ |
222 |
- |
223 |
- extern unsigned int nmiprevaddrl, nmiprevaddrh, nmirept, nmiprevline, nmistatus; |
224 |
- extern unsigned char spcnumread, yesoutofmemory; |
225 |
--extern unsigned char NextLineCache, sramsavedis, sndrot, regsbackup[3019]; |
226 |
-+extern unsigned char NextLineCache, sramsavedis, sndrot[], regsbackup[3019]; |
227 |
- extern unsigned int Voice0Freq, Voice1Freq, Voice2Freq, Voice3Freq; |
228 |
- extern unsigned int Voice4Freq, Voice5Freq, Voice6Freq, Voice7Freq; |
229 |
- extern unsigned int dspPAdj; |
230 |
-@@ -2621,7 +2621,7 @@ |
231 |
- } |
232 |
- |
233 |
- sramsavedis = 0; |
234 |
-- memcpy(&sndrot, regsbackup, 3019); |
235 |
-+ memcpy(sndrot, regsbackup, 3019); |
236 |
- |
237 |
- if (yesoutofmemory) { asm_call(outofmemfix); } |
238 |
- asm_call(GUIDoReset); |
239 |
---- src/zstate.c.fortify |
240 |
-+++ src/zstate.c |
241 |
-@@ -99,15 +99,15 @@ |
242 |
- copy_func(buffer, &cycpbl, 4); |
243 |
- copy_func(buffer, &cycpblt, 4); |
244 |
- //SNES PPU Register status |
245 |
-- copy_func(buffer, &sndrot, 3019); |
246 |
-+ copy_func(buffer, sndrot, 3019); |
247 |
- } |
248 |
- |
249 |
- static void copy_spc_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) |
250 |
- { |
251 |
- //SPC stuff, DSP stuff |
252 |
- copy_func(buffer, SPCRAM, PHspcsave); |
253 |
-- copy_func(buffer, &BRRBuffer, PHdspsave); |
254 |
-- copy_func(buffer, &DSPMem, sizeof(DSPMem)); |
255 |
-+ copy_func(buffer, BRRBuffer, PHdspsave); |
256 |
-+ copy_func(buffer, DSPMem, sizeof(DSPMem)); |
257 |
- } |
258 |
- |
259 |
- static void copy_extra_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) |
260 |
-@@ -156,7 +156,7 @@ |
261 |
- /* |
262 |
- if (buffer) //Rewind stuff |
263 |
- { |
264 |
-- copy_func(&buffer, &echoon0, PHdspsave2); |
265 |
-+ copy_func(&buffer, echoon0, PHdspsave2); |
266 |
- } |
267 |
- */ |
268 |
- } |
269 |
---- src/gblvars.h.fortify |
270 |
-+++ src/gblvars.h |
271 |
-@@ -33,9 +33,9 @@ |
272 |
- extern unsigned int SfxR0, *setaramdata, ramsize, *sram, nmiprevaddrh; |
273 |
- extern unsigned int tempesi, tempedi, tempedx, tempebp; |
274 |
- extern unsigned int SPCMultA, PHnum2writespc7110reg, PHdspsave2; |
275 |
--extern unsigned char sndrot, SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; |
276 |
--extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[32], *romdata; |
277 |
--extern unsigned char curcyc, echoon0, spcnumread, NextLineCache, HIRQNextExe; |
278 |
-+extern unsigned char sndrot[], SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; |
279 |
-+extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[], *romdata; |
280 |
-+extern unsigned char curcyc, echoon0[], spcnumread, NextLineCache, HIRQNextExe; |
281 |
- extern unsigned char vidmemch4[4096], vidmemch8[4096], vidmemch2[4096]; |
282 |
- |
283 |
- extern bool C4Enable, SFXEnable, SA1Enable, SPC7110Enable, SETAEnable, DSP4Enable, spcon; |
284 |
|
285 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-c++17.patch b/games-emulation/zsnes/files/zsnes-1.51-c++17.patch |
286 |
deleted file mode 100644 |
287 |
index 537f32540c58..000000000000 |
288 |
--- a/games-emulation/zsnes/files/zsnes-1.51-c++17.patch |
289 |
+++ /dev/null |
290 |
@@ -1,76 +0,0 @@ |
291 |
---- a/jma/jma.cpp |
292 |
-+++ b/jma/jma.cpp |
293 |
-@@ -48,7 +48,7 @@ namespace JMA |
294 |
- |
295 |
- |
296 |
- //Retreive the file block, what else? |
297 |
-- void jma_open::retrieve_file_block() throw(jma_errors) |
298 |
-+ void jma_open::retrieve_file_block() |
299 |
- { |
300 |
- unsigned char uint_buffer[UINT_SIZE]; |
301 |
- unsigned char ushort_buffer[USHORT_SIZE]; |
302 |
-@@ -168,7 +168,7 @@ namespace JMA |
303 |
- } |
304 |
- |
305 |
- //Constructor for opening JMA files for reading |
306 |
-- jma_open::jma_open(const char *compressed_file_name) throw (jma_errors) |
307 |
-+ jma_open::jma_open(const char *compressed_file_name) |
308 |
- { |
309 |
- decompressed_buffer = 0; |
310 |
- compressed_buffer = 0; |
311 |
-@@ -229,7 +229,7 @@ namespace JMA |
312 |
- } |
313 |
- |
314 |
- //Skip forward a given number of chunks |
315 |
-- void jma_open::chunk_seek(unsigned int chunk_num) throw(jma_errors) |
316 |
-+ void jma_open::chunk_seek(unsigned int chunk_num) |
317 |
- { |
318 |
- //Check the stream is open |
319 |
- if (!stream.is_open()) |
320 |
-@@ -257,7 +257,7 @@ namespace JMA |
321 |
- |
322 |
- //Return a vector of pointers to each file in the JMA, the buffer to hold all the files |
323 |
- //must be initilized outside. |
324 |
-- vector<unsigned char *> jma_open::get_all_files(unsigned char *buffer) throw(jma_errors) |
325 |
-+ vector<unsigned char *> jma_open::get_all_files(unsigned char *buffer) |
326 |
- { |
327 |
- //If there's no stream we can't read from it, so exit |
328 |
- if (!stream.is_open()) |
329 |
-@@ -396,7 +396,7 @@ namespace JMA |
330 |
- } |
331 |
- |
332 |
- //Extracts the file with a given name found in the archive to the given buffer |
333 |
-- void jma_open::extract_file(string& name, unsigned char *buffer) throw(jma_errors) |
334 |
-+ void jma_open::extract_file(string& name, unsigned char *buffer) |
335 |
- { |
336 |
- if (!stream.is_open()) |
337 |
- { |
338 |
---- a/jma/jma.h |
339 |
-+++ b/jma/jma.h |
340 |
-@@ -64,12 +64,12 @@ namespace JMA |
341 |
- class jma_open |
342 |
- { |
343 |
- public: |
344 |
-- jma_open(const char *) throw(jma_errors); |
345 |
-+ jma_open(const char *); |
346 |
- ~jma_open(); |
347 |
- |
348 |
- std::vector<jma_public_file_info> get_files_info(); |
349 |
-- std::vector<unsigned char *> get_all_files(unsigned char *) throw(jma_errors); |
350 |
-- void extract_file(std::string& name, unsigned char *) throw(jma_errors); |
351 |
-+ std::vector<unsigned char *> get_all_files(unsigned char *); |
352 |
-+ void extract_file(std::string& name, unsigned char *); |
353 |
- bool is_solid(); |
354 |
- |
355 |
- private: |
356 |
-@@ -79,8 +79,8 @@ namespace JMA |
357 |
- unsigned char *decompressed_buffer; |
358 |
- unsigned char *compressed_buffer; |
359 |
- |
360 |
-- void chunk_seek(unsigned int) throw(jma_errors); |
361 |
-- void retrieve_file_block() throw(jma_errors); |
362 |
-+ void chunk_seek(unsigned int); |
363 |
-+ void retrieve_file_block(); |
364 |
- }; |
365 |
- |
366 |
- const char *jma_error_text(jma_errors); |
367 |
|
368 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch b/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch |
369 |
deleted file mode 100644 |
370 |
index 5c412e3e649b..000000000000 |
371 |
--- a/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch |
372 |
+++ /dev/null |
373 |
@@ -1,34 +0,0 @@ |
374 |
---- src/acinclude.m4 |
375 |
-+++ src/acinclude.m4 |
376 |
-@@ -107,7 +107,7 @@ int main (int argc, char *argv[]) |
377 |
- with_zlib=yes, |
378 |
- with_zlib=no, |
379 |
- [AC_MSG_RESULT(cross-compiling) |
380 |
-- with_zlib="" |
381 |
-+ with_zlib="cross" |
382 |
- AC_MSG_WARN(Assuming zlib is available)]) |
383 |
- |
384 |
- if test x$with_zlib != x; then |
385 |
-@@ -116,7 +116,7 @@ fi |
386 |
- if test x$with_zlib = xyes; then |
387 |
- ZLIB_VERSION=$(<conf.zlibtest) |
388 |
- ifelse([$2], , :, [$2]) |
389 |
--else |
390 |
-+elif test x$with_zlib != xcross; then |
391 |
- ZLIB_CFLAGS="" |
392 |
- ZLIB_LIBS="" |
393 |
- ZLIB_VERSION="" |
394 |
---- src/Makefile.in |
395 |
-+++ src/Makefile.in |
396 |
-@@ -103,8 +103,10 @@ main: makefile.dep $(Z_OBJS) |
397 |
- @ZC@ -o @ZSNESEXE@ $(Z_OBJS) @ZCFLAGS@ @LDFLAGS@ |
398 |
- rm -f version.o |
399 |
- |
400 |
-+BUILD_CXX ?= g++ |
401 |
-+BUILD_CXXFLAGS ?= -O2 -pipe |
402 |
- $(PSR): parsegen.cpp |
403 |
-- @CXX@ @CXXFLAGS@ -o $@ $< -lz |
404 |
-+ $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $< -lz |
405 |
- |
406 |
- TOOLSEXE=$(TOOL_D)/archopt $(TOOL_D)/cutrtype $(TOOL_D)/extraext\ |
407 |
- $(TOOL_D)/macroll $(TOOL_D)/minwhite $(TOOL_D)/nreplace\ |
408 |
|
409 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch b/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch |
410 |
deleted file mode 100644 |
411 |
index 2dbb5f558a46..000000000000 |
412 |
--- a/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch |
413 |
+++ /dev/null |
414 |
@@ -1,24 +0,0 @@ |
415 |
---- src/tools/depbuild.cpp.orig |
416 |
-+++ src/tools/depbuild.cpp |
417 |
-@@ -130,7 +130,20 @@ |
418 |
- void dependency_calculate_asm(const char *filename) |
419 |
- { |
420 |
- string command = nasm + " " + nflags + " -M " + filename; |
421 |
-- system(command.c_str()); |
422 |
-+ FILE *fp = popen(command.c_str(), "r"); |
423 |
-+ if (fp) |
424 |
-+ { |
425 |
-+ char line[256]; |
426 |
-+ while (fgets(line, sizeof(line), fp)) //Process all lines of output |
427 |
-+ { |
428 |
-+ cout << line; |
429 |
-+ } |
430 |
-+ pclose(fp); |
431 |
-+ } |
432 |
-+ else |
433 |
-+ { |
434 |
-+ cerr << "Failed on: " << filename << "\n"; |
435 |
-+ } |
436 |
- } |
437 |
- |
438 |
- void dependency_calculate_psr(const char *filename) |
439 |
|
440 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch b/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch |
441 |
deleted file mode 100644 |
442 |
index 71a1392e6a4e..000000000000 |
443 |
--- a/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch |
444 |
+++ /dev/null |
445 |
@@ -1,11 +0,0 @@ |
446 |
---- a/initc.c |
447 |
-+++ b/initc.c |
448 |
-@@ -1495,7 +1495,7 @@ Would be nice to trash this section in the future |
449 |
- extern unsigned char ENVDisable, cycpb268, cycpb358, cycpbl2, cycpblt2, cycpbl; |
450 |
- extern unsigned char cycpblt, opexec268, opexec358, opexec268b, opexec358b; |
451 |
- extern unsigned char opexec268cph, opexec358cph, opexec268cphb, opexec358cphb; |
452 |
--bool HacksDisable; |
453 |
-+extern bool HacksDisable; |
454 |
- |
455 |
- void headerhack() |
456 |
- { |
457 |
|
458 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-gcc43-20071031.patch b/games-emulation/zsnes/files/zsnes-1.51-gcc43-20071031.patch |
459 |
deleted file mode 100644 |
460 |
index 59fbb8fdbf19..000000000000 |
461 |
--- a/games-emulation/zsnes/files/zsnes-1.51-gcc43-20071031.patch |
462 |
+++ /dev/null |
463 |
@@ -1,39 +0,0 @@ |
464 |
---- src/parsegen.cpp |
465 |
-+++ src/parsegen.cpp |
466 |
-@@ -31,6 +31,7 @@ |
467 |
- #include <sstream> |
468 |
- #include <set> |
469 |
- #include <stack> |
470 |
-+#include <cstring> |
471 |
- using namespace std; |
472 |
- |
473 |
- #include <errno.h> |
474 |
---- src/tools/depbuild.cpp |
475 |
-+++ src/tools/depbuild.cpp |
476 |
-@@ -24,6 +24,7 @@ |
477 |
- #include <iostream> |
478 |
- #include <string> |
479 |
- #include <cstdio> |
480 |
-+#include <cstdlib> |
481 |
- using namespace std; |
482 |
- |
483 |
- #include "fileutil.h" |
484 |
-@@ -183,7 +184,7 @@ |
485 |
- } |
486 |
- } |
487 |
- |
488 |
--int main(size_t argc, const char *const *const argv) |
489 |
-+int main(int argc, const char *const *const argv) |
490 |
- { |
491 |
- if (argc < 5) |
492 |
- { |
493 |
---- src/tools/strutil.h |
494 |
-+++ src/tools/strutil.h |
495 |
-@@ -25,6 +25,7 @@ |
496 |
- #include <string> |
497 |
- #include <vector> |
498 |
- #include <cctype> |
499 |
-+#include <cstring> |
500 |
- |
501 |
- struct ci_char_traits : public std::char_traits<char> |
502 |
- { |
503 |
|
504 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-gcc47.patch b/games-emulation/zsnes/files/zsnes-1.51-gcc47.patch |
505 |
deleted file mode 100644 |
506 |
index b3250fee679b..000000000000 |
507 |
--- a/games-emulation/zsnes/files/zsnes-1.51-gcc47.patch |
508 |
+++ /dev/null |
509 |
@@ -1,15 +0,0 @@ |
510 |
-Fix compile with gcc47 |
511 |
-Bug #419635 |
512 |
-https://bugs.gentoo.org/show_bug.cgi?id=419635 |
513 |
-Submitted by Nikos Chantziaras |
514 |
- |
515 |
---- src/tools/depbuild.cpp |
516 |
-+++ src/tools/depbuild.cpp |
517 |
-@@ -25,6 +25,7 @@ |
518 |
- #include <string> |
519 |
- #include <cstdio> |
520 |
- #include <cstdlib> |
521 |
-+#include <unistd.h> |
522 |
- using namespace std; |
523 |
- |
524 |
- #include "fileutil.h" |
525 |
|
526 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-libao-thread.patch b/games-emulation/zsnes/files/zsnes-1.51-libao-thread.patch |
527 |
deleted file mode 100644 |
528 |
index 1ae0a1467b3e..000000000000 |
529 |
--- a/games-emulation/zsnes/files/zsnes-1.51-libao-thread.patch |
530 |
+++ /dev/null |
531 |
@@ -1,25 +0,0 @@ |
532 |
---- a/linux/audio.c.old 2007-01-09 20:19:12.000000000 -0500 |
533 |
-+++ b/linux/audio.c 2007-12-30 20:33:07.000000000 -0500 |
534 |
-@@ -177,11 +177,7 @@ |
535 |
- } |
536 |
- else |
537 |
- { |
538 |
-- if (pthread_create(&audio_thread, 0, SoundThread_ao, 0)) |
539 |
-- { |
540 |
-- puts("pthread_create() failed."); |
541 |
-- } |
542 |
-- else if (pthread_mutex_init(&audio_mutex, 0)) |
543 |
-+ if (pthread_mutex_init(&audio_mutex, 0)) |
544 |
- { |
545 |
- puts("pthread_mutex_init() failed."); |
546 |
- } |
547 |
-@@ -189,6 +185,10 @@ |
548 |
- { |
549 |
- puts("pthread_cond_init() failed."); |
550 |
- } |
551 |
-+ else if (pthread_create(&audio_thread, 0, SoundThread_ao, 0)) |
552 |
-+ { |
553 |
-+ puts("pthread_create() failed."); |
554 |
-+ } |
555 |
- InitSampleControl(); |
556 |
- } |
557 |
|
558 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-libpng.patch b/games-emulation/zsnes/files/zsnes-1.51-libpng.patch |
559 |
deleted file mode 100644 |
560 |
index fd974e799e30..000000000000 |
561 |
--- a/games-emulation/zsnes/files/zsnes-1.51-libpng.patch |
562 |
+++ /dev/null |
563 |
@@ -1,33 +0,0 @@ |
564 |
---- a/acinclude.m4 |
565 |
-+++ b/acinclude.m4 |
566 |
-@@ -163,21 +163,21 @@ |
567 |
- libpng_prefix="") |
568 |
- |
569 |
- min_libpng_version=ifelse([$1], ,1.2.0,$1) |
570 |
--tempLIBS="$LIBS" |
571 |
--tempCFLAGS="$CFLAGS" |
572 |
--if test x$libpng_prefix != x ; then |
573 |
-- LIBPNG_LIBS="-L$libpng_prefix" |
574 |
-- LIBPNG_CFLAGS="-I$libpng_prefix" |
575 |
--fi |
576 |
--LIBPNG_LIBS="$LIBPNG_LIBS -lpng -lm" |
577 |
--LIBS="$LIBS $LIBPNG_LIBS" |
578 |
--CFLAGS="$CFLAGS $LIBPNG_CFLAGS" |
579 |
- |
580 |
- AC_MSG_CHECKING(for libpng - version >= $min_libpng_version) |
581 |
- |
582 |
- dnl <--- disable for no user choice part #2 |
583 |
- if test x$enable_libpng != xno; then |
584 |
- dnl ---> |
585 |
-+ tempLIBS="$LIBS" |
586 |
-+ tempCFLAGS="$CFLAGS" |
587 |
-+ if test x$libpng_prefix != x ; then |
588 |
-+ LIBPNG_LIBS="-L$libpng_prefix" |
589 |
-+ LIBPNG_CFLAGS="-I$libpng_prefix" |
590 |
-+ fi |
591 |
-+ LIBPNG_LIBS="$LIBPNG_LIBS -lpng -lm" |
592 |
-+ LIBS="$LIBS $LIBPNG_LIBS" |
593 |
-+ CFLAGS="$CFLAGS $LIBPNG_CFLAGS" |
594 |
- |
595 |
- AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
596 |
- #include <png.h> |
597 |
|
598 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-libpng15.patch b/games-emulation/zsnes/files/zsnes-1.51-libpng15.patch |
599 |
deleted file mode 100644 |
600 |
index b32c30967547..000000000000 |
601 |
--- a/games-emulation/zsnes/files/zsnes-1.51-libpng15.patch |
602 |
+++ /dev/null |
603 |
@@ -1,12 +0,0 @@ |
604 |
-Use existing png_set_IHDR() and stop accessing PNG structure members directly |
605 |
- |
606 |
---- src/zip/zpng.c |
607 |
-+++ src/zip/zpng.c |
608 |
-@@ -129,7 +129,6 @@ |
609 |
- png_set_IHDR(png_ptr, info_ptr, width, height, 8, |
610 |
- PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, |
611 |
- PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); |
612 |
-- info_ptr->color_type = PNG_COLOR_TYPE_RGB; |
613 |
- |
614 |
- //Allocate an array of scanline pointers |
615 |
- row_pointers = (png_bytep*)malloc(height*sizeof(png_bytep)); |
616 |
|
617 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v2.patch b/games-emulation/zsnes/files/zsnes-1.51-stack-align-v2.patch |
618 |
deleted file mode 100644 |
619 |
index 35613a953596..000000000000 |
620 |
--- a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v2.patch |
621 |
+++ /dev/null |
622 |
@@ -1,56 +0,0 @@ |
623 |
-zsnes call C initialization code from assembler. |
624 |
- |
625 |
-Example backtrace: |
626 |
- |
627 |
- Thread 1 "zsnes" received signal SIGSEGV, Segmentation fault. |
628 |
- => 0xf7550275 <+37>: vmovdqa (%esp),%xmm1 |
629 |
- ... |
630 |
- #13 0x5699ef82 in InitSound () at linux/audio.c:336 |
631 |
- #14 0x569a25af in initwinvideo () at linux/sdllink.c:1080 |
632 |
- #15 0x5699fc13 in initvideo () at linux/sdllink.c:1298 |
633 |
- #16 0x56f9d5bc in regptwa () |
634 |
- #17 0x56a34b50 in SA1tableG () |
635 |
- #18 0x56f84788 in selcB800 () |
636 |
- ... |
637 |
- |
638 |
-Call to 'initwinvideo' (first C function) looks like that: |
639 |
- NEWSYM InitPreGame ; Executes before starting/continuing a game |
640 |
- mov byte[pressed+1],2 |
641 |
- pushad |
642 |
- call Start60HZ |
643 |
- %ifdef __OPENGL__ |
644 |
- call drawscreenwin |
645 |
- %endif |
646 |
- call initwinvideo |
647 |
- |
648 |
-Note: pushad / call does not 16-byte maintain stack alignment |
649 |
-and breaks i386 ABI. |
650 |
- |
651 |
-We apply realignment attribute to all functions noticed by users. |
652 |
-Bug: https://bugs.gentoo.org/503138 |
653 |
---- src/linux/sdllink.c.old |
654 |
-+++ src/linux/sdllink.c |
655 |
-@@ -773,11 +773,11 @@ BOOL InitInput() |
656 |
- { |
657 |
- InitJoystickInput(); |
658 |
- return TRUE; |
659 |
- } |
660 |
- |
661 |
--int startgame() |
662 |
-+int __attribute__((force_align_arg_pointer)) startgame() |
663 |
- { |
664 |
- static bool ranonce = false; |
665 |
- int status; |
666 |
- |
667 |
- if (!ranonce) |
668 |
---- a/linux/sdllink.c |
669 |
-+++ b/linux/sdllink.c |
670 |
-@@ -897,7 +897,7 @@ bool OGLModeCheck() |
671 |
- return(cvidmode > 4); |
672 |
- } |
673 |
- |
674 |
--void initwinvideo(void) |
675 |
-+void __attribute__((force_align_arg_pointer)) initwinvideo(void) |
676 |
- { |
677 |
- DWORD newmode = 0; |
678 |
- |
679 |
|
680 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v3.patch b/games-emulation/zsnes/files/zsnes-1.51-stack-align-v3.patch |
681 |
deleted file mode 100644 |
682 |
index 914c9afc4495..000000000000 |
683 |
--- a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v3.patch |
684 |
+++ /dev/null |
685 |
@@ -1,40 +0,0 @@ |
686 |
---- a/linux/sdllink.c |
687 |
-+++ b/linux/sdllink.c |
688 |
-@@ -133,7 +133,7 @@ extern unsigned char romispal; |
689 |
- |
690 |
- /* FUNCTION DECLARATIONS */ |
691 |
- void clearwin (void); |
692 |
--void drawscreenwin(void); |
693 |
-+void __attribute__((force_align_arg_pointer)) drawscreenwin(void); |
694 |
- void initwinvideo(); |
695 |
- unsigned int sdl_keysym_to_pc_scancode(int); |
696 |
- void ProcessKeyBuf(int); |
697 |
---- a/ztimec.c |
698 |
-+++ b/ztimec.c |
699 |
-@@ -25,7 +25,7 @@ short SystemTimewHour; |
700 |
- short SystemTimewMinute; |
701 |
- short SystemTimewSecond; |
702 |
- |
703 |
--void GetLocalTime() |
704 |
-+void __attribute__((force_align_arg_pointer)) GetLocalTime() |
705 |
- { |
706 |
- time_t current; |
707 |
- struct tm *timeptr; |
708 |
-@@ -37,7 +37,7 @@ void GetLocalTime() |
709 |
- SystemTimewSecond = timeptr->tm_sec; |
710 |
- } |
711 |
- |
712 |
--unsigned int GetTime() |
713 |
-+unsigned __attribute__((force_align_arg_pointer)) int GetTime() |
714 |
- { |
715 |
- unsigned int value; |
716 |
- struct tm *newtime; |
717 |
-@@ -52,7 +52,7 @@ unsigned int GetTime() |
718 |
- return(value); |
719 |
- } |
720 |
- |
721 |
--unsigned int GetDate() |
722 |
-+unsigned __attribute__((force_align_arg_pointer)) int GetDate() |
723 |
- { |
724 |
- unsigned int value; |
725 |
- struct tm *newtime; |
726 |
|
727 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch b/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch |
728 |
deleted file mode 100644 |
729 |
index 7e015d53ebd9..000000000000 |
730 |
--- a/games-emulation/zsnes/files/zsnes-1.51-stack-align-v4.patch |
731 |
+++ /dev/null |
732 |
@@ -1,45 +0,0 @@ |
733 |
---- a/linux/sdllink.c |
734 |
-+++ b/linux/sdllink.c |
735 |
-@@ -1170,7 +1170,7 @@ void sem_sleep_die(void) |
736 |
- } |
737 |
- } |
738 |
- |
739 |
--void UpdateVFrame(void) |
740 |
-+void __attribute__((force_align_arg_pointer)) UpdateVFrame(void) |
741 |
- { |
742 |
- //Quick fix for GUI CPU usage |
743 |
- if (GUIOn || GUIOn2 || EMUPause) { usleep(6000); } |
744 |
-@@ -1237,16 +1237,16 @@ void UnloadSDL() |
745 |
- SDL_Quit(); |
746 |
- } |
747 |
- |
748 |
--int GetMouseX(void) |
749 |
-+int __attribute__((force_align_arg_pointer)) GetMouseX(void) |
750 |
- { |
751 |
- return ((int) MouseX); |
752 |
- } |
753 |
--int GetMouseY(void) |
754 |
-+int __attribute__((force_align_arg_pointer)) GetMouseY(void) |
755 |
- { |
756 |
- return ((int) MouseY); |
757 |
- } |
758 |
- |
759 |
--int GetMouseMoveX(void) |
760 |
-+int __attribute__((force_align_arg_pointer)) GetMouseMoveX(void) |
761 |
- { |
762 |
- // InputRead(); |
763 |
- //SDL_GetRelativeMouseState(&MouseMove2X, NULL); |
764 |
-@@ -1254,11 +1254,11 @@ int GetMouseMoveX(void) |
765 |
- return (MouseMove2X); |
766 |
- } |
767 |
- |
768 |
--int GetMouseMoveY(void) |
769 |
-+int __attribute__((force_align_arg_pointer)) GetMouseMoveY(void) |
770 |
- { |
771 |
- return (MouseMove2Y); |
772 |
- } |
773 |
--int GetMouseButton(void) |
774 |
-+int __attribute__((force_align_arg_pointer)) GetMouseButton(void) |
775 |
- { |
776 |
- return ((int) MouseButton); |
777 |
- } |
778 |
|
779 |
diff --git a/games-emulation/zsnes/metadata.xml b/games-emulation/zsnes/metadata.xml |
780 |
index b9c0479894ce..a775a3d1ea84 100644 |
781 |
--- a/games-emulation/zsnes/metadata.xml |
782 |
+++ b/games-emulation/zsnes/metadata.xml |
783 |
@@ -5,9 +5,6 @@ |
784 |
<email>games@g.o</email> |
785 |
<name>Gentoo Games Project</name> |
786 |
</maintainer> |
787 |
- <use> |
788 |
- <flag name="debug">Enable the builtin debugger</flag> |
789 |
- </use> |
790 |
<upstream> |
791 |
<remote-id type="github">xyproto/zsnes</remote-id> |
792 |
<remote-id type="sourceforge">zsnes</remote-id> |
793 |
|
794 |
diff --git a/games-emulation/zsnes/zsnes-1.51-r11.ebuild b/games-emulation/zsnes/zsnes-1.51-r11.ebuild |
795 |
deleted file mode 100644 |
796 |
index 204a33f3892c..000000000000 |
797 |
--- a/games-emulation/zsnes/zsnes-1.51-r11.ebuild |
798 |
+++ /dev/null |
799 |
@@ -1,129 +0,0 @@ |
800 |
-# Copyright 1999-2021 Gentoo Authors |
801 |
-# Distributed under the terms of the GNU General Public License v2 |
802 |
- |
803 |
-EAPI=7 |
804 |
- |
805 |
-inherit autotools desktop flag-o-matic multilib toolchain-funcs pax-utils |
806 |
- |
807 |
-DESCRIPTION="SNES (Super Nintendo) emulator that uses x86 assembly" |
808 |
-HOMEPAGE="https://www.zsnes.com/ http://ipherswipsite.com/zsnes/" |
809 |
-SRC_URI="mirror://sourceforge/zsnes/${PN}${PV//./}src.tar.bz2 -> ${P}-20071031.tar.bz2" |
810 |
-S="${WORKDIR}/${PN}_${PV//./_}/src" |
811 |
- |
812 |
-LICENSE="GPL-2" |
813 |
-SLOT="0" |
814 |
-KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" |
815 |
-IUSE="ao custom-cflags +debug opengl png" |
816 |
- |
817 |
-RDEPEND=" |
818 |
- media-libs/libsdl[sound,video,abi_x86_32(-)] |
819 |
- >=sys-libs/zlib-1.2.3-r1[abi_x86_32(-)] |
820 |
- ao? ( media-libs/libao[abi_x86_32(-)] ) |
821 |
- debug? ( sys-libs/ncurses:0=[abi_x86_32(-)] ) |
822 |
- opengl? ( virtual/opengl[abi_x86_32(-)] ) |
823 |
- png? ( media-libs/libpng:0=[abi_x86_32(-)] ) |
824 |
-" |
825 |
-DEPEND="${RDEPEND}" |
826 |
-BDEPEND=" |
827 |
- dev-lang/nasm |
828 |
- debug? ( virtual/pkgconfig ) |
829 |
-" |
830 |
- |
831 |
-PATCHES=( |
832 |
- # Fixing compilation without libpng installed |
833 |
- "${FILESDIR}"/${P}-libpng.patch |
834 |
- |
835 |
- # Fix bug #186111 |
836 |
- # Fix bug #214697 |
837 |
- # Fix bug #170108 |
838 |
- # Fix bug #260247 |
839 |
- "${FILESDIR}"/${P}-gcc43-20071031.patch |
840 |
- "${FILESDIR}"/${P}-libao-thread.patch |
841 |
- "${FILESDIR}"/${P}-depbuild.patch |
842 |
- "${FILESDIR}"/${P}-CC-quotes.patch |
843 |
- |
844 |
- # Fix compability with libpng15 wrt #378735 |
845 |
- "${FILESDIR}"/${P}-libpng15.patch |
846 |
- |
847 |
- # Fix buffer overwrite #257963 |
848 |
- "${FILESDIR}"/${P}-buffer.patch |
849 |
- # Fix gcc47 compile #419635 |
850 |
- "${FILESDIR}"/${P}-gcc47.patch |
851 |
- # Fix stack alignment issue #503138 |
852 |
- "${FILESDIR}"/${P}-stack-align-v2.patch |
853 |
- |
854 |
- "${FILESDIR}"/${P}-cross-compile.patch |
855 |
- "${FILESDIR}"/${P}-arch.patch |
856 |
- |
857 |
- "${FILESDIR}"/${P}-gcc-10.patch |
858 |
- "${FILESDIR}"/${P}-c++17.patch |
859 |
- "${FILESDIR}"/${P}-ao-crash.patch |
860 |
- "${FILESDIR}"/${P}-stack-align-v3.patch |
861 |
- "${FILESDIR}"/${P}-stack-align-v4.patch |
862 |
-) |
863 |
- |
864 |
-src_prepare() { |
865 |
- default |
866 |
- |
867 |
- # The sdl detection logic uses AC_PROG_PATH instead of |
868 |
- # AC_PROG_TOOL, so force the var to get set the way we |
869 |
- # need for things to work correctly. |
870 |
- tc-is-cross-compiler && export ac_cv_path_SDL_CONFIG=${CHOST}-sdl-config |
871 |
- |
872 |
- sed -i -e '67i#define OF(x) x' zip/zunzip.h || die |
873 |
- |
874 |
- # Remove hardcoded CFLAGS and LDFLAGS |
875 |
- sed -i \ |
876 |
- -e '/^CFLAGS=.*local/s:-pipe.*:-Wall -I.":' \ |
877 |
- -e '/^LDFLAGS=.*local/d' \ |
878 |
- -e '/\w*CFLAGS=.*fomit/s:-O3.*$STRIP::' \ |
879 |
- -e '/lncurses/s:-lncurses:`pkg-config ncurses --libs`:' \ |
880 |
- -e '/lcurses/s:-lcurses:`pkg-config ncurses --libs`:' \ |
881 |
- configure.in || die |
882 |
- sed -i \ |
883 |
- -e 's/configure.in/configure.ac/' \ |
884 |
- Makefile.in || die |
885 |
- mv configure.in configure.ac || die |
886 |
- eautoreconf |
887 |
-} |
888 |
- |
889 |
-src_configure() { |
890 |
- tc-export CC |
891 |
- export BUILD_CXX=$(tc-getBUILD_CXX) |
892 |
- export NFLAGS=-O1 |
893 |
- use amd64 && multilib_toolchain_setup x86 |
894 |
- use custom-cflags || strip-flags |
895 |
- |
896 |
- append-cppflags -U_FORTIFY_SOURCE #257963 |
897 |
- |
898 |
- econf \ |
899 |
- $(use_enable ao libao) \ |
900 |
- $(use_enable debug debugger) \ |
901 |
- $(use_enable png libpng) \ |
902 |
- $(use_enable opengl) \ |
903 |
- --disable-debug \ |
904 |
- --disable-cpucheck |
905 |
-} |
906 |
- |
907 |
-src_compile() { |
908 |
- emake makefile.dep |
909 |
- emake |
910 |
-} |
911 |
- |
912 |
-src_install() { |
913 |
- # Uses pic-unfriendly assembly code, bug #427104 |
914 |
- QA_TEXTRELS="usr/bin/zsnes" |
915 |
- |
916 |
- dobin zsnes |
917 |
- pax-mark m "${ED}"/usr/bin/zsnes |
918 |
- |
919 |
- newman linux/zsnes.1 zsnes.6 |
920 |
- |
921 |
- dodoc \ |
922 |
- ../docs/{readme.1st,authors.txt,srcinfo.txt,stdards.txt,support.txt,thanks.txt,todo.txt,README.LINUX} \ |
923 |
- ../docs/readme.txt/* |
924 |
- HTML_DOCS="../docs/readme.htm/*" einstalldocs |
925 |
- |
926 |
- make_desktop_entry zsnes ZSNES |
927 |
- newicon icons/48x48x32.png ${PN}.png |
928 |
-} |