summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2011-01-31 23:52:18 +0000
committerwiz <wiz>2011-01-31 23:52:18 +0000
commitcf588e384a728ac77f53872f8a6606dc04165e7d (patch)
tree5999a5df58b7c697f9c2dc0e3b68820ec8475d7c /games
parentbecea42713b522118a4104db136d2e29f6f4e2b7 (diff)
downloadpkgsrc-cf588e384a728ac77f53872f8a6606dc04165e7d.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'games')
-rw-r--r--games/enigma/distinfo3
-rw-r--r--games/enigma/patches/patch-lib-src_enigma-core_IMG__SavePNG.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/games/enigma/distinfo b/games/enigma/distinfo
index 9989d7841ee..6c538aa3a60 100644
--- a/games/enigma/distinfo
+++ b/games/enigma/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2009/06/05 07:04:11 hasso Exp $
+$NetBSD: distinfo,v 1.9 2011/02/01 00:08:48 wiz Exp $
SHA1 (enigma-1.01.tar.gz) = 93f96ddd152e7474488cbb27ce0923312a851a9c
RMD160 (enigma-1.01.tar.gz) = 9dd91152cfced5352a669e8921fdbb270c0abc4e
Size (enigma-1.01.tar.gz) = 10847953 bytes
SHA1 (patch-aa) = c0a337a1d1098815812e117f5ca49d9ed248a446
SHA1 (patch-aq) = 113580c3063cdfa11ee212f922edd5b40f229eea
+SHA1 (patch-lib-src_enigma-core_IMG__SavePNG.c) = 7377498a9be1425cb7c683147b37ceb894a305c8
diff --git a/games/enigma/patches/patch-lib-src_enigma-core_IMG__SavePNG.c b/games/enigma/patches/patch-lib-src_enigma-core_IMG__SavePNG.c
new file mode 100644
index 00000000000..0ba04e90e66
--- /dev/null
+++ b/games/enigma/patches/patch-lib-src_enigma-core_IMG__SavePNG.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib-src_enigma-core_IMG__SavePNG.c,v 1.1 2011/02/01 00:08:48 wiz Exp $
+
+Fix build with png-1.5.
+
+--- lib-src/enigma-core/IMG_SavePNG.c.orig 2005-11-24 23:17:06.000000000 +0000
++++ lib-src/enigma-core/IMG_SavePNG.c
+@@ -84,7 +84,7 @@ int IMG_SavePNG_RW(SDL_Surface *face, SD
+ png_bytep *row_pointers = 0;
+
+ /* Set error handling. */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ IMG_SetError("Error writing the PNG file");
+ }
+ else {