diff options
author | wiz <wiz@pkgsrc.org> | 2011-01-31 23:52:18 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-01-31 23:52:18 +0000 |
commit | 5c29c99fb7f11ba007fb3be974883d57d9771ec9 (patch) | |
tree | 5999a5df58b7c697f9c2dc0e3b68820ec8475d7c /games/enigma | |
parent | 2410bf7002baa8fdf4094270d90ec7bd3d3707ba (diff) | |
download | pkgsrc-5c29c99fb7f11ba007fb3be974883d57d9771ec9.tar.gz |
Fix build with png-1.5.
Diffstat (limited to 'games/enigma')
-rw-r--r-- | games/enigma/distinfo | 3 | ||||
-rw-r--r-- | games/enigma/patches/patch-lib-src_enigma-core_IMG__SavePNG.c | 15 |
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 { |