summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg>2011-11-24 13:57:21 +0000
committerjoerg <joerg>2011-11-24 13:57:21 +0000
commitc83bc22775ce9c8ef0c0f3200a235bd56a881ff3 (patch)
tree99824e7e1a49c366612448825e90e01e8e988529 /graphics
parent8a3d32390ea52971f9f4225ae16e944c09ab4b01 (diff)
downloadpkgsrc-c83bc22775ce9c8ef0c0f3200a235bd56a881ff3.tar.gz
Fix build with modern GCC
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pdiff/distinfo6
-rw-r--r--graphics/pdiff/patches/patch-aa15
2 files changed, 15 insertions, 6 deletions
diff --git a/graphics/pdiff/distinfo b/graphics/pdiff/distinfo
index ead7a8ed6cd..4577c28b647 100644
--- a/graphics/pdiff/distinfo
+++ b/graphics/pdiff/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2010/06/13 22:44:40 wiz Exp $
+$NetBSD: distinfo,v 1.5 2011/11/24 13:57:21 joerg Exp $
SHA1 (PerceptualDiff-1.0.1.tar.gz) = 301d703e7d3c474b663a4abcd63d81500d073be9
RMD160 (PerceptualDiff-1.0.1.tar.gz) = a2931d55b7efa66b907f9002d9380f2f8a088534
Size (PerceptualDiff-1.0.1.tar.gz) = 32344 bytes
-SHA1 (patch-aa) = bb10324121c3c8051a1517438ffe87075787c3a5
-SHA1 (patch-ab) = f8cc81b1cfdcc7658216d354a917232ec285c64e
+SHA1 (patch-aa) = 8741a4f366964e6a43db23befe859b82cd27d048
+SHA1 (patch-ab) = 29e4d9e50a63e32ebd1d66783c3d468e304102c1
SHA1 (patch-ac) = 28fe818975fe6dd747b4a2a4e45d315a96998ec3
diff --git a/graphics/pdiff/patches/patch-aa b/graphics/pdiff/patches/patch-aa
index f44585b0da1..02635af91e4 100644
--- a/graphics/pdiff/patches/patch-aa
+++ b/graphics/pdiff/patches/patch-aa
@@ -1,10 +1,19 @@
-$NetBSD: patch-aa,v 1.3 2010/06/13 22:44:40 wiz Exp $
+$NetBSD: patch-aa,v 1.4 2011/11/24 13:57:21 joerg 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 =
+@@ -17,6 +17,8 @@ if not, write to the Free Software Found
+ #include "CompareArgs.h"
+ #include "RGBAImage.h"
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+
+ static const char* copyright =
+ "PerceptualDiff version 1.0, Copyright (C) 2006 Yangli Hector Yee\n\
+@@ -35,8 +37,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\
@@ -13,7 +22,7 @@ Not compatible with png-1.4.
\n";
CompareArgs::CompareArgs()
-@@ -69,26 +67,18 @@ bool CompareArgs::Parse_Args(int argc, c
+@@ -69,26 +69,18 @@ bool CompareArgs::Parse_Args(int argc, c
if (i == 1) {
ImgA = RGBAImage::ReadTiff(argv[1]);
if (!ImgA) {