pkgsrc/graphics/pdiff/patches/patch-ac
wiz e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00

32 lines
692 B
Text

$NetBSD: patch-ac,v 1.1 2010/06/13 22:44:40 wiz Exp $
Not compatible with png-1.4.
--- RGBAImage.cpp.orig 2007-03-16 06:17:17.000000000 +0000
+++ RGBAImage.cpp
@@ -15,7 +15,9 @@ if not, write to the Free Software Found
*/
#include "RGBAImage.h"
+#if 0
#include "png.h"
+#endif
#include "tiff.h"
#include "tiffio.h"
@@ -54,6 +56,7 @@ RGBAImage* RGBAImage::ReadTiff(char *fil
return fimg;
}
+#if 0
// This portion was written by Scott Corley
RGBAImage* RGBAImage::ReadPNG(char *filename)
{
@@ -117,6 +120,7 @@ RGBAImage* RGBAImage::ReadPNG(char *file
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
return fimg;
}
+#endif
bool RGBAImage::WritePPM()
{