Thu Jan 20 16:48:11 2011 UTC ()
Fix build with png-1.5.
(wiz)
diff -r1.4 -r1.5 pkgsrc/graphics/lensfun/distinfo
diff -r0 -r1.3 pkgsrc/graphics/lensfun/patches/patch-ac
--- pkgsrc/graphics/lensfun/distinfo 2011/01/17 16:38:20 1.4
+++ pkgsrc/graphics/lensfun/distinfo 2011/01/20 16:48:11 1.5
| @@ -1,9 +1,10 @@ | | | @@ -1,9 +1,10 @@ |
1 | $NetBSD: distinfo,v 1.4 2011/01/17 16:38:20 drochner Exp $ | | 1 | $NetBSD: distinfo,v 1.5 2011/01/20 16:48:11 wiz Exp $ |
2 | | | 2 | |
3 | SHA1 (lensfun-0.2.5.tar.bz2) = 7e8568cb131b6e2090264274483721a959f6b9bc | | 3 | SHA1 (lensfun-0.2.5.tar.bz2) = 7e8568cb131b6e2090264274483721a959f6b9bc |
4 | RMD160 (lensfun-0.2.5.tar.bz2) = 2f421cefb65d271b937e3d61f41f8536fd078971 | | 4 | RMD160 (lensfun-0.2.5.tar.bz2) = 2f421cefb65d271b937e3d61f41f8536fd078971 |
5 | Size (lensfun-0.2.5.tar.bz2) = 470733 bytes | | 5 | Size (lensfun-0.2.5.tar.bz2) = 470733 bytes |
6 | SHA1 (patch-aa) = d31dd742f232aa8a75f50f14f782918ba11a8119 | | 6 | SHA1 (patch-aa) = d31dd742f232aa8a75f50f14f782918ba11a8119 |
7 | SHA1 (patch-ab) = 5455bda9546dce6cc5b4a73429092afdee04bd23 | | 7 | SHA1 (patch-ab) = 5455bda9546dce6cc5b4a73429092afdee04bd23 |
| | | 8 | SHA1 (patch-ac) = b85c98cc11a5795bede4fb22438d547ca302b38b |
8 | SHA1 (patch-ad) = f9d54534d3be809e8517ec262e776c9d1785acd8 | | 9 | SHA1 (patch-ad) = f9d54534d3be809e8517ec262e776c9d1785acd8 |
9 | SHA1 (patch-ae) = c7f47ac5081d52244f38d0fc40795c7cb00f40e4 | | 10 | SHA1 (patch-ae) = c7f47ac5081d52244f38d0fc40795c7cb00f40e4 |
$NetBSD: patch-ac,v 1.3 2011/01/20 16:48:11 wiz Exp $
Fix build with png-1.5.
--- libs/auxfun/image.cpp.orig 2008-05-02 06:56:04.000000000 +0000
+++ libs/auxfun/image.cpp
@@ -94,7 +94,7 @@ bool Image::LoadPNG ()
png_init_io (png, file);
- if (setjmp (png->jmpbuf))
+ if (setjmp (png_jmpbuf(png)))
// If we get here, we had a problem reading the file
goto nomem;
@@ -157,7 +157,7 @@ bool Image::LoadPNG ()
row_pointers = new png_bytep [Height];
if (!row_pointers
- || setjmp (png->jmpbuf)) // Set a new exception handler
+ || setjmp (png_jmpbuf(png))) // Set a new exception handler
{
delete [] row_pointers;
nomem:
@@ -214,7 +214,7 @@ bool Image::SavePNG (const char *fName)
}
/* Catch processing errors */
- if (setjmp(png->jmpbuf))
+ if (setjmp(png_jmpbuf(png)))
/* If we get here, we had a problem writing the file */
goto error2;
@@ -273,10 +273,6 @@ bool Image::SavePNG (const char *fName)
/* It is REQUIRED to call this to finish writing the rest of the file */
png_write_end (png, info);
- /* if you malloced the palette, free it here */
- if (info->palette)
- free (info->palette);
-
/* clean up after the write, and free any memory allocated */
png_destroy_write_struct (&png, &info);