mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/supermariowar: Fixed patch.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
70a05a4e1f
commit
b996d855ce
3 changed files with 2 additions and 30 deletions
|
@ -1,29 +0,0 @@
|
|||
Index: _src/savepng.cpp
|
||||
===================================================================
|
||||
--- _src/savepng.cpp (revision 6)
|
||||
+++ _src/savepng.cpp (working copy)
|
||||
@@ -94,7 +94,11 @@
|
||||
}
|
||||
|
||||
/* Set error handling. */
|
||||
+#if PNG_LIBPNG_VER > 10399
|
||||
+ if (setjmp(png_jmpbuf(png_ptr)))
|
||||
+#else
|
||||
if (setjmp(png_ptr->jmpbuf))
|
||||
+#endif
|
||||
{
|
||||
/* If we get here, we had a problem reading the file */
|
||||
IMG_SetError("Error writing the PNG file");
|
||||
@@ -142,10 +146,10 @@
|
||||
done:
|
||||
if (row_pointers)
|
||||
delete [] row_pointers;
|
||||
-
|
||||
+#if PNG_LIBPNG_VER <= 10399
|
||||
if (info_ptr->palette)
|
||||
delete info_ptr->palette;
|
||||
-
|
||||
+#endif
|
||||
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
|
||||
|
||||
|
BIN
games/supermariowar/libpng.patch.gz
Normal file
BIN
games/supermariowar/libpng.patch.gz
Normal file
Binary file not shown.
|
@ -59,7 +59,8 @@ find -L . \
|
|||
zcat $CWD/compilefixes.diff.gz | patch -p1
|
||||
|
||||
# Patch for libpng16 (-current) thanks to Arch Linux
|
||||
patch -p0 < $CWD/libpng.patch
|
||||
# (this is gzipped to preserve CRLF line endings)
|
||||
zcat $CWD/libpng.patch.gz | patch -p0
|
||||
|
||||
# the configure script isn't autoconf (yay), but it has CRLFs (boo)
|
||||
sed -i 's,\r,,g' configure
|
||||
|
|
Loading…
Reference in a new issue