Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

2
graphics/pdiff/DESCR Normal file
View File

@@ -0,0 +1,2 @@
Pdiff is an image comparison utility that makes use of a computational
model of the human visual system to compare two images.

22
graphics/pdiff/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.16 2013/03/02 10:44:35 tron Exp $
#
DISTNAME= PerceptualDiff-1.0.1
PKGNAME= pdiff-1.0.1
PKGREVISION= 7
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pdiff/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pdiff.sourceforge.net/
COMMENT= Image comparison through perceptually based image metric
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
USE_CMAKE= yes
# not compatible with png>=1.4
#.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

2
graphics/pdiff/PLIST Normal file
View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/10 19:53:54 heinz Exp $
bin/perceptualdiff

9
graphics/pdiff/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.7 2012/06/18 05:41:00 dholland 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-Metric_cpp) = df75a8b9ac43e53a911e8afa041725680ef8a124
SHA1 (patch-aa) = 8741a4f366964e6a43db23befe859b82cd27d048
SHA1 (patch-ab) = f8cc81b1cfdcc7658216d354a917232ec285c64e
SHA1 (patch-ac) = 28fe818975fe6dd747b4a2a4e45d315a96998ec3

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-Metric_cpp,v 1.1 2012/06/18 05:41:00 dholland Exp $
Use standard headers.
--- Metric.cpp~ 2007-03-16 06:17:17.000000000 +0000
+++ Metric.cpp
@@ -14,6 +14,8 @@ You should have received a copy of the G
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <cstdio>
+
#include "Metric.h"
#include "CompareArgs.h"
#include "RGBAImage.h"

View File

@@ -0,0 +1,51 @@
$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
@@ -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\
-\n\
-\n Note: Input files can also be in the PNG format\
\n";
CompareArgs::CompareArgs()
@@ -69,26 +69,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")) {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2007/03/24 20:17:58 heinz Exp $
--- CMakeLists.txt.orig 2007-03-16 07:17:17.000000000 +0100
+++ CMakeLists.txt
@@ -4,7 +4,7 @@ CompareArgs.cpp Metric.cpp)
ADD_EXECUTABLE (perceptualdiff ${DIFF_SRC})
-INSTALL(FILES perceptualdiff DESTINATION bin)
+INSTALL(TARGETS perceptualdiff DESTINATION bin)
# look for libtiff
FIND_PATH(TIFF_INCLUDE_DIR tiff.h

View File

@@ -0,0 +1,32 @@
$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()
{