summaryrefslogtreecommitdiff
path: root/graphics/pdiff/patches/patch-aa
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-06-13 22:43:46 +0000
committerwiz <wiz@pkgsrc.org>2010-06-13 22:43:46 +0000
commit92e0cb52cb783546e352182244f761180817e141 (patch)
tree4a9b97c2969a25f1eeb6596ee96fc25429cef7d5 /graphics/pdiff/patches/patch-aa
parent01bd00f60b043c603cfe4fa796bf28af3a849cca (diff)
downloadpkgsrc-92e0cb52cb783546e352182244f761180817e141.tar.gz
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.
Diffstat (limited to 'graphics/pdiff/patches/patch-aa')
-rw-r--r--graphics/pdiff/patches/patch-aa42
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/pdiff/patches/patch-aa b/graphics/pdiff/patches/patch-aa
new file mode 100644
index 00000000000..f44585b0da1
--- /dev/null
+++ b/graphics/pdiff/patches/patch-aa
@@ -0,0 +1,42 @@
+$NetBSD: patch-aa,v 1.3 2010/06/13 22:44:40 wiz Exp $
+
+Not compatible with png-1.4.
+
+--- CompareArgs.cpp.orig 2007-03-16 06:17:17.000000000 +0000
++++ CompareArgs.cpp
+@@ -35,8 +35,6 @@ static const char *usage =
+ \t-gamma g : Value to convert rgb into linear space (default 2.2)\n\
+ \t-luminance l : White luminance (default 100.0 cdm^-2)\n\
+ \t-output o.ppm : Write difference to the file o.ppm\n\
+-\n\
+-\n Note: Input files can also be in the PNG format\
+ \n";
+
+ CompareArgs::CompareArgs()
+@@ -69,26 +67,18 @@ bool CompareArgs::Parse_Args(int argc, c
+ if (i == 1) {
+ ImgA = RGBAImage::ReadTiff(argv[1]);
+ if (!ImgA) {
+- ImgA = RGBAImage::ReadPNG(argv[1]);
+- if (!ImgA)
+- {
+ ErrorStr = "FAIL: Cannot open ";
+ ErrorStr += argv[1];
+ ErrorStr += "\n";
+ return false;
+- }
+ }
+ } else if (i == 2) {
+ ImgB = RGBAImage::ReadTiff(argv[2]);
+ if (!ImgB) {
+- ImgB = RGBAImage::ReadPNG(argv[2]);
+- if (!ImgB)
+- {
+ ErrorStr = "FAIL: Cannot open ";
+ ErrorStr += argv[2];
+ ErrorStr += "\n";
+ return false;
+- }
+ }
+ } else {
+ if (strstr(argv[i], "-fov")) {