--- enblend-3.0+dfsg.orig/debian/copyright
+++ enblend-3.0+dfsg/debian/copyright
@@ -0,0 +1,163 @@
+This package was debianized by Sebastian Harl <sh@tokkee.org> on
+Sun, 28 Oct 2007 18:25:17 +0100.
+
+It was downloaded from <http://enblend.sourceforge.net/>.
+
+Upstream Author:
+	Andrew Mihal <acmihal@users.sourceforge.net>
+
+Copyright Holders (in alphabetical order):
+	Andrew Mihal <acmihal@users.sourceforge.net>
+	Bruce Walter <bjw@graphics.cornell.edu>
+	Christian-Dennis Rahn
+	Erik de Castro Lopo <erikd@mega-nerd.com>
+	Gunnar Kedenburg
+	Hans Meine
+	Helmut Dersch <der@fh-furtwangen.de>
+	Pablo d'Angelo <pablo.dangelo@web.de>
+	Tom Lane
+	Ullrich Koethe
+	Ziv Yaniv
+
+License:
+
+	File include/vigra_ext/Interpolators.h
+	Copyright (C) Helmut Dersch <der@fh-furtwangen.de>
+	Copyright (C) Pablo d'Angelo <pablo.dangelo@web.de>
+
+	Files include/vigra_ext/NearestFeatureTransform.h
+	      include/vigra_ext/XMIWrapper.h
+	Copyright (C) 2004-2005 Andrew Mihal
+
+	Files include/vigra_ext/ransac.h
+	      include/vigra_ext/RansacParameterEstimator.h
+	Copyright (C) Ziv Yaniv
+
+	All other files in include/vigra_ext/
+	Copyright (C) Pablo d'Angelo <pablo.dangelo@web.de>
+
+	File src/float_cast.h
+	Copyright (C) 2001 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
+
+	All other files (except include/vigra/*, m4/*, src/float_cast.h and
+		src/vigra_impex/*)
+	Copyright (C) 2004-2007 Andrew Mihal
+
+	This package is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This package is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this package; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+	USA.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL'.
+
+	Files include/vigra/cachedfileimage.hxx
+	      include/vigra/stdcachedfileimage.hxx
+	Copyright (C) 2004 Andrew Mihal
+
+	Files include/vigra/codec.hxx
+	      include/vigra/impex.hxx
+	      include/vigra/multi_array.hxx
+	      include/vigra/multi_impex.hxx
+	      include/vigra/multi_iterator.hxx
+	Copyright (C) 2001-2002 Gunnar Kedenburg
+
+	File include/vigra/diff2d.hxx
+	Copyright (C) 1998-2003 Hans Meine
+
+	Files include/vigra/gaborfilter.hxx
+	      include/vigra/memory.hxx
+	      include/vigra/pixelneighborhood.hxx
+	      include/vigra/seededregiongrowing.hxx
+	Copyright (C) 1998-2005 Ullrich Koethe
+	Copyright (C) 1998-2005 Hans Meine
+
+	Files include/vigra/imageinfo.hxx
+	      include/vigra/linear_solve.hxx
+	      include/vigra/matrix.hxx
+	Copyright (C) 1998-2001 Ullrich Koethe
+	Copyright (C) 2001-2002 Gunnar Kedenburg
+
+	File include/vigra/multi_convolution.hxx
+	Copyright (C) 2003 Christian-Dennis Rahn
+	Copyright (C) 2003 Ullrich Koethe
+
+	All other files in include/vigra/
+	Copyright (C) 1998-2006 Ullrich Koethe
+
+	Files src/vigra_impex/byteorder.cxx
+	      src/vigra_impex/error.hxx
+	Copyright (C) 2002-2004 Ullrich Koethe
+	Copyright (C) 2002-2004 Gunnar Kedenburg
+
+	Files src/vigra_impex/gif.cxx
+	      src/vigra_impex/gif.hxx
+	Copyright (C) 2002 Ullrich Koethe
+
+	Files src/vigra_impex/hdr.cxx
+	      src/vigra_impex/hdr.hxx
+	Copyright (C) 1998-2002 Pablo d'Angelo
+
+	Files src/vigra_impex/iccjpeg.c
+	      src/vigra_impex/iccjpeg.h
+	Copyright (C) Tom Lane
+
+	All other files in src/vigra_impex/
+	Copyright (C) 1998-2004 Gunnar Kedenburg
+
+	(the VIGRA license - identical to the MIT X11 license)
+
+	Permission is hereby granted, free of charge, to any person
+	obtaining a copy of this software and associated documentation
+	files (the "Software"), to deal in the Software without
+	restriction, including without limitation the rights to use,
+	copy, modify, merge, publish, distribute, sublicense, and/or
+	sell copies of the Software, and to permit persons to whom the
+	Software is furnished to do so, subject to the following
+	conditions:
+
+	The above copyright notice and this permission notice shall be
+	included in all copies or substantial portions of the
+	Software.
+
+	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
+	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+	OTHER DEALINGS IN THE SOFTWARE.
+
+	Files m4/*
+	      src/float_cast.h
+	Copyright (C) Erik de Castro Lopo <erikd@mega-nerd.com>
+
+	Permission to use, copy, modify, distribute, and sell this file for any 
+	purpose is hereby granted without fee, provided that the above copyright 
+	and this permission notice appear in all copies. No representations are
+	made about the suitability of this software for any purpose. It is 
+	provided "as is" without express or implied warranty.
+
+	Files src/vigra_impex/rgbe.c
+	      src/vigra_impex/rgbe.h
+	Copyright (C) 1995 Bruce Walter <bjw@graphics.cornell.edu>
+
+	(The license of these files has been clarified by Bruce Walter during a
+	private email conversation.)
+
+	These files are public domain.
+
+The Debian packaging is (C) 2007, Sebastian Harl <sh@tokkee.org> and
+is licensed under the GPL, see above.
+
--- enblend-3.0+dfsg.orig/debian/control
+++ enblend-3.0+dfsg/debian/control
@@ -0,0 +1,37 @@
+Source: enblend
+Section: graphics
+Priority: optional
+Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
+Uploaders: Sebastian Harl <sh@tokkee.org>
+Build-Depends: debhelper (>= 5), dpatch, autotools-dev, libtiff4-dev, libboost-dev, liblcms1-dev, libglew-dev, freeglut3-dev, libplot-dev
+Standards-Version: 3.7.3
+Homepage: http://enblend.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/pkg-phototools/enblend.git
+Vcs-Browser: http://git.debian.org/?p=pkg-phototools/enblend.git
+
+Package: enblend
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: hugin
+Enhances: hugin
+Description: image blending tool
+ Enblend is a tool for compositing images. Given a set of images that overlap
+ in some irregular way, Enblend overlays them in such a way that the seam
+ between the images is invisible, or at least very difficult to see. It can,
+ for example, be used to blend a panorama composed of several images.
+ .
+ It uses a Burt & Adelson multi-resolution spline. This technique tries to
+ make the seams between the input images invisible. The basic idea is that
+ image features should be blended across a transition zone proportional in
+ size to the spatial frequency of the features. For example, objects like
+ trees and windowpanes have rapid changes in color. By blending these
+ features in a narrow zone, you will not be able to see the seam because the
+ eye already expects to see color changes at the edge of these features.
+ Clouds and sky are the opposite. These features have to be blended across a
+ wide transition zone because any sudden change in color will be immediately
+ noticeable.
+ .
+ Enblend does not align images for you. Use a tool like Hugin or PanoTools to
+ do this. The TIFFs produced by these programs are exactly what Enblend is
+ designed to work with.
+
--- enblend-3.0+dfsg.orig/debian/rules
+++ enblend-3.0+dfsg/debian/rules
@@ -0,0 +1,78 @@
+#!/usr/bin/make -f
+# debian/rules for enblend
+#
+# Written by Sebastian Harl <sh@tokkee.org>.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+config.status: configure $(DPATCH_STAMPFN)
+	dh_testdir
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
+		--build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr --mandir=\$${prefix}/share/man
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+	
+	$(MAKE)
+	
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	
+	[ ! -f Makefile ] || $(MAKE) distclean
+	
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	
+	$(MAKE) DESTDIR=$(CURDIR)/debian/enblend install
+
+binary-indep:
+	# nothing to do here
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs NEWS TODO
+	dh_installexamples
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
+
--- enblend-3.0+dfsg.orig/debian/watch
+++ enblend-3.0+dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=dversionmangle=s/\+dfsg$// \
+http://sf.net/enblend/enblend-([0-9.]+)\.tar\.gz
--- enblend-3.0+dfsg.orig/debian/compat
+++ enblend-3.0+dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- enblend-3.0+dfsg.orig/debian/changelog
+++ enblend-3.0+dfsg/debian/changelog
@@ -0,0 +1,25 @@
+enblend (3.0+dfsg-2~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for Etch.
+  * Removed dpkg-dev build-dependency - we don't care about Vcs-* and Homepage
+    fields in backports.org.
+  * Limited libglew build dependency options to libglew-dev.
+
+ -- Sebastian Harl <sh@tokkee.org>  Sat, 17 May 2008 14:37:32 +0200
+
+enblend (3.0+dfsg-2) unstable; urgency=low
+
+  * Added libglew1.5-dev to the build dependencies to ease the libglew1.4 ->
+    libglew1.5 transition and make sbuild happy (Closes: #465620).
+
+ -- Sebastian Harl <sh@tokkee.org>  Wed, 13 Feb 2008 22:03:26 +0100
+
+enblend (3.0+dfsg-1) unstable; urgency=low
+
+  * Initial release (Closes: #294389, #390655).
+  * Removed GPL incompatible src/win32helpers/ from .orig.tar.gz.
+  * Added type_mismatch.dpatch to fix a failure to instantiate std::max().
+  * Added gcc4.3-includes.dpatch to add missing includes required by gcc-4.3.
+
+ -- Sebastian Harl <sh@tokkee.org>  Fri, 28 Dec 2007 02:46:07 +0100
+
--- enblend-3.0+dfsg.orig/debian/patches/type_mismatch.dpatch
+++ enblend-3.0+dfsg/debian/patches/type_mismatch.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## type_mismatch.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: Fixed a type mismatch when trying to instantiate std::max.
+
+@DPATCH@
+
+--- a/src/anneal.h
++++ b/src/anneal.h
+@@ -678,7 +678,7 @@
+ 
+             localK = stateSpace->size();
+             if (localK < 2) convergedPoints[index] = true;
+-            kMax = std::max(kMax, stateProbabilities->size());
++            kMax = std::max(kMax, (unsigned int)stateProbabilities->size());
+ 
+         }
+ 
--- enblend-3.0+dfsg.orig/debian/patches/gcc4.3-includes.dpatch
+++ enblend-3.0+dfsg/debian/patches/gcc4.3-includes.dpatch
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc4.3-includes.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: This patch adds missing includes required by gcc-4.3.
+
+@DPATCH@
+
+--- a/include/vigra/imageiteratoradapter.hxx	2007-01-27 05:54:46.000000000 +0100
++++ b/include/vigra/imageiteratoradapter.hxx	2007-12-27 18:15:52.000000000 +0100
+@@ -38,6 +38,8 @@
+ #ifndef VIGRA_IMAGEITERATORADAPTER_HXX
+ #define VIGRA_IMAGEITERATORADAPTER_HXX
+ 
++#include <cstdlib>
++
+ #include <iterator>   // iterator tags
+ 
+ namespace vigra {
+--- a/src/gpu.cc	2006-12-08 09:40:58.000000000 +0100
++++ b/src/gpu.cc	2007-12-28 04:04:49.000000000 +0100
+@@ -18,6 +18,8 @@
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+  */
+ 
++#include <cstdlib>
++
+ #include <iostream>
+ 
+ #include "gpu.h"
--- enblend-3.0+dfsg.orig/debian/patches/00list
+++ enblend-3.0+dfsg/debian/patches/00list
@@ -0,0 +1,3 @@
+type_mismatch.dpatch
+gcc4.3-includes.dpatch
+
