--- hugin-2009.2.0+dfsg.orig/debian/matchpoint.1
+++ hugin-2009.2.0+dfsg/debian/matchpoint.1
@@ -0,0 +1,77 @@
+.\"                                      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 matchpoint 1 "2009-06-18"
+.\" 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
+matchpoint \- next generation control point generator
+.SH SYNOPSIS
+.B matchpoint
+.RI [ options ] " image1.jpg" " output.key"
+.br
+.SH DESCRIPTION
+MatchPoint is a next generation CP generator. The result of a GSoC2007 project
+SoC2007_project_Feature_Descriptor. Currently it offers only keypoint detection
+but not matching (matching was part of other GSoC 07 project that was not
+carried out) and can currently be used only as a replacement for generatekeys
+from autopano-sift or autopano-sift-C.
+
+A current version of matchpoint can be obtained via the hugin project.
+
+Goal of this MatchPoint is to create a complete control point suite that will
+be used by hugin as a replacement(or at least an alternative) to existing
+autopano suites.
+
+If you want to use MatchPoint in the process of creating panoramic images
+now (when not all features are implemented) you will have to use autopano-sift
+also.
+
+Usage:
+.br
+// first extract features from the first image and output them to the image1.key:
+.br
+MatchPoint image1.jpg image1.key
+
+// for second image:
+.br
+MatchPoint image2.jpg image2.key
+
+// match features from the two generated files using autopano:
+.br
+autopano project.pto image1.key image2.key
+
+// open the project file in hugin:
+.br
+hugin project.pto 
+
+.SH OPTIONS
+.TP
+.B \-v
+verbose output
+.TP
+.B \-t
+generate keypoint file for matlab test suite(file name is generated using formula: image1.jpg.key) 
+
+.SH SEE ALSO
+.BR autopano (1),
+.BR autopano-sift-c (1).
+.br
+http://wiki.panotools.org/MatchPoint
+.SH AUTHOR
+matchpoint was written by Zoran Mesec.
+.PP
+This manual page was generated by reformating content from 
+http://wiki.panotools.org/MatchPoint by Andreas Metzler for the
+Debian project (and may be used by others).
--- hugin-2009.2.0+dfsg.orig/debian/README.source
+++ hugin-2009.2.0+dfsg/debian/README.source
@@ -0,0 +1,6 @@
+This package is using quilt for patch management. Please consult quilt's own
+documentation.
+
+The standard debian/rules targets patch and unpatch work as expected.
+
+
--- hugin-2009.2.0+dfsg.orig/debian/hugin-tools.install
+++ hugin-2009.2.0+dfsg/debian/hugin-tools.install
@@ -0,0 +1,26 @@
+# Binaries
+usr/bin/align_image_stack
+usr/bin/autooptimiser
+usr/bin/fulla
+usr/bin/hugin_hdrmerge
+usr/bin/nona
+usr/bin/tca_correct
+usr/bin/vig_optimize
+usr/bin/celeste_standalone
+usr/bin/matchpoint
+usr/bin/pto2mk
+usr/lib
+
+# Manpages
+usr/share/man/man1/fulla.1
+usr/share/man/man1/hugin_hdrmerge.1
+usr/share/man/man1/autooptimiser.1
+usr/share/man/man1/align_image_stack.1
+usr/share/man/man1/nona.1
+usr/share/man/man1/vig_optimize.1
+usr/share/man/man1/tca_correct.1
+usr/share/man/man1/celeste_standalone.1
+usr/share/man/man1/pto2mk.1
+
+# Lintian overrides
+../overrides/hugin-tools usr/share/lintian/overrides
--- hugin-2009.2.0+dfsg.orig/debian/compat
+++ hugin-2009.2.0+dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- hugin-2009.2.0+dfsg.orig/debian/TODO
+++ hugin-2009.2.0+dfsg/debian/TODO
@@ -0,0 +1,15 @@
+TODO for hugin:
+---------------
+
+  * Look for items under src/foreign and see whether such packages exist
+    in Debian already.
+  * Double check cmake's support for CFLAGS/LDFLAGS.
+  * Track down embedded code copies and get rid of them (at least don't
+    use them). Notify the security team about them. At the moment,
+    there's vigra_impex at least (see libvigraimpex-dev).
+  * Find nice short descriptions for each package.
+  * Also mention tca_correct; make sure all binaries are listed there.
+  * Adapt README.Debian, probably specifying that this version and later
+    are OK-ish, or even drop it.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 11 Nov 2008 16:21:42 +0100
--- hugin-2009.2.0+dfsg.orig/debian/hugin.install
+++ hugin-2009.2.0+dfsg/debian/hugin.install
@@ -0,0 +1,17 @@
+# Binaries
+usr/bin/hugin
+usr/bin/hugin_stitch_project
+usr/bin/nona_gui
+usr/bin/PTBatcherGUI
+usr/bin/PTBatcher
+usr/bin/autopano-noop
+
+usr/share/man/man1/nona_gui.1
+usr/share/man/man1/hugin.1
+usr/share/man/man1/hugin_stitch_project.1
+usr/share/man/man1/PTBatcherGUI.1
+
+# Desktop
+usr/share/applications
+usr/share/mime/packages/hugin.xml
+
--- hugin-2009.2.0+dfsg.orig/debian/watch
+++ hugin-2009.2.0+dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="uversionmangle=s/[_-]/\~/g,dversionmangle=s/\+dfsg//" \
+       http://sf.net/hugin/hugin-(.+)\.tar\.(?:bz2|gz)
--- hugin-2009.2.0+dfsg.orig/debian/control
+++ hugin-2009.2.0+dfsg/debian/control
@@ -0,0 +1,67 @@
+Source: hugin
+Section: graphics
+Priority: optional
+Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
+Uploaders: Cyril Brulebois <kibi@debian.org>, Florent Bayle <fbayle@bigfoot.com>, Andreas Metzler <ametzler@debian.org>
+Build-Depends: debhelper (>= 5), quilt, cmake, libboost-graph-dev, libboost-thread-dev, zlib1g-dev, libexiv2-dev (>= 0.12), libjpeg62-dev, libopenexr-dev, libpano13-dev (>= 2.9.14~0), libpng12-dev, libtiff4-dev, libgtk2.0-dev, libwxgtk2.8-dev, libglew1.5-dev, freeglut3-dev, libboost-python-dev
+Build-Conflicts: wx2.6-headers
+Standards-Version: 3.8.3
+Homepage: http://hugin.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/pkg-phototools/hugin.git
+Vcs-Browser: http://git.debian.org/?p=pkg-phototools/hugin.git
+
+Package: hugin
+Section: graphics
+Architecture: any
+Depends: hugin-tools (= ${binary:Version}), enblend (>= 3.2), enfuse, libimage-exiftool-perl, make, ${shlibs:Depends}, ${misc:Depends}
+Conflicts: hugin-bin (<< 0.7.0~svn)
+Replaces: hugin-bin (<< 0.7.0~svn), hugin-data (<< 0.7.0~svn), hugin-tools (<< 0.7.0~svn)
+Provides: hugin-bin
+Description: GUI tools for Hugin
+ Hugin is a panorama photo stitching program. Essentially, Hugin is a
+ GUI frontend for Panorama Tools. Stitching is accomplished by using
+ several overlapping photos taken from the same location, and using
+ control points to align and transform the photos so that they can be
+ blended together to form a larger image. Hugin allows for the easy
+ creation of control points between two images, optimization of the
+ image transforms, and much more.
+ .
+ This package includes the following graphical interfaces, using the
+ command-line tools provided in the hugin-tools package:
+  * hugin                - Hugin panorama creator
+  * hugin_stitch_project - Hugin batch stitcher
+  * nona_gui             - Graphical interface for nona.
+
+Package: hugin-tools
+Section: graphics
+Architecture: any
+Depends: hugin-data (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Conflicts: hugin-bin (<< 0.7.0~svn)
+Replaces: hugin-bin (<< 0.7.0~svn)
+Recommends: libpano13-bin
+Suggests: autopano-sift | autopano-sift-c
+Description: CLI tools for Hugin
+ Hugin is a panorama photo stitching program.
+ .
+ This package includes command-line tools used by hugin and other
+ packages for image stitching and High Dynamic Range (HDR) images:
+  * align_image_stack - Align overlapping images for HDR creation.
+  * autooptimiser     - Optimize image positions.
+  * fulla             - Correct lens distortion, vignetting, and
+                        chromatic aberration.
+  * hugin_hdrmerge    - Merge overlapping images.
+  * nona              - Stitch a panorama image.
+  * vig_optimize      - Determine the radial vignetting.
+  * pto2mk            - Create a makefile for stitching.
+  * matchpoint        - Run feature detection and extraction
+  * celeste_standalone- Remove cloud-like control points.
+
+Package: hugin-data
+Section: graphics
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: data files for Hugin
+ Hugin is a panorama photo stitching program.
+ .
+ This package includes the data files needed by the hugin and
+ hugin-tools packages.
--- hugin-2009.2.0+dfsg.orig/debian/copyright
+++ hugin-2009.2.0+dfsg/debian/copyright
@@ -0,0 +1,892 @@
+X-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+X-Debianized-By: Florent Bayle <fbayle@bigfoot.com>
+X-Debianized-Date: Thu, 27 Jul 2006 16:17:46 +0200
+X-Source-Downloaded-From: http://sourceforge.net/projects/hugin/
+X-Upstream-Author: Pablo d'Angelo <pablo.dangelo@web.de>
+X-Last-Updated: 2009.2.0 svn r4385
+
+
+#########################################
+# Some files have been removed from upstream's tarball since they are
+# superfluous on linux and the copyright/license situation is unclear.
+# 
+# See get-orig-source target in debian/rules
+#########################################
+
+
+
+
+
+
+
+# --- ./
+
+Files: *
+Copyright: © 2004-2009 Pablo d'Angelo <pablo.dangelo@web.de>
+           © 2004-2009 Kai-Uwe Behrmann
+           © 2004-2009 Douglas Wilkins
+           © 2004-2009 Ed Halley
+           © 2004-2009 Ippei Ukai
+           © 2004-2009 Bruno Postle
+           © 2004-2009 Jing Jin
+           © 2004-2009 Zoran Mesec
+           © 2004-2009 Alexandre Jenny
+           © 2004-2009 Ziv Yaniv
+           © 2004-2009 Marek Januszewski
+           © 2004-2009 Gerry Patterson
+           © 2004-2009 Tom Sharpless
+           © 2004-2009 Yuval Levy
+           © 2004-2009 Harry van der Wolf
+           © 2004-2009 Marko Kuder
+           © 2004-2009 James Legg
+           © 2004-2009 Tim Nugent
+           © 2004-2009 Luca Vascon
+
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+X-Upstream-To-Do: Check whether assuming everyone's is © 2004-2009 is correct.
+
+
+# --- CMakeModules/
+
+Files: CMakeModules/FindJPEG.cmake,
+ CMakeModules/FindMSGFMT.cmake,
+ CMakeModules/FindPANO13.cmake,
+ CMakeModules/FindPNG.cmake,
+ CMakeModules/FindTIFF.cmake,
+ CMakeModules/FindZLIB.cmake
+Copyright: © 2007 TKSharpless
+License: NONE
+X-Upstream-To-Do: Add license/copyright statements.
+
+Files: CMakeModules/AppleRELEASEOptions.cmake
+ CMakeModules/FindBoost.cmake
+ CMakeModules/FindExiv2.cmake
+ CMakeModules/FindGLEW.cmake
+ CMakeModules/FindPackageHandleStandardArgs.cmake
+ CMakeModules/FindPANO12.cmake
+ CMakeModules/HuginMacros.cmake
+ CMakeModules/FindGLUT.cmake
+Copyright: UNKNOWN
+License: NONE
+X-Upstream-To-Do: Add license/copyright statements.
+
+Files: CMakeModules/FindLAPACK.cmake
+Copyright: © 2009 Lukas Jirkovsky
+License: NONE
+X-Upstream-To-Do: Add license/copyright statements.
+
+
+Files: CMakeModules/FindLibraryWithDebug.cmake
+Copyright: © 2007 Christian Ehrlicher <ch.ehrlicher@gmx.de>
+License:
+ | Redistribution and use in source and binary forms, with or without
+ | modification, are permitted provided that the following conditions
+ | are met:
+ |
+ | 1. Redistributions of source code must retain the copyright
+ |    notice, this list of conditions and the following disclaimer.
+ | 2. Redistributions in binary form must reproduce the copyright
+ |    notice, this list of conditions and the following disclaimer in the
+ |    documentation and/or other materials provided with the distribution.
+ | 3. The name of the author may not be used to endorse or promote products
+ |    derived from this software without specific prior written permission.
+ |
+ | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+X-Upstream-To-Do: Include a proper license file.
+
+Files: CMakeModules/FindOpenEXR.cmake
+Copyright: © 2006 Alexander Neundorf <neundorf@kde.org>
+License:
+ | Redistribution and use in source and binary forms, with or without
+ | modification, are permitted provided that the following conditions
+ | are met:
+ |
+ | 1. Redistributions of source code must retain the copyright
+ |    notice, this list of conditions and the following disclaimer.
+ | 2. Redistributions in binary form must reproduce the copyright
+ |    notice, this list of conditions and the following disclaimer in the
+ |    documentation and/or other materials provided with the distribution.
+ | 3. The name of the author may not be used to endorse or promote products
+ |    derived from this software without specific prior written permission.
+ |
+ | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+X-Upstream-To-Do: Include a proper license file.
+
+Files: CMakeModules/FindMSGFMT.cmake
+Copyright: NONE
+License: file taken from rosegarden
+X-Upstream-To-Do: Ask rosegarden's people for its license, might be
+ GPL-2. Or eventually use one from KDE as well (same license as above).
+
+Files: CMakeModules/FindPkgConfig.cmake
+Copyright: © 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+License: BSD-2
+ | Redistribution and use, with or without modification, are permitted
+ | provided that the following conditions are met:
+ |
+ |    1. Redistributions must retain the above copyright notice, this
+ |       list of conditions and the following disclaimer.
+ |    2. The name of the author may not be used to endorse or promote
+ |       products derived from this software without specific prior
+ |       written permission.
+ |
+ | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ | GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+ | IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: CMakeModules/FindSubversion.cmake
+Copyright: © 2006 Tristan Carel
+License: BSD-3
+ | All rights reserved.
+ | Redistribution and use in source and binary forms, with or without
+ | modification, are permitted provided that the following conditions are met:
+ |
+ |     * Redistributions of source code must retain the above copyright
+ |       notice, this list of conditions and the following disclaimer.
+ |     * Redistributions in binary form must reproduce the above copyright
+ |       notice, this list of conditions and the following disclaimer in the
+ |       documentation and/or other materials provided with the distribution.
+ |     * Neither the name of the University of California, Berkeley nor the
+ |       names of its contributors may be used to endorse or promote products
+ |       derived from this software without specific prior written permission.
+ |
+ | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
+ | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ | DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
+ | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+# --- mac/
+
+X-Removed-Files: mac/*
+X-Removed-Reason: Only needed on MacOS platforms.
+
+
+
+# --- platforms/
+
+
+Files: platforms/windows/droplets/*
+Copyright: © 2008 Erik Krause
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: platforms/windows/msi/*
+Copyright: NONE
+License: NONE
+
+X-Removed-Files: platforms/windows/*
+X-Removed-Reason: Only needed on Windows platforms.
+
+Files: platforms/linux/enfuse-raw.sh
+Copyright: © 2008 Simon Oosthoek
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: platforms/linux/smartblend*
+Copyright: 2008 Bob Bright <bbbri...@gmail.com>
+License: NONE
+
+X-Removed-Files: platforms/mac/*
+X-Removed-Reason: Only needed on mac platforms.
+
+# --- src/celeste/
+
+Files: src/celeste/svm.h
+ src/celeste/svm.cpp
+Copyright: 2000-2008 Chih-Chung Chang and Chih-Jen Lin
+License: BSD-3
+| All rights reserved.
+| 
+| Redistribution and use in source and binary forms, with or without
+| modification, are permitted provided that the following conditions
+| are met:
+| 
+| 1. Redistributions of source code must retain the above copyright
+| notice, this list of conditions and the following disclaimer.
+| 
+| 2. Redistributions in binary form must reproduce the above copyright
+| notice, this list of conditions and the following disclaimer in the
+| documentation and/or other materials provided with the distribution.
+| 
+| 3. Neither name of copyright holders nor the names of its contributors
+| may be used to endorse or promote products derived from this software
+| without specific prior written permission.
+| 
+| 
+| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+| ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+| A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR
+| CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+| EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+| PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+| PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+| LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+| NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: src/celeste/ContrastFilter.cpp
+ src/celeste/ContrastFilter.h
+ src/celeste/GaborFilter.cpp
+ src/celeste/GaborFilter.h
+ src/celeste/GaborGlobal.h
+ src/celeste/GaborJet.cpp
+ src/celeste/GaborJet.h
+ src/celeste/ImageFile.cpp
+ src/celeste/ImageFile.h
+ src/celeste/LogPolar.cpp
+ src/celeste/LogPolar.h
+ src/celeste/PGMImage.cpp
+ src/celeste/PGMImage.h
+ src/celeste/Utilities.cpp
+ src/celeste/Utilities.h
+Copyright: (c) 2002-3 Adriaan Tijsseling
+License: GPL-2+
+|                              All Rights Reserved
+| 
+|     This program 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 program 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 program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# --- src/foreign/
+
+Files: src/foreign/ANN/*
+Copyright: © 1997-2005 University of Maryland
+           © 1997-2005 Sunil Arya <arya@cs.ust.hk>
+           © 1997-2005 David Mount <mount@cs.umd.edu>
+License: LGPL-2.1+
+ | This software and related documentation is part of the Approximate
+ | Nearest Neighbor Library (ANN).
+ |
+ | This program is free software; you can redistribute it and/or modify it
+ | under the terms of the GNU Lesser Public License as published by the
+ | Free Software Foundation; either version 2.1 of the License, or (at your
+ | option) any later version.
+ |
+ | This program 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
+ | Lesser Public License for more details.
+ |
+ | The University of Maryland and the authors make no representations about
+ | the suitability or fitness of this software for any purpose.  It is
+ | provided "as is" without express or implied warranty.
+ |
+ | On Debian systems, the complete text of the LGPL version 2.1 can be
+ | found in /usr/share/common-licenses/LGPL-2.1
+
+Files: src/foreign/geptopt/include/getopt.h,
+ src/foreign/getopt/include/src/*
+Copyright: © 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: src/foreign/getopt/src/msvs/*
+Copyright: NONE
+License: NONE
+
+X-Removed-Files: src/foreign/getopt/src/msvs/*
+X-Removed-Reason: Only needed on Windows platforms.
+
+Files: src/foreign/lensdb/*
+Copyright: © 2004 Thomas Niemann <thomasn@epaperpress.com>
+                  Tim Jacobs <twjacobs@gmail.com>
+                  Pablo d'Angelo <pablo.dangelo@web.de>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+X-To-Do: Eventually distinguish between .c and .h, fix missing
+ copyright years.
+
+Files: src/foreign/levmar/*
+Copyright: © 2004-2005 Manolis Lourakis <lourakis@ics.forth.gr>
+                       Institute of Computer Science, Foundation for Research
+                       & Technology - Hellas Heraklion, Crete, Greece.
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: src/foreign/vigra/*
+Copyright: © 1998-2004 Hans Meine
+           © 2001-2004 Gunnar Kedenburg
+           © 2003      Christian-Dennis Rahn
+           © 2004      Douglas Wilkins
+           © 2004      Andrew Mihal
+           © 1998-2006 Ullrich Koethe
+           © 1998-2006 Cognitive Systems Group, University of Hamburg, Germany
+           © 1998-2007 Pablo d'Angelo
+License: The VIGRA License
+ | 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: src/foreign/vigra/vigra/rational.hxx
+Copyright: © 1998-2004 Ullrich Koethe
+           © 1998-2004 Cognitive Systems Group, University of Hamburg, Germany
+           © 1999      Paul Moore
+License: The VIGRA 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.
+ |
+ | this file is based on work by Paul Moore:
+ |
+ | (C) Copyright Paul Moore 1999. Permission to copy, use, modify, sell and
+ | distribute this software is granted provided this copyright notice appears
+ | in all copies. This software is provided "as is" without express or
+ | implied warranty, and with no claim as to its suitability for any purpose.
+ |
+ |  See http://www.boost.org/libs/rational for documentation.
+
+Files: src/foreign/vigra/vigra_impex/iccjpeg.{c,h}
+Copyright: NONE
+License: NONE
+ | 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.
+ |
+ |
+ |
+ | iccprofile.{c,h}
+ |
+ | This file provides code to read and write International Color Consortium
+ | (ICC) device profiles embedded in JFIF JPEG image files.  The ICC has
+ | defined a standard format for including such data in JPEG "APP2" markers.
+ | The code given here does not know anything about the internal structure
+ | of the ICC profile data; it just knows how to put the profile data into
+ | a JPEG file being written, or get it back out when reading.
+ |
+ | This code depends on new features added to the IJG JPEG library as of
+ | IJG release 6b; it will not compile or work with older IJG versions.
+ |
+ | NOTE: this code would need surgery to work on 16-bit-int machines
+ | with ICC profiles exceeding 64K bytes in size.  If you need to do that,
+ | change all the "unsigned int" variables to "INT32".  You'll also need
+ | to find a malloc() replacement that can allocate more than 64K.
+ |
+ | This file has been taken from the little cms project and is licensed under the MIT
+ | license.
+X-To-Do: Clarify copyright holders, copyright years, check
+ license, for both .{c,h} files.
+
+Files: src/foreign/vigra/vigra_impex/rgbe.c
+Copyright: NONE
+License: NONE
+ | This file contains code to read and write four byte rgbe file format
+ | developed by Greg Ward.  It handles the conversions between rgbe and
+ | pixels consisting of floats.  The data is assumed to be an array of floats.
+ | By default there are three floats per pixel in the order red, green, blue.
+ | (RGBE_DATA_??? values control this.)  Only the mimimal header reading and
+ | writing is implemented.  Each routine does error checking and will return
+ | a status value as defined below.  This code is intended as a skeleton so
+ | feel free to modify it to suit your needs.
+ |
+ | (Place notice here if you modified the code.)
+ | posted to http://www.graphics.cornell.edu/~bjw/
+ | written by Bruce Walter  (bjw@graphics.cornell.edu)  5/26/95
+ | based on code written by Greg Ward
+X-To-Do: Clarify copyright holders, copyright years, check
+ license. See libpano13 for references.
+
+Files: src/foreign/vigra/vigra_impex/rgbe.h
+Copyright: NONE
+License: NONE
+ | THIS CODE CARRIES NO GUARANTEE OF USABILITY OR FITNESS FOR ANY PURPOSE.
+ | WHILE THE AUTHORS HAVE TRIED TO ENSURE THE PROGRAM WORKS CORRECTLY,
+ | IT IS STRICTLY USE AT YOUR OWN RISK.  */
+ |
+ | utility for reading and writing Ward's rgbe image format.
+ | See rgbe.txt file for more details.
+ |
+ |
+ | changes by Pablo d'Angelo <pablo.dangelo@web.de>:
+ | Added vigra_ prefix to all exported symbols
+X-To-Do: Clarify copyright holders, copyright years, check
+ license. See libpano13 for references.
+ http://www.graphics.cornell.edu/~bjw/rgbe/ 
+
+
+
+# --- src/hugin_base/
+
+Files: src/hugin_base/hugin_utils/stl_utils.h
+Copyright: © 1994 Hewlett-Packard Company
+           © 1996 Silicon Graphics Computer Systems, Inc.
+License: NONE
+ | taken from the GNU/sgi stl extensions
+ |
+ | Permission to use, copy, modify, distribute and sell this software
+ | and its documentation for any purpose is hereby granted without fee,
+ | provided that the above copyright notice appear in all copies and
+ | that both that copyright notice and this permission notice appear
+ | in supporting documentation.  Silicon Graphics makes no
+ | representations about the suitability of this software for any
+ | purpose.  It is provided "as is" without express or implied warranty.
+
+Files: src/hugin_base/vigra_ext/emor.cpp
+Copyright: © 2004 Computer Vision Laboratory, Columbia University
+License: NONE
+ | 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.
+ |
+ | The EMoR model is described in this paper
+ |  "Modeling the Space of Camera Response Functions,"
+ |  M.D. Grossberg and S.K. Nayar,
+ |  IEEE Transactions on Pattern Analysis and Machine Intelligence,
+ |  Vol.26, No.10, pp.1272-1282, Oct, 2004.
+
+Files: src/hugin_base/hugin_math/eig_jacobi.cpp
+Copyright: NONE
+License: NONE
+ | /** @file jacobi_eig.cpp
+ |  *
+ |  *  @author mike_ess@yahoo.com
+ |  *
+ |  *  Function comes from http://mywebpages.comcast.net/mike_ess/
+ |  *
+ |  *  $Id: eig_jacobi.cpp 2510 2007-10-28 22:24:11Z dangelo $
+ |  *
+ |  */
+X-To-Do: Check copyright holders and license.
+
+Files: src/hugin_base/hugin_math/lu.{c,h}
+Copyright: NONE
+License: NONE
+X-To-Do: See the same file under another location.
+
+Files: src/hugin_base/vigra_ext/pyramid2.h,
+ src/hugin_base/vigra_ext/NearestFeatureTransform.h
+Copyright: © 2004-2007 Andrew Mihal
+License: GPL-2+
+ | This file is part of Enblend.
+ |
+ | Stripped down and adjust for use in hugin by Pablo d'Angelo
+ |
+ |
+ | Enblend 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.
+ |
+ | Enblend 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: src/hugin_base/vigra_ext/RansacParameterEstimator.h
+ src/hugin_base/vigra_ext/VigQuotientEstimator.h
+Copyright: NONE
+License: NONE
+
+
+
+
+# --- src/hugin_qtbase/
+
+Files: src/hugin_qtbase/*
+Copyright: © Ippei UKAI <ippei_ukai@mac.com>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+
+
+# --- src/hugin1/
+
+Files: src/hugin1/common/stl_utils.h
+Copyright: © 1994 Hewlett-Packard Company
+           © 1996 Silicon Graphics Computer Systems, Inc.
+License: NONE
+ | taken from the GNU/sgi stl extensions
+ |
+ | Permission to use, copy, modify, distribute and sell this software
+ | and its documentation for any purpose is hereby granted without fee,
+ | provided that the above copyright notice appear in all copies and
+ | that both that copyright notice and this permission notice appear
+ | in supporting documentation.  Silicon Graphics makes no
+ | representations about the suitability of this software for any
+ | purpose.  It is provided "as is" without express or implied warranty.
+
+Files: src/hugin1/common/lu.h
+Copyright: © Pablo d'Angelo <pablo.dangelo@web.de>
+           © Antoine Lefebvre <antoine.lefebvre@polymtl.ca>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+ |
+ |
+ | The LU decomposition function was taken from the rocketworkbench project:
+ |
+ | lu.c  -  PA = LU factorisation with pivoting
+ | $Id: lu.h 2510 2007-10-28 22:24:11Z dangelo $
+ | Copyright (C) 2000
+ |   Antoine Lefebvre <antoine.lefebvre@polymtl.ca>
+ |
+ |
+ | Licensed under the GPLv2
+X-To-Do: See whether the original GPL-2 has to be cited or
+ whether retaining GPL-2+ is sufficient.
+
+Files: src/hugin1/common/PTLensDB.h
+Copyright: © 2004 Thomas Niemann <thomasn@epaperpress.com>
+           ©      Tim Jacobs <twjacobs@gmail.com>
+           ©      Pablo d'Angelo <pablo.dangelo@web.de>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+X-Upstream-To-Do: Fix missing copyright years.
+
+
+Files: src/hugin1/*
+Copyright: © Pablo d'Angelo <pablo.dangelo@web.de>
+           © Jing Jin <jingidy@gmail.com>
+           © Philippe Thomin <philippe.thomin@univ-valenciennes.fr>
+           © Antoine Lefebvre <antoine.lefebvre@polymtl.ca>
+License: GPL-2+
+
+Files: src/matchpoint/edgedetection.hxx
+Copyright: Copyright 1998-2002 by Ullrich Koethe Cognitive Systems Group, University of Hamburg, Germany
+License: The VIGRA License
+
+
+Files: src/matchpoint/java/gauss/Main.java
+Copyright: Copyright (C) 2007 by Zoran Mesec
+License: GPLv2+
+
+
+# --- src/translations/
+
+Files: src/translations/*
+Copyright: © 2004 Pablo dAngelo <pablo.dangelo@web.de>
+           © 2004 Douglas Wilkins <douglasw@zahav.co.il>
+           © 2004 Marek Januszewski <spec@webtech.pl>
+           © 2004 Lorenz Trischberger <trischberger@ilo.de>
+           © 2004-2008 Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>
+           © 2005 Luca Vascon <crimsonkingit@yahoo.com>
+           © 2005 Harry van der Wolf <harryvanderwolf@xs4all.nl>
+           © 2005-2006 Jakub Bogusz <qboosh@pld-linux.org>
+           © 2005-2007 Ademar de Souza Reis Jr. <ademar@ademar.org>
+           © 2005-2007 Alexandre Prokoudine <alexandre.prokoudine@gmail.com>
+           © 2005-2008 Balló György <ballogy@freestart.hu>
+           © 2005-2008 Ippei UKAI <ippei_ukai@mac.com>
+           © 2006 Serhij Dubyk <dubyk@library.lviv.ua>
+           © 2006 Jiri Slaby <jirislaby@gmail.com>
+           © 2006-2008 Jozef Riha <jose1711@gmail.com>
+           © 2007 Ulf Wilhelmson <ulf.wilhelmson@gmail.com>
+           © 2007 Milo Casagrande <milo_casagrande@yahoo.it>
+           © 2007 Michał Smoczyk <msmoczyk@wp.pl>
+           © 2007-2008 Jorge González <jorgegonz@svn.gnome.org>
+           © 2008 Joachim Schneider <j-schneid@gmx.de>
+           © 2008 Albert Capellades Badia <albertcba@gmail.com>
+           © 2008 Simon Oosthoek <simon@margo.student.utwente.nl>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+
+
+
+
+# --- debian/
+
+Files: debian/*
+Copyright: © 2006-2007 Florent Bayle <fbayle@bigfoot.com>
+           © 2007-2008 Cyril Brulebois <kibi@debian.org>
+License: GPL-2+
+ | 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 GPL version 2 can be
+ | found in /usr/share/common-licenses/GPL-2.
+
+Files: doc/align_image_stack.pod
+ doc/autooptimiser.pod
+ doc/fulla.pod
+ doc/hugin_hdrmerge.pod
+ doc/hugin.pod
+ doc/hugin_stitch_project.pod
+ doc/nona_gui.pod
+ doc/nona.pod
+ doc/vig_optimize.pod
+Copyright: 2008 Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
+License: Licensed under the same terms as the hugin package itself.
--- hugin-2009.2.0+dfsg.orig/debian/changelog
+++ hugin-2009.2.0+dfsg/debian/changelog
@@ -0,0 +1,324 @@
+hugin (2009.2.0+dfsg-2~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Andreas Metzler <ametzler@debian.org>  Tue, 20 Oct 2009 19:20:10 +0200
+
+hugin (2009.2.0+dfsg-2) unstable; urgency=low
+
+  * Stop specialcasing Linux in 42_stoplinklibXI_libXmu. None of Debian's
+    architectures should require linkage against indirect dependencies. This
+    hopefully makes hugin build on kFreeBSD (and hurd).
+
+ -- Andreas Metzler <ametzler@debian.org>  Thu, 08 Oct 2009 19:20:51 +0200
+
+hugin (2009.2.0+dfsg-1) unstable; urgency=low
+
+  * New upstream release, identical to rc1. Closes: #549119
+  * Upload to unstable.
+
+ -- Andreas Metzler <ametzler@debian.org>  Tue, 06 Oct 2009 19:07:27 +0200
+
+hugin (2009.2.0+dfsg~rc1-1) experimental; urgency=low
+
+  * New upstream release candidate.
+  * Boost-defaults has switched to version 1.40:
+    + boost/thread/thread.hpp does not #include <boost/function.hpp> anymore.
+      Patch hugin [debian/patches/55_boost1.40.diff] to directly include the
+      header.
+    + libboost-graph1.40-dev's boost/graph/breadth_first_search.hpp indirectly
+      #includes (and therefore requires)
+      boost/python/detail/referent_storage.hpp which is part of
+      libboost-python1.40-dev. However the former package does not depend on
+      the package. Temporarily add a build-dependency until #548503 is
+      resolved.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sun, 27 Sep 2009 12:13:27 +0200
+
+hugin (0.8.0.dfsg+2009.2.0~beta4-1) experimental; urgency=low
+
+  * New upsteam version 2009.2.0 beta4.
+    + Tarball does not contain src/matchpoint/evaluation anymore, update
+      get-orig-source target and debian/copyright.
+    + Drop debian/patches/40_fix_implicit_linking - applied upstream.
+  * 45_autopano-noop.sh_withoutshextension: Install autopano-noop.sh as
+    autopano-noop.
+  * Ship autopano-noop wrapper script (in hugin package, since it is invoked
+    from the GUI frontend.)
+
+ -- Andreas Metzler <ametzler@debian.org>  Mon, 14 Sep 2009 11:22:52 +0200
+
+hugin (0.8.0.dfsg+2009.2.0~beta3+svn4385-1) experimental; urgency=low
+
+  * svn prerelease 4385.
+    + Does not crash when loading CR2 raw files anymore. Closes: #416222
+  * Old debian/patches/40_fix_implicit_linking applied upstream, but the code
+    is re-broken due to added dependencies. Update patch.
+  * Add freeglut3-dev to build-depends.
+  * Build with VERBOSE=1.
+  * New patch 42_stoplinklibXI_libXmu to stop FindGLUT.cmake from causing
+    direct linking against both libXi and libXmu.
+  * Update debian/copyright.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sat, 12 Sep 2009 09:55:56 +0200
+
+hugin (0.8.0.dfsg-2) unstable; urgency=low
+
+  * Upload to unstable.
+  * Use dversionmangle in watchfile.
+
+ -- Andreas Metzler <ametzler@debian.org>  Wed, 09 Sep 2009 20:11:43 +0200
+
+hugin (0.8.0.dfsg-1) experimental; urgency=low
+
+  [ Andreas Metzler ]
+  * New upstream version. Closes: #537542
+    + Uses correct default value for enfuse/enblend if the option is not
+      already saved. Closes: #504296
+  * [lintian] Stop invoking dh_desktop.
+  * Standards-Version 3.8.2, no changes required.
+  * Add minimal manpage for matchpoint.
+  * Add get-orig-source target to debian/rules
+  * Add minimal README.source.
+
+  [ Cyril Brulebois ]
+  * debian/watch: Follow upstream's move from bz2 to gz for the tarballs,
+    thanks to Fabrice Coutadeur (Closes: #539243). Finally support both
+    extensions, just to make sure.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sun, 06 Sep 2009 11:33:55 +0200
+
+hugin (0.8.0~rc4-1) experimental; urgency=low
+
+  * New upstream version.
+    + Drop patches/60_fixpreviewcrash.diff.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sat, 20 Jun 2009 10:13:45 +0200
+
+hugin (0.8.0~rc3-2) experimental; urgency=low
+
+  * [patches/60_fixpreviewcrash.diff] Pulled from upstream, fix a crash in
+    fast preview window.
+    https://sourceforge.net/tracker/?func=detail&aid=2801663&group_id=77506&atid=550441
+
+ -- Andreas Metzler <ametzler@debian.org>  Fri, 12 Jun 2009 19:26:42 +0200
+
+hugin (0.8.0~rc3-1) experimental; urgency=low
+
+  * New upstream version.
+    + jhead removed, update patches/40_fix_implicit_linking.
+    + Add Build-Conflicts: wx2.6-headers. If both wx2.6 and wx2.8 are
+      installed the cmake tests will find the lower (non-supported) version and
+      building of wx-using stuff is disabled.
+    + Builds with gcc 4.4.  Closes: #526183
+    + Does not end up with "false" instead of "enblend" in Makefiles when
+      options browsed but not saved. Closes: #504296
+    + Install newly added manpages.
+    + Standards-Version 3.8.1. No changes required.
+   * Drop debian/README.Debian, post-lenny uploads depend on enfuse and
+     enblend.
+   * Describe how Debian's orig.tgz differs from the upstream tarball in
+     debian/copyright.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sun, 07 Jun 2009 10:05:48 +0200
+
+hugin (0.8.0~beta4-1) experimental; urgency=low
+  
+  * Fix dependencies in debian/rules to correctly build with
+    dpkg-buildpackage -j3.
+  * New upstream version.
+    + Drop unneeded patches 20_remove_encoding_key_from_desktop_files,
+      30_manpage_hyphen_fixes: Fix hyphens in doc/fulla.1.
+    + Update 40_fix_implicit_linking.
+    + Now requires wxWidgets 2.8, GLEW and OpenGL. New projections require
+      libpano13 2.9.14. Update build-depends.
+    + New binaries matchpoint, celeste_standalone, pto2mk,
+      PTBatcherGUI and PTBatcher.
+    + Upstream's build system now correctly installs manpages, making it
+      possible to use dh_install instead of dh_installman to put them in
+      Debian packages. This makes "dh_install --list-missing
+      --sourcedir=debian/tmp" very useful.
+
+ -- Andreas Metzler <ametzler@debian.org>  Wed, 06 May 2009 19:20:41 +0200
+
+hugin (0.7.0-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Andreas Metzler <ametzler@debian.org>  Sun, 19 Apr 2009 18:21:47 +0200
+
+hugin (0.7.0-1) experimental; urgency=low
+
+  * New upstream release (Closes: #502721).
+  * Depend on both enblend (>= 3.2) and enfuse, now that they are
+    available (Closes: #495874).
+  * Drop the following patch accordingly:
+     - 50_disable_enblend_compression
+  * debian/rules:
+     - Specify “ChangeLog” in the dh_installchangelogs call since that's a
+       proper release and no longer an SVN snapshot.
+     - Get rid of the autooptimi{s,z}er renaming hack, fixed upstream.
+
+ -- Cyril Brulebois <kibi@debian.org>  Fri, 28 Nov 2008 03:34:21 +0100
+
+hugin (0.7.0~svn3191+beta5-2) unstable; urgency=low
+
+  * Update README.Debian to reflect the current status of hugin with
+    respect to enblend/enfuse. Also point to the following page, which
+    will contain uptodate information about the backports for the lenny
+    lifetime:
+      http://pkg-phototools.alioth.debian.org/lenny.html
+  * Add forgotten “tca_correct” binary to debian/hugin-tools.install,
+    thanks to Chris Chiappa (Closes: #502104). Another one is
+    “matchpoint”, but since it wasn't requested yet, don't touch it at the
+    moment.
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 04 Nov 2008 15:00:59 +0100
+
+hugin (0.7.0~svn3191+beta5-1) unstable; urgency=low
+
+  * New upstream release candidate: 0.7.0_beta5. The exact revision wasn't
+    specified but that's mostly the same as svn r3191.
+  * Adjust dependencies, thanks to several reporters, and especially to
+    Andreas Metzler for the checks on enblend and the pointers:
+     - Add make to hugin's Depends (Closes: #492469).
+     - Move enblend from hugin-tools's Recommends to hugin's Depends, as
+       it is now a requirement (Closes: #394647, #491539).
+     - Also add libimage-exiftool-perl since upstream specifies that the
+       the exiftool binary (from the Image::ExifTool Perl module) is
+       needed.
+     - Version the Build-Depends on libexiv2-dev: “>= 0.12”. With former
+       versions, an FTBFS is triggered due to undefined references to
+       Jpeg-related functions (Closes: #491335).
+  * Add autopano-sift-c as alternative to autopano-sift to the suggested
+    packages. As a reminder, patent issues prevent the inclusion of those
+    packages in Debian.
+  * Fix manpage mismatch: /usr/bin/autooptimizer versus autooptimizer(1),
+    (spotted by Julien Valroff, thanks):
+     - debian/rules: Copy generated doc/autooptimizer.1 into
+       doc/autooptimiser.1, and remember it for cleanup.
+     - debian/hugin-tools.manpages: Replace the z version with the s one.
+  * Disable enblend compression, since Debian has enblend 3.0 for now and
+    this option would require enblend 3.1 or a CVS snapshot. That means
+    that the compression setting is going to be silently ignored for now,
+    thanks to a quick patch by Steve Cotton (Closes: #491227, #491562):
+     - 50_disable_enblend_compression: Do not call enblend with
+       a “--compression” argument.
+  * Add a README.Debian file to document that some features (like the
+    above-mentioned one) might not be available because enblend 3.1 isn't
+    released yet, and suggesting the use of backports.org if enblend 3.1
+    can't make it in time for lenny.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 27 Jul 2008 05:40:02 +0200
+
+hugin (0.7.0~svn3191-1) unstable; urgency=low
+
+  * New snapshot, from upstream svn r3191 (Closes: #405389, #469449):
+     - Also fix FTBFS (Closes: #474787).
+  * Move the maintainer to the pkg-phototools team, add Florent Bayle and
+    myself to Uploaders.
+  * Ack NMUs, thanks Nico, Clint, Luk, and Joerg.
+  * Move the Homepage from the long description to a source field.
+  * Move patch management to quilt:
+     - Add a B-D on it.
+     - Add an include of quilt.make, adapt config.status and clean targets.
+  * Dropped patch:
+     - 10_fix_insecure_tmp_file_handling: Fix insecure file handling, patch
+       by Nico Golde (see 0.6.1-1.1). Merged upstream.
+  * Current patches:
+     - 20_remove_encoding_key_from_desktop_files: Remove unneeded
+       “Encoding” key from the desktop files, per lintian.
+     - 30_manpage_hyphen_fixes: Fix hyphens in doc/fulla.1.
+  * Nuke trailing spaces in all files under debian/.
+  * Bump Standards-Version to 3.8.0 (no change needed).
+  * Add Vcs-Git and Vcs-Browser, which have to be updated once the team's
+    repository is created.
+  * Add src/tests/Makefile to the dh_clean call since it is not cleaned.
+  * Move “usr/share/applications/*” from debian/hugin-data.install to
+    debian/hugin-bin.install so that the desktop file is kept with the
+    command it references.
+  * Add a “Replaces: hugin-data (<< 0.7.0)” to hugin-bin accordingly.
+  * Move from libpano12 to libpano13:
+     - Replace the Build-Depends on libpano12-dev with one on
+       libpano13-dev (though the build against libpano12 is still
+       possible).
+     - Replace hugin's Depends on libpano12-bin with one on libpano13-bin
+       (which is needed since libpano13.so gets dlopen'd).
+  * Adjust debian/rules to only use a configure target as well as a
+    configure-stamp file, so that ./configure is no longer run between
+    “make” and “make install”.
+  * Add debian/watch. Note that underscores and dashes are mangled as
+    tildes.
+  * Add “-Wl,--as-needed” and its companion “-Wl,-z,defs” to LDFLAGS to
+    avoid extra linking. To fix the (broken) build when these options are
+    in use, add a patch to take care of intermediate linking steps:
+     - 40_fix_implicit_linking.
+  * Delete debian/*.dirs since they are not needed.
+  * New build system:
+     - Replace ./configure with a cmake call.
+     - Add cmake to Build-Depends and drop autotools-dev accordingly.
+     - Drop config.{guess,sub}-related instructions from debian/rules.
+     - Build in “$(BUILD_DIR)” (set to build-dir), and don't rely on
+       “make (dist)clean” to do the job, cmake doesn't support it… Remove
+       the build directory in the clean target, as well as configure-stamp.
+  * Get rid of unneeded files right after “make install”:
+     - Extra license file.
+     - “*.so” symlinks to “*.so.0.0” files.
+  * Add lintian overrides for the following warnings about private
+    libraries, which will be moved by upstream under a private directory
+    (which makes these warnings quite irrelevant):
+     - several-sonames-in-same-package;
+     - package-name-doesnt-match-sonames.
+  * Add libopenexr-dev and libexiv2-dev to Build-Depends.
+  * Drop zip from Build-Depends, no longer needed.
+  * (Re)order Build-Depends:
+     - Build system related tools.
+     - Image libraries.
+     - GUI libraries.
+  * Add a “maint-svn-snapshot” target to ease svn snapshot creation. An
+    UVERSION parameter can be passed to force using a given revision
+    instead of determining it from the changelog.
+  * Generate the manpages from perlpod format in the “build” target,
+    taking care to remember which ones were generated during the build
+    (as opposed to the ones shipped by upstream, along with their .pod
+    counterpart).
+  * debian/hugin-tools.install: Add all files from /usr/bin but hugin.
+  * Simplify debian/hugin-data.install: Only list usr/share.
+
+ -- Cyril Brulebois <kibi@debian.org>  Sun, 13 Jul 2008 23:30:01 +0200
+
+hugin (0.6.1-1.4) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 4.3. (closes: #474787)
+
+ -- Joerg Friedrich <Joerg.Friedrich@friedrich-kn.de>  Sat, 12 Jul 2008 17:09:18 +0200
+
+hugin (0.6.1-1.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 4.3 (Closes: #421112).
+
+ -- Luk Claes <luk@debian.org>  Sat, 15 Mar 2008 21:59:16 +0000
+
+hugin (0.6.1-1.2) unstable; urgency=low
+
+  * NMU.
+  * Only run $(MAKE) distclean if Makefile exists.
+  * Switch hugin-bin menu section to Applications.
+
+ -- Clint Adams <schizo@debian.org>  Thu, 15 Nov 2007 09:05:59 -0500
+
+hugin (0.6.1-1.1) unstable; urgency=high
+
+  * Non-maintainer upload by testing security team.
+  * Fix insecure temp file handling (CVE-2007-5200) (Closes: #447344).
+
+ -- Nico Golde <nion@debian.org>  Wed, 24 Oct 2007 18:31:00 +0200
+
+hugin (0.6.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #251618)
+
+ -- Florent Bayle <fbayle@bigfoot.com>  Thu, 27 Jul 2006 16:17:46 +0200
+
--- hugin-2009.2.0+dfsg.orig/debian/hugin-data.install
+++ hugin-2009.2.0+dfsg/debian/hugin-data.install
@@ -0,0 +1,4 @@
+usr/share/icons
+usr/share/hugin
+usr/share/locale
+usr/share/pixmaps
--- hugin-2009.2.0+dfsg.orig/debian/rules
+++ hugin-2009.2.0+dfsg/debian/rules
@@ -0,0 +1,181 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+# 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.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+BUILD_DIR=build-dir
+
+include /usr/share/quilt/quilt.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+LDFLAGS=-Wl,--as-needed -Wl,-z,defs
+CMAKE_LDFLAGS=-DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" -DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)"
+
+# Upstream version can be overriden so as to fetch newer revisions
+# without having to modify the top-most changelog entry
+UVERSION  ?= $(shell dpkg-parsechangelog | perl -ne 'print "$$1\n" if (/^Version: (.*?)(?:\.dfsg)?\-.*?$$/)')
+UREVISION  = $(shell echo $(UVERSION) | sed -e 's/^.*svn//')
+UTRUNK     = https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk
+
+# Where to store which manpages are generated (upstream keeps some manpages
+# both under .pod and .1 formats).
+GENERATED_MANPAGES=debian/generated-manpages
+
+maint-svn-snapshot:
+	@echo "Latest trunk:      $(shell LANG=C svn info $(UTRUNK) | grep Revision | awk -F": " '{print $$2}')"
+	@echo "Upstream version:  $(UVERSION)"
+	@echo "Upstream revision: $(UREVISION)"
+	[ ! -f ../hugin_$(UVERSION).orig.tar.gz ] || (echo "Upstream tarball exists already. Aborting."; exit 1)
+	svn export -q -r $(UREVISION) $(UTRUNK) debian/svn/hugin-$(UVERSION)
+	tar cfz ../hugin_$(UVERSION).orig.tar.gz -C debian/svn hugin-$(UVERSION)
+	echo "../hugin_$(UVERSION).orig.tar.gz ready"
+	rm -rf debian/svn
+
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	# Configure the package.
+	mkdir $(BUILD_DIR)
+	cd $(BUILD_DIR) && cmake -DCMAKE_INSTALL_PREFIX=/usr $(CMAKE_LDFLAGS) ..
+	touch $@
+
+
+build: build-arch build-indep
+
+build-arch:  build-arch-stamp
+build-indep: build-indep-stamp
+
+build-arch-stamp: configure-stamp
+	# Compile the package.
+	$(MAKE) -C $(BUILD_DIR) VERBOSE=1
+	touch $@
+
+build-indep-stamp: configure-stamp
+	# Build manpages.
+	for i in doc/*.pod ; do \
+		if [ ! -f $${i%%.pod}.1 ] ; then \
+			pod2man --center "HUGIN TOOLS" \
+				--release $(UVERSION) \
+				$$i -o $${i%%.pod}.1 ; \
+			echo $${i%%.pod}.1 >> $(GENERATED_MANPAGES) ; \
+		fi ; \
+	done
+	touch $@
+
+clean: clean-patched unpatch
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-indep-stamp build-arch-stamp install-arch-stamp \
+		install-indep-stamp configure-stamp
+
+	# Clean up after the build process.
+	rm -rf $(BUILD_DIR)
+
+	# Clean generated manpages.
+	if [ -f $(GENERATED_MANPAGES) ] ; then \
+		for i in `cat $(GENERATED_MANPAGES)` ; do \
+			rm -f $$i ; \
+		done ; \
+	fi
+	rm -f $(GENERATED_MANPAGES)
+
+	dh_clean
+
+install: install-indep install-arch
+
+install-indep: install-indep-stamp
+install-arch: install-arch-stamp
+
+install-indep-stamp: build-indep-stamp install-arch-stamp
+	dh_testdir
+	dh_testroot
+	dh_installdirs -i
+
+	dh_install --sourcedir=debian/tmp -i
+	touch $@
+
+install-arch-stamp: build-arch-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs -a
+
+	# Install the package into debian/tmp.
+	$(MAKE) install -C $(BUILD_DIR) DESTDIR=$(CURDIR)/debian/tmp
+
+	# Get rid of extra license file
+	rm debian/tmp/usr/share/hugin/xrc/data/help_en_EN/LICENCE.manual
+
+	# Get rid of .so, which aren't actually needed
+	find debian/tmp -name '*.so' -delete
+
+	dh_install --sourcedir=debian/tmp -a
+	touch $@
+
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+get-orig-source:
+	rm -rf  $(CURDIR)/debian/get-orig-source
+	mkdir $(CURDIR)/debian/get-orig-source
+	uscan --force-download --rename --download-version ${UVERSION} \
+		--destdir $(CURDIR)/debian/get-orig-source
+	cd $(CURDIR)/debian/get-orig-source && \
+		if test -e hugin_${UVERSION}.orig.tar.gz ; then \
+		tar xzf hugin_${UVERSION}.orig.tar.gz ; else \
+		tar xjf hugin_${UVERSION}.orig.tar.bz2 ; fi && \
+		cd hugin-* && \
+		rm -rvf platforms/windows/ mac/*  \
+		src/foreign/getopt/src/msvs/ platforms/mac/* \
+		platforms/CMakeLists.txt &&\
+		touch platforms/CMakeLists.txt && \
+		cd .. && \
+		tar -czf $(CURDIR)/../hugin_$(UVERSION).dfsg.orig.tar.gz hugin-*
+	rm -rf  $(CURDIR)/debian/get-orig-source
+
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch get-orig-source
--- hugin-2009.2.0+dfsg.orig/debian/hugin.docs
+++ hugin-2009.2.0+dfsg/debian/hugin.docs
@@ -0,0 +1,2 @@
+README
+README_JP
--- hugin-2009.2.0+dfsg.orig/debian/hugin.menu
+++ hugin-2009.2.0+dfsg/debian/hugin.menu
@@ -0,0 +1,6 @@
+?package(hugin):\
+	needs="X11"\
+	section="Applications/Graphics"\
+	title="Hugin"\
+	longtitle="Hugin, make panoramas from multiple pictures"\
+	command="/usr/bin/hugin"
--- hugin-2009.2.0+dfsg.orig/debian/hugin-tools.manpages
+++ hugin-2009.2.0+dfsg/debian/hugin-tools.manpages
@@ -0,0 +1 @@
+debian/matchpoint.1
--- hugin-2009.2.0+dfsg.orig/debian/patches/55_boost1.40.diff
+++ hugin-2009.2.0+dfsg/debian/patches/55_boost1.40.diff
@@ -0,0 +1,14 @@
+diff -NurbBp a/src/hugin_base/vigra_ext/ImageTransforms.h b/src/hugin_base/vigra_ext/ImageTransforms.h
+--- a/src/hugin_base/vigra_ext/ImageTransforms.h	2009-09-21 03:04:06.000000000 +0200
++++ b/src/hugin_base/vigra_ext/ImageTransforms.h	2009-09-26 16:33:10.000000000 +0200
+@@ -42,9 +42,7 @@
+ #include "MultiThreadOperations.h"
+ #include <boost/thread/thread.hpp>
+ #include <boost/bind.hpp>
+-#ifdef __APPLE__
+-    #include <boost/function.hpp>
+-#endif
++#include <boost/function.hpp>
+ 
+ 
+ namespace vigra_ext
--- hugin-2009.2.0+dfsg.orig/debian/patches/50_more_generic_autopano_binary
+++ hugin-2009.2.0+dfsg/debian/patches/50_more_generic_autopano_binary
@@ -0,0 +1,11 @@
+--- a/src/hugin1/hugin/config_defaults.h
++++ b/src/hugin1/hugin/config_defaults.h
+@@ -160,7 +160,7 @@
+ #define HUGIN_APKOLOR_EXE                     ""
+ #define HUGIN_APKOLOR_ARGS                    ""
+ 
+-#define HUGIN_APSIFT_EXE                      "autopano-sift-c"
++#define HUGIN_APSIFT_EXE                      "autopano"
+ #define HUGIN_APSIFT_ARGS                     "--maxmatches %p %o %i"
+ #define HUGIN_STITCHER_RUN_EDITOR             0l
+ #define HUGIN_STITCHER_EDITOR                 "gimp-remote"
--- hugin-2009.2.0+dfsg.orig/debian/patches/45_autopano-noop.sh_withoutshextension
+++ hugin-2009.2.0+dfsg/debian/patches/45_autopano-noop.sh_withoutshextension
@@ -0,0 +1,24 @@
+Author: Andreas Metzler
+URL: https://sourceforge.net/tracker/?func=detail&aid=2857508&group_id=77506&atid=550441
+Description: Do away with the .sh filename extension of autopano-noop.sh
+
+diff -NurbBp a/src/hugin1/hugin/CPDetectorConfig_default.h b/src/hugin1/hugin/CPDetectorConfig_default.h
+--- a/src/hugin1/hugin/CPDetectorConfig_default.h	2009-09-14 07:04:39.000000000 +0200
++++ b/src/hugin1/hugin/CPDetectorConfig_default.h	2009-09-14 12:02:09.000000000 +0200
+@@ -60,7 +60,7 @@ const struct cpdetector_default default_
+ #else 
+   #if !defined MAC_SELF_CONTAINED_BUNDLE
+     // Since medio 2008 the MacOSX bundle comes without default CPgenerators due to patent restrictions.
+-    {wxT("Autopano-SIFT-C"),wxT("autopano-noop.sh"),wxT("--maxmatches %p --projection %f,%v %o %i"),1l,true},
++    {wxT("Autopano-SIFT-C"),wxT("autopano-noop"),wxT("--maxmatches %p --projection %f,%v %o %i"),1l,true},
+     {wxT("Panomatic"),wxT("panomatic"),wxT("-o %o %i"),1l,true},
+     {wxT("Match-n-shift"),wxT("match-n-shift"),wxT("-b -a -f %f -v %v -c -p %p -o %o %i"),1l,true},
+     {wxT("Align image stack"),wxT("align_image_stack"),wxT("-f %v -p %o %i"),1l,true}
+diff -NurbBp a/utils/CMakeLists.txt b/utils/CMakeLists.txt
+--- a/utils/CMakeLists.txt	2009-09-14 07:04:40.000000000 +0200
++++ b/utils/CMakeLists.txt	2009-09-14 12:01:45.000000000 +0200
+@@ -1,3 +1,3 @@
+ IF(UNIX)
+-  install(PROGRAMS autopano-noop.sh DESTINATION ${BINDIR})
++  install(PROGRAMS autopano-noop.sh DESTINATION ${BINDIR} RENAME autopano-noop)
+ ENDIF(UNIX)
--- hugin-2009.2.0+dfsg.orig/debian/patches/series
+++ hugin-2009.2.0+dfsg/debian/patches/series
@@ -0,0 +1,3 @@
+42_stoplinklibXI_libXmu
+45_autopano-noop.sh_withoutshextension
+55_boost1.40.diff
--- hugin-2009.2.0+dfsg.orig/debian/patches/42_stoplinklibXI_libXmu
+++ hugin-2009.2.0+dfsg/debian/patches/42_stoplinklibXI_libXmu
@@ -0,0 +1,12 @@
+diff -NurBb a/CMakeModules/FindGLUT.cmake b/CMakeModules/FindGLUT.cmake
+--- a/CMakeModules/FindGLUT.cmake	2009-09-21 03:04:06.000000000 +0200
++++ b/CMakeModules/FindGLUT.cmake	2009-10-07 19:34:02.000000000 +0200
+@@ -58,8 +58,6 @@
+     # If not, we need some way to figure out what platform we are on.
+     SET( GLUT_LIBRARIES
+       ${GLUT_glut_LIBRARY}
+-      ${GLUT_Xmu_LIBRARY}
+-      ${GLUT_Xi_LIBRARY} 
+       ${GLUT_cocoa_LIBRARY}
+       )
+     SET( GLUT_FOUND "YES" )
--- hugin-2009.2.0+dfsg.orig/debian/overrides/hugin-tools
+++ hugin-2009.2.0+dfsg/debian/overrides/hugin-tools
@@ -0,0 +1,3 @@
+# These libraries are private and will be moved under /usr/lib/hugin by upstream.
+several-sonames-in-same-package libhuginANN.so.0.0 libhuginbase.so.0.0 libhuginjhead.so.0.0 libhuginvigraimpex.so.0.0
+package-name-doesnt-match-sonames libceleste0.0 libhuginANN0.0 libhuginbase0.0 libhuginvigraimpex0.0
