--- openexr-1.6.1.orig/debian/openexr.links
+++ openexr-1.6.1/debian/openexr.links
@@ -0,0 +1 @@
+usr/share/doc/libopenexr6	usr/share/doc/openexr
--- openexr-1.6.1.orig/debian/control
+++ openexr-1.6.1/debian/control
@@ -0,0 +1,91 @@
+Source: openexr
+Section: graphics
+Priority: optional
+Maintainer: Adeodato Simó <dato@net.com.org.es>
+Build-Depends: autotools-dev, cdbs, debhelper, dh-buildinfo, quilt, libilmbase-dev (>=1.0.1-2+nmu2~bpo40+1), zlib1g-dev
+Standards-Version: 3.7.3
+Uploaders: Andrew Lau <netsnipe@users.sourceforge.net>
+Homepage: http://www.openexr.com
+Vcs-Git: git://git.debian.org/git/collab-maint/openexr.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/openexr.git
+XS-X-Collab-Maint: commit-branch upload-15
+
+Package: openexr
+Section: graphics
+Architecture: any
+Depends: ${shlibs:Depends}
+Suggests: exrtools
+Description: viewer and docs for the OpenEXR image format
+ OpenEXR is a high dynamic-range (HDR) image file format developed by
+ Industrial Light & Magic for use in computer imaging applications.
+ .
+ OpenEXR's features include:
+    * Higher dynamic range and colour precision than existing 8- and
+      10-bit image file formats.
+    * Support for the "half" 16-bit floating-point pixel format.
+    * Multiple lossless image compression algorithms. Some of the
+      included codecs can achieve 2:1 lossless compression ratios on
+      images with film grain.
+    * Extensibility. New compression codecs and image types can easily
+      be added by extending the C++ classes included in the OpenEXR
+      software distribution. New image attributes (strings, vectors,
+      integers, etc.) can be added to OpenEXR image headers without
+      affecting backward compatibility with existing OpenEXR
+      applications.
+ .
+ This package contains documentation for the format and the following tools:
+    * exrheader, a utility for dumping header information.
+    * exrstdattr, a utility for modifying OpenEXR standard attributes.
+    * exrmaketiled, for generating tiled and rip/mipmapped images.
+    * exrenvmap, for creating OpenEXR environment maps.
+    * exrmakepreview, for creating preview images for OpenEXR files.
+
+Package: libopenexr-dev
+Section: libdevel
+Architecture: any
+Depends: libopenexr6 (= ${binary:Version}), libilmbase-dev (>=1.0.1-2+nmu2~bpo40+1), ${shlibs:Depends}
+Description: development files for the OpenEXR image library
+ OpenEXR is a high dynamic-range (HDR) image file format developed by
+ Industrial Light & Magic for use in computer imaging applications.
+ .
+ OpenEXR's features include:
+    * Higher dynamic range and colour precision than existing 8- and
+      10-bit image file formats.
+    * Support for the "half" 16-bit floating-point pixel format.
+    * Multiple lossless image compression algorithms. Some of the
+      included codecs can achieve 2:1 lossless compression ratios on
+      images with film grain.
+    * Extensibility. New compression codecs and image types can easily
+      be added by extending the C++ classes included in the OpenEXR
+      software distribution. New image attributes (strings, vectors,
+      integers, etc.) can be added to OpenEXR image headers without
+      affecting backward compatibility with existing OpenEXR
+      applications.
+ .
+ This package contains the header files required if you wish to
+ compile/develop applications that use OpenEXR libraries.
+
+Package: libopenexr6
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: runtime files for the OpenEXR image library
+ OpenEXR is a high dynamic-range (HDR) image file format developed by
+ Industrial Light & Magic for use in computer imaging applications.
+ .
+ OpenEXR's features include:
+    * Higher dynamic range and colour precision than existing 8- and
+      10-bit image file formats.
+    * Support for the "half" 16-bit floating-point pixel format.
+    * Multiple lossless image compression algorithms. Some of the
+      included codecs can achieve 2:1 lossless compression ratios on
+      images with film grain.
+    * Extensibility. New compression codecs and image types can easily
+      be added by extending the C++ classes included in the OpenEXR
+      software distribution. New image attributes (strings, vectors,
+      integers, etc.) can be added to OpenEXR image headers without
+      affecting backward compatibility with existing OpenEXR
+      applications.
+ .
+ This package contains the following shared library:
+    * IlmImf - a library that reads and writes OpenEXR images.
--- openexr-1.6.1.orig/debian/exrenvmap.1
+++ openexr-1.6.1/debian/exrenvmap.1
@@ -0,0 +1,88 @@
+\"                                      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 EXRENVMAP 1 "March 31, 2004"
+.\" 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
+exrenvmap \- for creating OpenEXR environment maps. 
+.SH SYNOPSIS
+.B exrenvmap
+.RI "[options] infile outfile"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B exrenvmap
+command.
+This manual page was written for the Debian distribution because the original
+program does not have a manual page.
+.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.
+
+\fBexrenvmap\fP converts OpenEXR latitude\-longitude environment maps
+into cube\-face environment maps or vice versa.
+
+.SH OPTIONS
+.TP
+.B \-o
+produces a ONE_LEVEL output file (default)
+.TP
+.B \-m
+produces a MIPMAP_LEVELS output file
+.TP
+.B \-c
+the output file will be a cube\-face environment map (default)
+.TP
+.B \-l
+the output file will be a latitude\-longitude environment map
+.TP
+.B \-w x
+sets the width of the output image to x pixels (default is 256).  The height of
+the output image will be x*6 pixels for a cube\-face map, or x/2 pixels for a
+latitude\-longitude map.
+.TP
+.B \-f r n
+sets the antialiasing filter radius to r (default is 1.0) and the sampling rate
+to n by n (default is 5 by 5).  Increasing r makes the output image blurrier;
+decreasing r makes the image sharper but may cause aliasing.  Increasing n
+improves antialiasing, but generating the output image takes longer.
+.TP  
+.B \-t x y
+sets the output file's tile size to x by y pixels (default is 64 by 64)
+.TP
+.B \-p t b
+if the input image is a latitude\-longitude map, pad the image at the top and
+bottom with t*h and b*h extra scan lines, where h is the height of the input
+image.  This is useful for images from 360\-degree panoramic scans that cover
+less than 180 degrees vertically.
+.TP
+.B \-d
+sets level size rounding to ROUND_DOWN (default)
+.TP
+.B \-u
+sets level size rounding to ROUND_UP
+.TP
+.B \-z x
+sets the data compression method to x (none/rle/zip/piz/pxr24, default is zip)
+.TP 
+.B \-v
+verbose mode
+.TP 
+.B \-h
+prints these options
+
+.SH AUTHOR
+This manual page was written by Andrew Lau <netsnipe@users.sourceforge.net>,
+for the Debian GNU/Linux system (but may be used by others).
--- openexr-1.6.1.orig/debian/rules
+++ openexr-1.6.1/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+# ====================================================================
+# debian/rules for OpenEXR
+# Common Debian Build System: (C) 2002 Colin Walters
+#
+# Author: Andrew Lau <netsnipe@users.sourceforge.net>
+# $Id: rules 2 2005-02-02 01:31:02Z netsnipe $
+# ====================================================================
+
+# CDBS Classes & Rules
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+# Compilation options
+DEB_CONFIGURE_EXTRA_FLAGS := --with-openexr-prefix=/usr
+
+# Run tests
+NO_MAKE_CHECK_ARCHES := arm ia64
+ifeq (,$(filter $(DEB_BUILD_ARCH),$(NO_MAKE_CHECK_ARCHES)))
+	DEB_MAKE_CHECK_TARGET := check
+endif
+
+# Debhelper Arguments
+DEB_COMPRESS_EXCLUDE = .pdf
+DEB_DH_INSTALL_ARGS := --exclude="examples/" --sourcedir=debian/tmp
+DEB_DH_MAKESHLIBS_ARGS := -V
+DEB_DH_SHLIBDEPS_ARGS := -L libopenexr6 -l debian/libopenexr6/usr/lib
+
+# Disable redundant documentation copies
+DEB_INSTALL_DOCS_openexr := --no-act
+DEB_INSTALL_CHANGELOGS_openexr := --no-act
+DEB_INSTALL_DOCS_libopenexr-dev := --no-act
+DEB_INSTALL_CHANGELOGS_libopenexr-dev := --no-act
+
+# Record build-time version information
+binary-post-install/libopenexr6::
+	dh_buildinfo -plibopenexr6
--- openexr-1.6.1.orig/debian/watch
+++ openexr-1.6.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://savannah.nongnu.org/download/openexr/openexr-([0-9].*).tar.gz
--- openexr-1.6.1.orig/debian/changelog
+++ openexr-1.6.1/debian/changelog
@@ -0,0 +1,204 @@
+openexr (1.6.1-3~bpo40+1) etch-backports; urgency=low
+
+  * Backport testing version for backports.org
+  * Adjust build-dep on ilmbase-dev to use bpo version (>=1.0.1-2+nmu2~bpo40+1)
+
+ -- Micah Anderson <micah@debian.org>  Fri, 16 Jan 2009 21:23:23 +0000
+
+openexr (1.6.1-3) unstable; urgency=medium
+
+  * Disable (hopefully temporarily) the test suite on arm and ia64.
+
+ -- Adeodato Simó <dato@net.com.org.es>  Mon, 24 Mar 2008 23:00:21 +0100
+
+openexr (1.6.1-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+  * Fix FTBFS with gcc 4.3, thanks Cyril Brulebois for the patch (closes:
+    #441573). Add quilt to Build-Depends.
+
+  * Update Standards-Version to 3.7.3 (no changes needed).
+
+  * Swap Maintainer and Uploaders in debian/control.
+
+  * Move packaging to a git repository under collab-maint. Add a
+    X-Collab-Maint header.
+
+ -- Adeodato Simó <dato@net.com.org.es>  Sun, 16 Mar 2008 15:16:05 +0100
+
+openexr (1.6.1-1) experimental; urgency=low
+
+  * New upstream release. (Closes: #405783, #437494)
+    + New soname: rename package to libopenexr6, and drop old conflicts and
+      replaces.
+    + Build-depend on libilmbase-dev (Imath, Half et al. are now there). Make
+      libopenexr-dev depend on it as well, and drop bits from description that
+      allude to these other libraries.
+
+  * The exrdisplay binary is no longer shipped by upstream in the openexr
+    tarball (it has moved to openexr_viewers): do not install it, nor its
+    manpage, drop build-dependencies on libfltk1.1-dev and OpenGL stuff, and
+    README.Debian as well, since they all were only needed for this program.
+
+  * Adding myself as an uploader; add VCS-Bzr header.
+
+  * Do some housekeeping:
+    + update debian/watch.
+    + bump debian/compat to 5.
+    + use ${binary:Version} instead of ${Source-Version}.
+    + bump Standards-Version to 3.7.2 (no changes needed).
+    + use a Homepage header, instead of the pseudo-header.
+
+  * Run tests after building.
+
+  * Drop all patches, unnecessary.
+
+ -- Adeodato Simó <dato@net.com.org.es>  Fri, 02 Nov 2007 22:20:53 +0100
+
+openexr (1.2.2-4.4) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Rename libopenexr2c2a to libopenexr2ldbl for the long double transition.
+    (Closes: #430286)
+
+ -- Adeodato Simó <dato@net.com.org.es>  Mon, 23 Jul 2007 16:34:02 +0200
+
+openexr (1.2.2-4.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix build system not to create libraries with undefined symbols. Added
+    patch 01-libadd_to_prevent_undef_syms to properly define libImath_la_LIBADD
+    and libIlmImf_la_LIBADD in Makefile.am.  (Closes: #370193)
+
+ -- Adeodato Simó <dato@net.com.org.es>  Sat, 10 Jun 2006 13:36:15 +0200
+
+openexr (1.2.2-4.2) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Add zlib1g-dev as build-dep (Closes: #356014).
+
+ -- Luk Claes <luk@debian.org>  Mon, 27 Mar 2006 21:12:22 +0200
+
+openexr (1.2.2-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+
+  * libstdc++ allocator transition: rename libopenexr2c2 to libopenexr2c2a.
+    (Closes: #339241)
+
+    + debian/control: rename package, make it replace and conflict
+      libopenexr2c2, update libopenexr-dev dependency.
+
+    + debian/*: s/libopenexr2c2/libopenexr2c2a/g
+
+    + mv debian/libopenexr2c2{,a}.install
+
+ -- Adeodato Simó <dato@net.com.org.es>  Sat, 26 Nov 2005 01:31:40 +0100
+
+openexr (1.2.2-4) unstable; urgency=medium
+
+  * FTBFS fix: Remove usage "ld --as-needed".
+    (closes: #323973)
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Sat, 20 Aug 2005 00:52:05 +1000
+
+openexr (1.2.2-3) unstable; urgency=medium
+
+  * C++ transition
+    - Rename libopenexr2 to libopenexr2c2.
+      (closes: #317520)
+    - Patch to build with g++-4.0
+      + [debian/patches/00_g++-4.0_compile.patch]
+        Thanks: Daniel Schepler <schepler@math.berkeley.edu>
+        (closes: #316198)
+  * [debian/control]:
+    - Switch depend on XFree86's xlibmesa-glu-dev to X.Org's libglu1-xorg-dev.
+    - Debian Standards-Version: 3.6.2
+  * [debian/rules]:
+    - Record compile-time dependency versions using dh_buildinfo.
+    - Fix documentation symlinks.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Sun, 17 Jul 2005 00:57:57 +1000
+
+openexr (1.2.2-2) unstable; urgency=low
+
+  * Documentation fixes
+    - Remove stale doc-base entries.
+      (closes: #303226)
+    
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Mon,  9 May 2005 01:16:15 +1000
+
+openexr (1.2.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * [debian/rules]:
+    - Deflate dependencies via ld's --as-needed option.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Sun, 13 Mar 2005 15:47:49 +1100
+
+openexr (1.2.1-3) unstable; urgency=low
+
+  * Documentation fixes
+    - Removed non-Linux README files.
+      (closes: #267856)
+    - Registered API and overview with doc-base.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Thu, 20 Jan 2005 02:53:59 +1100
+
+openexr (1.2.1-2) unstable; urgency=medium
+
+  * Correct libopenexr-dev's dependency on libopenexr0 to libopenexr2.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Tue, 17 Aug 2004 14:32:17 +1000
+
+openexr (1.2.1-1) unstable; urgency=low
+
+  * New upstream (stable) release.
+    - SONAME bumped up to 2. libopenexr2 now replaces/conflicts with
+      libopenexr0.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Sat, 14 Aug 2004 02:46:58 +1000
+
+openexr (1.1.1-1) unstable; urgency=low
+
+  * New upstream release.
+    - Builds on 64-bit architectures.
+      (closes: #239732)
+    - Note that this is a development release and the tiled file format has
+      changed. See the ReleaseNotes file for more details.
+    
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Wed, 31 Mar 2004 12:17:48 +1000
+
+openexr (1.1.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Wed, 11 Feb 2004 00:58:58 +1100
+
+openexr (1.0.7-1) unstable; urgency=low
+
+  * New upstream release. 
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Tue, 20 Jan 2004 00:44:12 +1100
+
+openexr (1.0.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * Switch from Debhelper to Common Debian Build System.
+
+ -- Andrew Lau <netsnipe@users.sourceforge.net>  Wed,  8 Oct 2003 02:04:38 +1000
+
+openexr (1.0.5-2) unstable; urgency=low
+
+  * Fixed FTBFS by replacing instances of FL/*.h with FL/*.H in acinclude.m4,
+    aclocal.m4 and configure.
+    (closes: #196708)
+
+ -- Andrew Lau <netsnipe@debianplanet.org>  Sun, 22 Jun 2003 00:37:27 +1000
+
+openexr (1.0.5-1) unstable; urgency=low
+
+  * Initial Release (closes: #178317).
+
+ -- Andrew Lau <netsnipe@debianplanet.org>  Thu, 22 May 2003 11:12:24 +1000
--- openexr-1.6.1.orig/debian/libopenexr-dev.postinst
+++ openexr-1.6.1/debian/libopenexr-dev.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $Id$
+# vim:ts=4:sw=4:expandtab:
+
+set -e
+
+if [ "$1" = "configure" ]
+then
+    # Convert empty directory into a symlink
+    if [ ! -L /usr/share/doc/libopenexr-dev ]
+    then
+        rm -rf /usr/share/doc/libopenexr-dev
+        ln -s /usr/share/doc/libopenexr6 /usr/share/doc/libopenexr-dev
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- openexr-1.6.1.orig/debian/exrheader.1
+++ openexr-1.6.1/debian/exrheader.1
@@ -0,0 +1,39 @@
+.\"                                      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 EXRHEADER 1 "May 22, 2003"
+.\" 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
+exrheader \- utility to print an OpenEXR image file's header
+.SH SYNOPSIS
+.B exrheader
+.RI imagefile
+.SH DESCRIPTION
+This manual page documents briefly the
+.B exrheader
+command.
+This manual page was written for the Debian distribution because the original
+program does not have a manual page.
+.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.
+\fBexrheader\fP is a program to print an OpenEXR image file's header including
+its Compression, LineOrder, PixelType, ChannelList and Info attributes.
+.SH OPTIONS
+This program has no command-line options.
+.SH AUTHOR
+This manual page was written by Andrew Lau <netsnipe@users.sourceforge.net>,
+for the Debian project (but may be used by others).
--- openexr-1.6.1.orig/debian/exrmakepreview.1
+++ openexr-1.6.1/debian/exrmakepreview.1
@@ -0,0 +1,56 @@
+\"                                      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 EXRMAKEPREVIEW 1 "March 31, 2004"
+.\" 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
+exrmakepreview \- for creating preview images for OpenEXR files.
+.SH SYNOPSIS
+.B exrmakepreview
+.RI "[options] infile outfile"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B exrmakepreview
+command.
+This manual page was written for the Debian distribution because the original
+program does not have a manual page.
+.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.
+
+\fBexrmakepreview\fP reads an OpenEXR image from infile, generates a preview
+image, adds it to the image's header, and saves the result in outfile. Note
+that the infile and outfile must not refer to the same file (i.e. the program
+cannot edit an image file "in place").
+
+.SH OPTIONS
+.TP
+.B \-w x
+sets the width of the preview image to x pixels (default is 100)
+.TP
+.B \-e s
+adjusts the preview image's exposure by s f-stops (default is 0).  Positive
+values make the image brighter, negative values make it darker.
+.TP 
+.B \-v
+verbose mode
+.TP 
+.B \-h
+prints these options
+
+.SH AUTHOR
+This manual page was written by Andrew Lau <netsnipe@users.sourceforge.net>,
+for the Debian GNU/Linux system (but may be used by others).
--- openexr-1.6.1.orig/debian/compat
+++ openexr-1.6.1/debian/compat
@@ -0,0 +1 @@
+5
--- openexr-1.6.1.orig/debian/openexr.docs
+++ openexr-1.6.1/debian/openexr.docs
@@ -0,0 +1,3 @@
+AUTHORS
+NEWS
+README
--- openexr-1.6.1.orig/debian/openexr.doc-base.IlmImf
+++ openexr-1.6.1/debian/openexr.doc-base.IlmImf
@@ -0,0 +1,9 @@
+Document: openexr-IlmImf
+Title: Reading and Writing OpenEXR Image Files with the IlmImf Library
+Author: Lucas Digital Ltd. LLC.
+Abstract: This document shows how to write C++ code that reads and writes
+ OpenEXR image files. 
+Section: Apps/Programming
+
+Format: PDF
+Files: /usr/share/doc/libopenexr6/pdf/ReadingAndWritingImageFiles.pdf
--- openexr-1.6.1.orig/debian/exrstdattr.1
+++ openexr-1.6.1/debian/exrstdattr.1
@@ -0,0 +1,100 @@
+\"                                      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 EXRSTDATTR 1 "March 31, 2004"
+.\" 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
+exrstdattr \- a utility for modifying OpenEXR standard attributes.
+.SH SYNOPSIS
+.B exrstdattr
+.RI "[options] infile outfile"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B exrstdattr
+command.
+This manual page was written for the Debian distribution because the original
+program does not have a manual page.
+.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.
+
+\fBexrstdattr\fP reads an OpenEXR image from infile, sets the values of one or
+more standard attributes in the image's header, and saves the result in
+outfile. Note that infile and outfile must not refer to the same file (i.e. the
+program cannot edit an image file "in place").
+
+.SH OPTIONS
+Options for setting attribute values include:
+.TP
+.B \-chromaticities f f f f f f f f
+CIE xy chromaticities for the red, green and blue primaries, and for the white
+point (8 floats)
+.TP
+.B \-whiteLuminance f
+white luminance, in candelas per square meter (float, >= 0.0)
+.TP
+.B \-xDensity f
+horizontal output density, in pixels per inch (float, >= 0.0)
+.TP 
+.B \-owner s
+name of the owner of the image (string)
+.TP
+.B \-comments s
+additional information about the image (string)
+.TP
+.B \-capDate s
+date when the image was created or captured, in local time (string, formatted
+as YYYY:MM:DD hh:mm:ss)
+.TP
+.B \-utcOffset f
+offset of local time at capDate from UTC, in seconds (float, UTC == local time
++ x)
+.TP
+.B \-longitude f, \-latitude f, \-altitude f
+location where the image was recorded, in degrees east of Greenwich and north
+of the equator, and in meters above sea level (float)
+.TP
+.B \-focus f
+the camera's focus distance, in meters (float, > 0, or "infinity")
+.TP
+.B \-expTime f
+exposure time, in seconds (float, >= 0)
+.TP
+.B \-aperture f
+lens apterture, in f\-stops (float, >= 0)
+.TP
+.B \-isoSpeed f
+effective speed of the film or image sensor that was used to record the image
+(float, >= 0)
+.TP
+.B \-envmap s
+indicates that the image is an environment map (string, LATLONG or CUBE)
+.TP
+.B \-pixelAspectRatio f
+width divided by height of a pixel (float, >= 0)
+.TP
+.B \-screenWindowWidth f
+width of the screen window (float, >= 0)
+.TP
+.B \-screenWindowCenter f f
+center of the screen window (2 floats)
+.TP 
+.B \-h
+prints these options
+
+.SH AUTHOR
+This manual page was written by Andrew Lau <netsnipe@users.sourceforge.net>,
+for the Debian GNU/Linux system (but may be used by others).
--- openexr-1.6.1.orig/debian/libopenexr-dev.dirs
+++ openexr-1.6.1/debian/libopenexr-dev.dirs
@@ -0,0 +1 @@
+usr/share/doc/libopenexr6/examples
--- openexr-1.6.1.orig/debian/openexr.install
+++ openexr-1.6.1/debian/openexr.install
@@ -0,0 +1,6 @@
+usr/bin/exrenvmap
+usr/bin/exrheader
+usr/bin/exrmakepreview
+usr/bin/exrmaketiled
+usr/bin/exrstdattr
+../../doc/*.pdf usr/share/doc/libopenexr6/pdf
--- openexr-1.6.1.orig/debian/libopenexr6.install
+++ openexr-1.6.1/debian/libopenexr6.install
@@ -0,0 +1 @@
+usr/lib/*.so.*
--- openexr-1.6.1.orig/debian/patches/fix_gcc4.3_ftbfs.diff
+++ openexr-1.6.1/debian/patches/fix_gcc4.3_ftbfs.diff
@@ -0,0 +1,22 @@
+--- a/exrenvmap/main.cpp
++++ b/exrenvmap/main.cpp
+@@ -46,6 +46,8 @@
+ #include <exception>
+ #include <stdlib.h>
+ 
++#include <cstring>
++
+ using namespace Imf;
+ using namespace std;
+ 
+--- a/exrmaketiled/main.cpp
++++ b/exrmaketiled/main.cpp
+@@ -47,6 +47,8 @@
+ #include <string>
+ #include <stdlib.h>
+ 
++#include <cstring>
++
+ using namespace Imf;
+ using namespace std;
+ 
--- openexr-1.6.1.orig/debian/patches/series
+++ openexr-1.6.1/debian/patches/series
@@ -0,0 +1 @@
+fix_gcc4.3_ftbfs.diff
--- openexr-1.6.1.orig/debian/openexr.doc-base.tech_intro
+++ openexr-1.6.1/debian/openexr.doc-base.tech_intro
@@ -0,0 +1,9 @@
+Document: openexr-tech_intro
+Title: Technical Introduction to OpenEXR
+Author: Lucas Digital Ltd. LLC.
+Abstract: This document presents a brief overview of OpenEXR and explains
+ concepts that are specific to this format.
+Section: Apps/Graphics
+
+Format: PDF
+Files: /usr/share/doc/libopenexr6/pdf/TechnicalIntroduction.pdf
--- openexr-1.6.1.orig/debian/exrmaketiled.1
+++ openexr-1.6.1/debian/exrmaketiled.1
@@ -0,0 +1,73 @@
+\"                                      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 EXRMAKETILED 1 "March 31, 2004"
+.\" 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
+exrmaketiled \- for generating tiled and rip/mipmapped images.
+.SH SYNOPSIS
+.B exrmaketiled
+.RI "[options] infile outfile"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B exrmaketiled
+command.
+This manual page was written for the Debian distribution because the original
+program does not have a manual page.
+.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.
+
+\fBexrmaketiled\fP reads an OpenEXR image from infile, produces a tiled version
+of the image, and saves the result in outfile.
+ 
+.SH OPTIONS
+.TP
+.B \-o
+produces a ONE_LEVEL image (default)
+.TP 
+.B \-m
+produces a MIPMAP_LEVELS multiresolution image
+.TP 
+.B \-r
+produces a RIPMAP_LEVELS multiresolution image
+.TP 
+.B \-f c
+when a MIPMAP_LEVELS or RIPMAP_LEVELS image is produced, image channel c will
+be resampled without low\-pass filtering. This option can be specified
+multiple times to disable low\-pass filtering for mutiple channels.
+.TP 
+.B \-t x y
+sets the tile size in the output image to x by y pixels (default is 64 by 64)
+.TP 
+.B \-d
+sets level size rounding to ROUND_DOWN (default)
+.TP 
+.B \-u
+sets level size rounding to ROUND_UP
+.TP 
+.B \-z x
+sets the data compression method to x (none/rle/zip/piz/pxr24, default is zip)
+.TP 
+.B \-v
+verbose mode
+.TP 
+.B \-h
+prints these options
+
+.SH AUTHOR
+This manual page was written by Andrew Lau <netsnipe@users.sourceforge.net>,
+for the Debian GNU/Linux system (but may be used by others).
--- openexr-1.6.1.orig/debian/copyright
+++ openexr-1.6.1/debian/copyright
@@ -0,0 +1,49 @@
+This package was first Debianized by Andrew Lau
+<netsnipe@users.sourceforge.net> on Thu May 22 11:17:01 EST 2003
+
+It was downloaded from:
+<http://savannah.nongnu.org/download/openexr/>
+
+Upstream Authors:
+	Florian Kainz	<kainz@ilm.com>
+	Rod Bogart	<rgb@ilm.com>
+	Drew Hess	<dhess@ilm.com>
+	Paul Schneider	<pauls@ilm.com>
+	Bill Anderson	<wja@ilm.com>
+
+	The full list of contributors can be found in the AUTHORS file
+
+Mailing List:
+	<openexr-devel@nongnu.org>
+
+Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
+Digital Ltd.  LLC
+
+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 Industrial Light & Magic 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 COPYRIGHT
+OWNER 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.
--- openexr-1.6.1.orig/debian/libopenexr-dev.install
+++ openexr-1.6.1/debian/libopenexr-dev.install
@@ -0,0 +1,8 @@
+usr/include/OpenEXR/*
+usr/lib/*.a
+usr/lib/*.la
+usr/lib/*.so
+usr/lib/pkgconfig/*
+usr/share/aclocal/*
+../../IlmImfExamples/*.cpp	usr/share/doc/libopenexr6/examples
+../../IlmImfExamples/*.h	usr/share/doc/libopenexr6/examples
--- openexr-1.6.1.orig/debian/libopenexr-dev.links
+++ openexr-1.6.1/debian/libopenexr-dev.links
@@ -0,0 +1 @@
+usr/share/doc/libopenexr6	usr/share/doc/libopenexr-dev
--- openexr-1.6.1.orig/debian/openexr.postinst
+++ openexr-1.6.1/debian/openexr.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $Id$
+# vim:ts=4:sw=4:expandtab:
+
+set -e
+
+if [ "$1" = "configure" ]
+then
+    # Convert empty directory into a symlink
+    if [ ! -L /usr/share/doc/openexr ]
+    then
+        rm -rf /usr/share/doc/openexr
+        ln -s /usr/share/doc/libopenexr6 /usr/share/doc/openexr
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- openexr-1.6.1.orig/debian/openexr.manpages
+++ openexr-1.6.1/debian/openexr.manpages
@@ -0,0 +1 @@
+debian/exr*.1
