--- pfstmo-1.4.orig/debian/copyright +++ pfstmo-1.4/debian/copyright @@ -0,0 +1,91 @@ +This package was debianized by Sebastian Harl on +Tue, 19 Jun 2007 16:04:32 +0100. + +It was downloaded from . + +Upstream Author: + Grzegorz Krawczyk + + For contributions, see AUTHORS. + +Copyright Holders: + Ewgenij Hübner + Grzegorz Krawczyk + University of Utah + +Licenses: + + Files src/durand02/bilateral.cpp + src/durand02/bilateral.h + src/fattal02/pde.cpp + Copyright © 2003, 2004 Grzegorz Krawczyk + Written by Rafal Mantiuk + Written by Grzegorz Krawczyk + + Files src/mantiuk06/contrast_domain.cpp + src/mantiuk06/contrast_domain.h + src/mantiuk06/pfstmo_mantiuk06.cpp + Copyright © 2007 Grzegorz Krawczyk + Written by Radoslaw Mantiuk + Written by Rafal Mantiuk + Written by Ed Brambley + Written by Lebed Dmytry + + Files src/mantiuk08/cqp/* + Copyright © Ewgenij Hübner + + All other files in src/mantiuk08/ + File src/pfstmo/pfstmo.h + Copyright © Grzegorz Krawczyk + Written by Rafal Mantiuk + + All other files (except src/reinhard02/approx.cpp and + src/reinhard02/tmo_reinhard02.cpp) + Copyright © 2003-2007 Grzegorz Krawczyk + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. + + Files src/reinhard02/approx.cpp + src/reinhard02/tmo_reinhard02.cpp + Copyright © 2002 University of Utah + Written by Erik Reinhard + + (The license of these files has been clarified by Erik Reinhard during a + private email conversation.) + + 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 Debian packaging is © 2007-2009 Sebastian Harl and +is licensed under the GPL, see above. + --- pfstmo-1.4.orig/debian/control +++ pfstmo-1.4/debian/control @@ -0,0 +1,27 @@ +Source: pfstmo +Section: graphics +Priority: optional +Maintainer: Debian PhotoTools Maintainers +Uploaders: Sebastian Harl +Build-Depends: debhelper (>= 5), dpatch, dpkg-dev (>= 1.14.6), autotools-dev, pkg-config, libpfs-dev, fftw3-dev, libgsl0-dev +Standards-Version: 3.8.2 +Homepage: http://www.mpi-inf.mpg.de/resources/tmo/ +Vcs-Git: git://git.debian.org/git/pkg-phototools/pfstmo.git +Vcs-Browser: http://git.debian.org/?p=pkg-phototools/pfstmo.git + +Package: pfstmo +Architecture: any +Depends: ${shlibs:Depends} +Recommends: pfstools +Description: set of tone mapping operators + This package contains a set of state-of-the-art tone mapping operators. Tone + mapping is a technique used to approximately map the appearance of + high-dynamic range (HDR) images to media with more limited dynamic range. The + operators are suitable for processing of both static images and animations. + . + The operators are embedded in a flexible framework (pfstools) which provides + a unified input/output mechanism and a modular architecture for the filtering + of the image data. Various file formats for static images and video are + transparently supported and the High Dynamic Range data are processed + modularly through a Unix piping mechanism. + --- pfstmo-1.4.orig/debian/rules +++ pfstmo-1.4/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# debian/rules for pfstmo +# +# Written by Sebastian Harl + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g +CXXFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +include /usr/share/dpatch/dpatch.make + +config.status: configure $(DPATCH_STAMPFN) + dh_testdir + + # do not rebuild the build system + touch aclocal.m4 acinclude.m4 configure.ac configure config.h.in \ + config.status Makefile.am Makefile.in Makefile + + for file in config.guess config.sub; do \ + if [ ! -e $$file.upstream ]; then \ + mv $$file $$file.upstream; \ + ln -s /usr/share/misc/$$file .; \ + fi \ + done + + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + for file in config.guess config.sub; do \ + if [ -e $$file.upstream ]; then \ + rm -f $$file; \ + mv $$file.upstream $$file; \ + fi \ + done + + $(MAKE) -f debian/rules unpatch + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/pfstmo install + +binary-indep: build install + # nothing to do here + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs AUTHORS README TODO + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + --- pfstmo-1.4.orig/debian/watch +++ pfstmo-1.4/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/pfstools/pfstmo-([0-9.]+)\.tar\.gz --- pfstmo-1.4.orig/debian/compat +++ pfstmo-1.4/debian/compat @@ -0,0 +1 @@ +5 --- pfstmo-1.4.orig/debian/changelog +++ pfstmo-1.4/debian/changelog @@ -0,0 +1,21 @@ +pfstmo (1.4-1) unstable; urgency=low + + * New upstream release. + * debian/control: + - Added libgsl0-dev to the build-dependencies - this is required for the + new mantiuk08 operator. + - Updated standards-version to 3.8.2 - no changes. + * debian/rules: + - Pass appropriate CFLAGS and CXXFLAGS to configure. + * debian/patches: + - Added CXXFLAGS.dpatch to remove -O3 from CXXFLAGS. + - Added missing-includes.dpatch to add missing include files. + + -- Sebastian Harl Wed, 17 Jun 2009 20:57:42 +0200 + +pfstmo (1.1-1) unstable; urgency=low + + * Initial release (Closes: #411454). + + -- Sebastian Harl Fri, 10 Aug 2007 15:29:46 +0200 + --- pfstmo-1.4.orig/debian/patches/CXXFLAGS.dpatch +++ pfstmo-1.4/debian/patches/CXXFLAGS.dpatch @@ -0,0 +1,45 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## CXXFLAGS.dpatch by Sebastian Harl +## +## DP: Remove -O3 from CXXFLAGS. + +@DPATCH@ + +diff a/configure b/configure +--- a/configure ++++ b/configure +@@ -19378,8 +19378,6 @@ fi + # Check whether --enable-debug was given. + if test "${enable_debug+set}" = set; then + enableval=$enable_debug; if test "$enable_debug" = "yes" ; then +- temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"` +- CXXFLAGS="-g $temp_CXXFLAGS" + cat >>confdefs.h <<\_ACEOF + #define DEBUG 1 + _ACEOF +@@ -19387,8 +19385,6 @@ _ACEOF + fi + else + enable_debug="no" +- temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"` +- CXXFLAGS="-O3 $temp_CXXFLAGS" + + cat >>confdefs.h <<\_ACEOF + #define NDEBUG 1 +diff a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -37,13 +37,9 @@ AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], + [Enable debug symbols and asserts]), + [if test "$enable_debug" = "yes" ; then +- temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"` +- CXXFLAGS="-g $temp_CXXFLAGS" + AC_DEFINE([DEBUG]) + fi], + [enable_debug="no" +- temp_CXXFLAGS=`echo $CXXFLAGS | sed "s/-O./ /; s/-g//"` +- CXXFLAGS="-O3 $temp_CXXFLAGS" + AC_DEFINE(NDEBUG, 1, [Disable assertion checks]) + + --- pfstmo-1.4.orig/debian/patches/00list +++ pfstmo-1.4/debian/patches/00list @@ -0,0 +1,3 @@ +CXXFLAGS.dpatch +missing-includes.dpatch + --- pfstmo-1.4.orig/debian/patches/missing-includes.dpatch +++ pfstmo-1.4/debian/patches/missing-includes.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## missing-includes.dpatch by Sebastian Harl +## +## DP: Add missing includes. + +@DPATCH@ + +--- a/src/mantiuk08/display_adaptive_tmo.h ++++ b/src/mantiuk08/display_adaptive_tmo.h +@@ -29,6 +29,8 @@ + * $Id: display_adaptive_tmo.h,v 1.12 2009/02/23 18:46:36 rafm Exp $ + */ + ++#include ++ + #include "display_function.h" + #include "display_size.h" +