--- perceptualdiff-1.0.1.orig/debian/perceptualdiff.1
+++ perceptualdiff-1.0.1/debian/perceptualdiff.1
@@ -0,0 +1,60 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH PERCEPTUALDIFF 1 "September 28, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+perceptualdiff \- compare images using a perceptually based image metric
+.SH SYNOPSIS
+.B perceptualdiff
+.RI [ options ] " <image1> <image2>"
+.br
+.SH DESCRIPTION
+This manual page documents briefly the
+.B perceptualdiff
+command.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBperceptualdiff\fP is a program that compares image1.tif and 
+image2.tif using a perceptually based image metric. Note: Input 
+files can also be in the PNG format
+.SH OPTIONS
+A summary of options is included below.
+.TP
+.B \-verbose
+Turns on verbose mode
+.TP
+.B \-fov <deg>
+Field of view in degrees (0.1 to 89.9)
+.TP
+.B \-threshold <p>
+#pixels p below which differences are ignored
+.TP
+.B \-gamma <g>
+Value to convert rgb into linear space (default 2.2)
+.TP
+.B \-luminance <l>
+ White luminance (default 100.0 cdm^-2)
+.TP
+.B \-output <o.ppm>
+ Write difference to the file o.ppm
+.br
+.SH AUTHOR
+perceptualdiff was written by Yangli Hector Yee <yeehector@users.sourceforge.net>
+.PP
+This manual page was written by Jeff Breidenbach <jab@debian.org>,
+for the Debian project (but may be used by others).
--- perceptualdiff-1.0.1.orig/debian/control
+++ perceptualdiff-1.0.1/debian/control
@@ -0,0 +1,14 @@
+Source: perceptualdiff
+Section: utils
+Priority: optional
+Maintainer: Jeff Breidenbach <jab@debian.org>
+Build-Depends: debhelper (>= 4.0.0), cmake (>= 2.4.5), libpng12-dev, libtiff4-dev
+Standards-Version: 3.6.2
+
+Package: perceptualdiff
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: perceptual image comparison tool
+ PerceptualDiff is an image comparison utility that makes 
+ use of a computational model of the human visual system to 
+ compare two images.
--- perceptualdiff-1.0.1.orig/debian/compat
+++ perceptualdiff-1.0.1/debian/compat
@@ -0,0 +1 @@
+4
--- perceptualdiff-1.0.1.orig/debian/changelog
+++ perceptualdiff-1.0.1/debian/changelog
@@ -0,0 +1,29 @@
+perceptualdiff (1.0.1-1.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix build with gcc-4.4 using patch from Martin Michlmayr (Closes:
+    #505022)
+
+ -- Christoph Egger <christoph@debian.org>  Fri, 25 Dec 2009 23:27:06 +0100
+
+perceptualdiff (1.0.1-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix gcc-4.3 FTBFS, patch by KiBi (Closes: #456049)
+
+ -- Marc 'HE' Brockschmidt <he@debian.org>  Sun, 16 Mar 2008 21:28:43 +0100
+
+perceptualdiff (1.0.1-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove all cmake-generated files in make clean, avoiding FTBFS
+    and reducing Debian diff size (Closes: #445614).
+
+ -- Simon McVittie <smcv@ianadd.pseudorandom.co.uk>  Sun, 14 Oct 2007 12:24:05 +0100
+
+perceptualdiff (1.0.1-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Jeff Breidenbach <jab@debian.org>  Fri, 28 Sep 2007 14:52:18 -0700
+
--- perceptualdiff-1.0.1.orig/debian/dirs
+++ perceptualdiff-1.0.1/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- perceptualdiff-1.0.1.orig/debian/rules
+++ perceptualdiff-1.0.1/debian/rules
@@ -0,0 +1,101 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	cmake . -DCMAKE_INSTALL_PREFIX=/usr
+	#docbook-to-man debian/perceptualdiff.sgml > perceptualdiff.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-make clean
+	rm -rf CMakeCache.txt CMakeFiles CPackConfig.cmake \
+		CPackSourceConfig.cmake cmake_install.cmake Makefile
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/perceptualdiff.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/perceptualdiff
+	strip $(CURDIR)/debian/perceptualdiff/usr/bin/perceptualdiff
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman $(CURDIR)/debian/perceptualdiff.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- perceptualdiff-1.0.1.orig/debian/docs
+++ perceptualdiff-1.0.1/debian/docs
@@ -0,0 +1,4 @@
+CMakeLists.txt
+README.txt
+
+
--- perceptualdiff-1.0.1.orig/debian/copyright
+++ perceptualdiff-1.0.1/debian/copyright
@@ -0,0 +1,16 @@
+This package was debianized by Jeff Breidenbach <jab@debian.org> on
+Fri, 28 Sep 2007 14:52:18 -0700.
+
+It was downloaded from http://pdiff.sourceforge.net/
+
+Upstream Author:  Yangli Hector Yee <yeehector@users.sourceforge.net>
+
+Copyright (C) 2006 Yangli Hector Yee
+
+License:
+
+You are free to distribute this software under the terms of
+the GNU General Public License  either version 2 of the License,
+or (at your option) any later version.
+On Debian systems, the complete text of the GNU General Public
+License can be found in the file `/usr/share/common-licenses/GPL-2'.
