diff options
author | wiz <wiz@pkgsrc.org> | 2011-03-28 07:50:39 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-03-28 07:50:39 +0000 |
commit | bfd071310e16f2795682352946e9cf4bf00e0498 (patch) | |
tree | 13ef6702105d08028618e6643f9f73587857e912 /graphics | |
parent | cf9d69c6ba304324b2d7680d3866f15a9dcb9431 (diff) | |
download | pkgsrc-bfd071310e16f2795682352946e9cf4bf00e0498.tar.gz |
Fix build with png-1.5. Reported by joerg.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/simage/distinfo | 3 | ||||
-rw-r--r-- | graphics/simage/patches/patch-src_simage__png.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/simage/distinfo b/graphics/simage/distinfo index 2cbf5e4812d..f929969fbbc 100644 --- a/graphics/simage/distinfo +++ b/graphics/simage/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 08:45:13 agc Exp $ +$NetBSD: distinfo,v 1.3 2011/03/28 07:50:39 wiz Exp $ SHA1 (simage-1.6.1.tar.gz) = 6c64423b2a34d7e4284c1bee0baaef6847e3d6f8 RMD160 (simage-1.6.1.tar.gz) = d3efa22a446a0385924a520d68a2fe175604f70e Size (simage-1.6.1.tar.gz) = 615432 bytes +SHA1 (patch-src_simage__png.c) = d511a7c45db46c60ea4aacff748b1325e83e396d diff --git a/graphics/simage/patches/patch-src_simage__png.c b/graphics/simage/patches/patch-src_simage__png.c new file mode 100644 index 00000000000..f0c91114fae --- /dev/null +++ b/graphics/simage/patches/patch-src_simage__png.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_simage__png.c,v 1.1 2011/03/28 07:50:39 wiz Exp $ + +Fix build with png-1.5. + +--- src/simage_png.c.orig 2002-08-21 09:15:15.000000000 +0000 ++++ src/simage_png.c +@@ -323,7 +323,7 @@ simage_png_save(const char *filename, + /* Set error handling. REQUIRED if you aren't supplying your own + * error hadnling functions in the png_create_write_struct() call. + */ +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + /* If we get here, we had a problem reading the file */ + fclose(fp); + png_destroy_write_struct(&png_ptr, (png_infopp)info_ptr); |