[cimg] 02/11: Add debian/ dir of version 1.6.5+dfsg-1 - svn to git conversion failed

Andreas Tille tille at debian.org
Tue May 3 09:03:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository cimg.

commit de60a763234bcc606618242dce0e992d7b92a0e8
Author: Andreas Tille <tille at debian.org>
Date:   Tue May 3 09:12:47 2016 +0200

    Add debian/ dir of version 1.6.5+dfsg-1 - svn to git conversion failed
---
 debian/README.Debian.cimg-examples                 |   32 +
 debian/README.source                               |    4 +
 debian/changelog                                   |  314 ++++++
 debian/cimg-dev.docs                               |    1 +
 debian/cimg-dev.install                            |    2 +
 debian/cimg-doc.doc-base                           |   17 +
 debian/cimg-doc.install                            |    4 +
 debian/cimg-doc.links                              |    2 +
 debian/cimg-examples.install                       |    1 +
 debian/compat                                      |    1 +
 debian/control                                     |  105 ++
 debian/copyright                                   | 1063 ++++++++++++++++++++
 debian/patches/20_include_ltiffxx.patch            |   15 +
 .../patches/30_do_not_build_minc2_examples.patch   |   19 +
 debian/patches/fix_privacy_breach.patch            |   66 ++
 debian/patches/series                              |    4 +
 debian/patches/use_pkg-config.patch                |   19 +
 debian/remove_privacy_violating_js_code            |   27 +
 debian/rules                                       |   62 ++
 debian/source/format                               |    1 +
 debian/watch                                       |    3 +
 21 files changed, 1762 insertions(+)

diff --git a/debian/README.Debian.cimg-examples b/debian/README.Debian.cimg-examples
new file mode 100644
index 0000000..7d54a1b
--- /dev/null
+++ b/debian/README.Debian.cimg-examples
@@ -0,0 +1,32 @@
+Some explanation given by upstream about using the make targets in the
+Makefile provided with the examples in /usr/share/doc/cimg-dev/examples:
+
+
+  It seems you are compiling the examples of CImg with the 'Mlinux'
+  Makefile entry, which is the 'maximum' possible configuration, and
+  requires the most dependencies as possible. In fact, the CImg examples
+  do not need these dependancies at all. This makefile entry is useful
+  only when someone want to copy/paste the Makefile for his own project
+  that require such dependencies. But for the compilation of the CImg
+  examples, it is really useless. It won't add extra-features to the
+  examples. To compile the CImg examples, the best configuration is
+  probably the 'olinux' entry, which requires very few dependencies and
+  enable optimization.  Using this makefile entry naturally reduces the
+  compilation command to :
+
+$ make olinux
+make[1]: Entering directory `/src/CImg/examples'
+
+** Compiling 'CImg_demo (_cimg_version)' with 'gcc version 4.4.5
+(Ubuntu/Linaro 4.4.4-14ubuntu5) '
+
+g++ -o CImg_demo CImg_demo.cpp -I.. -Wall -W -lm -ansi -pedantic -O3
+-fno-tree-pre -Dcimg_use_vt100 -I/usr/X11R6/include -Dcimg_use_xshm
+-Dcimg_use_xrandr -L/usr/X11R6/lib -lpthread -lX11 -lXext -lXrandr
+
+  And you need only the pthread, X11 and Xrandr library. Even XRandr is
+  unnecessary and will be removed by default for the next 1.4.6 release. I
+  provided a 'complete' Makefile by putting all possible options there, so
+  people can easily create their own custom Makefile if needed. But for
+  the CImg examples, the minimal configuration is enough.
+
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..f6d5d64
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+This packages uses the quilt patch system. Please read
+/usr/share/doc/quilt/README.source for more information.
+
+ -- Andreas Tille <tille at debian.org>  Fri, 09 Oct 2009 14:07:50 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5f9ed8a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,314 @@
+cimg (1.6.5+dfsg-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Andreas Tille <tille at debian.org>  Sun, 08 Nov 2015 18:23:26 +0100
+
+cimg (1.6.4+dfsg-1) unstable; urgency=medium
+
+  * adapted d/watch to new upstream location at Github
+  * Remove non-free example file via Files-Excluded
+    Closes: #791399
+  * cme fix dpkg-control
+  * Add needed Build-Depends from libcurl
+  * Recreate docs with doxygen
+
+ -- Andreas Tille <tille at debian.org>  Mon, 13 Jul 2015 21:19:38 +0200
+
+cimg (1.5.9+dfsg-1) unstable; urgency=medium
+
+  * New upstream version (adapted patches)
+  * d/rules: adapt uscan syntax
+  * d/watch: enable uscan to use correct version
+  * d/patches/use_pkg-config.patch: Newer imagemagick version does not supply
+    Magick++-config command any more but pkg-config can be used instead
+    (thanks for the hint to Bastien ROUCARIES)
+    Closes: #761564
+  * d/copyright: change sequence of Files paragraphs to fit DEP5
+
+ -- Andreas Tille <tille at debian.org>  Mon, 15 Sep 2014 17:16:57 +0200
+
+cimg (1.5.7+dfsg-1) unstable; urgency=low
+
+  * debian/copyright: Exclude non-free image file
+    Closes: #735342
+  * debian/control:
+     - cme fix dpkg-control
+     - remove inactive Uploaders
+     - Build-Depends: libtiffxx5
+     - Suggests: libtiff5-dev, libtiffxx5
+  * debian/cimg-doc.doc-base:  Readd PDF documentation
+  * debian/watch: mangle Debian version
+  * debian/patches/20_include_ltiffxx.patch: examples also need -ltiffxx
+  * debian/rules: remove code violating user privacy
+
+ -- Andreas Tille <tille at debian.org>  Wed, 15 Jan 2014 14:03:50 +0100
+
+cimg (1.5.6-1) unstable; urgency=low
+
+  * New upstream version (adapted patches)
+    debian/patches/30_fix-opencv-ftbfs.patch disabled because applied upstream
+  * debian/patches/30_do_not_build_minc2_examples.patch: Examples will
+    file when trying to use minc file format so exclude these from build
+  * debian/control:
+     - Standards-Version: 3.9.4 (no changes needed)
+     - Fixed VCS fields
+     - cme fix dpkg-control
+     - Moved libcv-dev from Suggests to Depends
+     - Build-Depends: libopencv-core-dev, libopencv-highgui-dev to enable
+       compiling examples
+  * debian/rules:
+     - use xz compression for repackaging
+     - build examples in dh_auto_test rather than dh_auto_install because
+       it is actually only a test whether everything compiles nicely
+     - Do not try to install upstream changelog which is not contained in
+       upstream source any more
+
+ -- Andreas Tille <tille at debian.org>  Sat, 27 Jul 2013 00:15:19 +0200
+
+cimg (1.4.9-2) unstable; urgency=low
+
+  * debian/patches/30_fix-opencv-ftbfs.patch: Fix problem with opencv
+    headers (thanks to Adrien Cunin <adri2000 at ubuntu.com> for the patch)
+    Closes: #652770
+  * debian/control: Standards-Version: 3.9.3 (no changes needed)
+  * debhelper 9 (control+compat)
+  * no explicite mentioning of quilt (control+rules) which is unneeded
+    for source format 3.0 quilt
+  * debian/copyright:
+    - Real e-mail address for contact
+    - DEP5 formatted and verified using
+        cme fix dpkg-copyright
+
+ -- Andreas Tille <tille at debian.org>  Wed, 21 Mar 2012 06:28:27 +0100
+
+cimg (1.4.9-1) unstable; urgency=low
+
+  * New upstream version
+  * Standards-Version: 3.9.2 (no changes needed)
+  * debian/cimg-doc.doc-base: temporarily exclude CImg_reference.pdf
+    which is rewritten according to upstream
+
+ -- Andreas Tille <tille at debian.org>  Tue, 21 Jun 2011 14:12:51 +0200
+
+cimg (1.4.8-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/get-orig-source: deleted in favour of
+     uscan --verbose --rename --repack --force-download
+    in debian/rules
+  * Debhelper 8 (control+compat)
+  * Build-Depends: libminc-dev
+
+ -- Andreas Tille <tille at debian.org>  Wed, 16 Mar 2011 08:02:36 +0100
+
+cimg (1.4.7-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Andreas Tille <tille at debian.org>  Sat, 22 Jan 2011 11:29:56 +0100
+
+cimg (1.4.6-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/patches/20_fix-missing-libX11-binutils-gold.patch
+    fix FTBFS issue with binutils-gold because of missing libX11 when
+    linking the examples version graph (thanks for the patch to
+    Fabrice Coutadeur <fabricesp at ubuntu.com>)
+    Closes: #603299
+  * debian/control: Changed dependencies according to advise of upstream
+    author
+    - moved cimg-dev/Depends: libmagick++-dev, libfftw3-dev | fftw3-dev
+      to cimg-dev/Suggests
+    - added cimg-examples/Recommends: libmagick++-dev, libfftw3-dev | fftw3-dev
+    - added cimg-dev/Suggests: libgimp2.0-dev, libcv-dev, libhighgui-dev
+    - added cimg-examples/Recommends: libgimp2.0-dev, libcv-dev, libhighgui-dev
+  * Added debian/README.source
+  * Added debian/README.Debian.cimg-examples with explanation of upstream
+    author regarding the usage of the Makefile target
+
+ -- Andreas Tille <tille at debian.org>  Sat, 13 Nov 2010 15:33:17 +0100
+
+cimg (1.4.4-1) unstable; urgency=low
+
+  * New upstream version
+  * Stabilized gzipped tarball's MD5 sum in ‘debian/get-orig-source’.
+  * Make sure package builds with binutils-gold (Thanks for the patch
+    provided by Fabrice Coutadeur <fabricesp at ubuntu.com>)
+    Closes: #602166
+  * debian/control
+    - Build-Depends: libcv-dev, libhighgui-dev
+    - Recommends: libcv-dev, libhighgui-dev
+    - Depends: libmagick++-dev (instead of libmagick++9-dev)
+  * debian/rules:
+    - Make sure no object files from test build will make it into
+      examples package
+    - Do not compress .gmic file in examples
+
+ -- Andreas Tille <tille at debian.org>  Thu, 04 Nov 2010 21:59:49 +0100
+
+cimg (1.3.9-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Andreas Tille <tille at debian.org>  Thu, 29 Jul 2010 12:02:19 +0200
+
+cimg (1.3.8-1) unstable; urgency=low
+
+  * New upstream version
+  * Standards-Version: 3.9.1 (no changes needed)
+  * Source format 3.0 (quilt)
+  * Versioned Build-Depends on quilt
+  * debian/rules: Make sure, example gaussian_fit1d.cpp will be able
+    to find itself as include
+  * debian/cimg-dev.install: install plugins into /usr/include
+
+ -- Andreas Tille <tille at debian.org>  Tue, 27 Jul 2010 13:33:13 +0200
+
+cimg (1.3.3-1) unstable; urgency=low
+
+  * New upstream version
+  * Standards-Version: 3.8.4 (no changes needed)
+  * debian/get-orig-source upstream does not provide tarballs any
+    more and switched back to zip only habit
+  * debian/patches/10_examples.patch became useless
+
+ -- Andreas Tille <tille at debian.org>  Thu, 11 Mar 2010 17:18:31 +0100
+
+cimg (1.3.2-2) unstable; urgency=low
+
+  * debian/watch: Re-enable zip download files.
+  * Fix formating of long description
+    Closes: #554465
+
+ -- Andreas Tille <tille at debian.org>  Wed, 04 Nov 2009 22:16:41 +0100
+
+cimg (1.3.2-1) unstable; urgency=low
+
+  [ Daniel Leidert (dale) ]
+  * New upstream release 1.3.2 (closes: #399846, #497672).
+
+  * debian/control (XS-Vcs): Removed obsolete XS-prefix. Fixed Vcs-Svn to work
+    with debcheckout.
+    (Depends,Build-Depends-Indep): fftw3-dev -> libfftw3-dev transition
+    (closes: #460024).
+    (Description): Fixed typo (closes: #363199). Thanks to Simon Waters for the
+    report.
+  * debian/copyright: Updated.
+  * debian/watch: Added.
+
+  [ Andreas Tille ]
+  * debian/control:
+    - Took over package into Debian Science Team maintenance with permission
+      of Maintainer:
+        On Mon, Oct 12, 2009 at 09:07:32AM +0200, Christophe Prud'homme wrote:
+        > ...
+        > I am definitely fine with cimg-dev moving to Debian science.
+    - Standards-Version: 3.8.3 (no changes needed)
+    - Added Homepage field
+    - took over Suggests from upstreams Debian packaging
+    - Build-Depends: libgimp2.0-dev, quilt
+  * debian/get-orig-source to repack zip to orig.tar.gz
+  * Added html docs and examples to the package
+  * debian/doc-base
+  * debian/patches: Added a patch by upstream to enable building
+    examples
+  * Split into three packages: cimg-dev, cimg-doc, cimg-examples
+  * Debhelper 7, short debian/rules file using dh
+
+ -- Andreas Tille <tille at debian.org>  Fri, 09 Oct 2009 14:07:50 +0200
+
+cimg (1.2.0.1-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix from Peter Green to prevent FTBFS with incorrect
+    'long long' declaration. (Closes: #527694)
+
+ -- Kumar Appaiah <akumar at debian.org>  Sun, 20 Sep 2009 09:17:05 -0500
+
+cimg (1.2.0.1-2) unstable; urgency=low
+
+  [Christophe Prud'homme]
+  * debian/control: add myself as uploader
+  * Bug fix: "FTBFS: ../CImg.h:226:35: error: X11/extensions/Xrandr.h: No
+    such file or directory", thanks to Jérémy Bobbio (Closes: #422068).
+  * Bug fix: "cimg-dev: forgotten dependency on xorg-dev", thanks to
+    Olivier Schwander (Closes: #386260).
+
+ -- Christophe Prud'homme <prudhomm at debian.org>  Sat, 14 Jul 2007 19:16:17 +0200
+
+cimg (1.2.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+  * debian/patches/100_system_detection.diff:
+    + Patch merged upstream, removing.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Fri, 20 Apr 2007 20:30:39 +0200
+
+cimg (1.0.9-3) unstable; urgency=low
+
+  * Use quilt for patch management.
+  * debian/control:
+    + Set maintainer to the pkg-scicomp team.
+    + Set policy to 3.7.2.
+    + Added Vcs fields.
+  * debian/rules:
+    + Removed the useless configure rule.
+
+  * debian/patches/100_system_detection.diff:
+    + New patch from old diff.gz. Check for "__linux__" instead of "linux".
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Sun, 01 Apr 2007 15:25:35 +0200
+
+cimg (1.0.9-2) unstable; urgency=low
+
+  * CImg.h:
+    + Check for macro "__linux__" instead of "linux" (Closes: #319217).
+  * debian/rules:
+    + Clean up the examples directory after the build; we don't want them
+      installed.
+    + Fix permissions in examples/img/*.
+    + Fixed a timestamp bug that caused examples to be built twice.
+  * debian/copyright:
+    + Copied the full license text in there.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Fri, 11 Nov 2005 15:23:36 +0100
+
+cimg (1.0.9-1) unstable; urgency=low
+
+  * New upstream release (Closes: #303413).
+  * debian/control:
+    + Set policy to 3.6.2.1.
+  * debian/copyright:
+    + Reflected license change to CeCILL (which allows redistribution under
+      the GPL).
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Tue, 12 Jul 2005 22:17:19 +0300
+
+cimg (1.0.7-1) unstable; urgency=low
+
+  * New upstream release.
+  * CImg.h:
+    + Imported a patch from CVS for broken matrix multiplications.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Fri, 19 Nov 2004 11:26:29 +0100
+
+cimg (1.0.6-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Tue, 28 Sep 2004 11:51:57 +0200
+
+cimg (1.0.5-2) unstable; urgency=low
+
+  * Build-depend on libx11-dev (Closes: #264822).
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Tue, 10 Aug 2004 17:34:58 +0200
+
+cimg (1.0.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Wed, 28 Jul 2004 15:27:12 +0200
+
diff --git a/debian/cimg-dev.docs b/debian/cimg-dev.docs
new file mode 100644
index 0000000..71dfd5b
--- /dev/null
+++ b/debian/cimg-dev.docs
@@ -0,0 +1 @@
+README.txt
diff --git a/debian/cimg-dev.install b/debian/cimg-dev.install
new file mode 100644
index 0000000..9c97e74
--- /dev/null
+++ b/debian/cimg-dev.install
@@ -0,0 +1,2 @@
+plugins  usr/include
+CImg.h   usr/include
diff --git a/debian/cimg-doc.doc-base b/debian/cimg-doc.doc-base
new file mode 100644
index 0000000..f12885e
--- /dev/null
+++ b/debian/cimg-doc.doc-base
@@ -0,0 +1,17 @@
+Document: cimg-doc
+Title: David Tschumperlé <David.Tschumperle at greyc.ensicaen.fr>
+Author: David Tschumperlé <David.Tschumperle at greyc.ensicaen.fr>
+Abstract: The CImg Library is an open-source C++ library for image processing.
+ It provides a minimal set of C++ classes that can be used to perform
+ several common operations on generic images (up to 4D multivalued ones).
+ It is simple-to-use, efficient, and portable. It's a really pleasant
+ toolkit for developing image processing stuffs in C++.
+Section: Science/Mathematics
+
+Format: html
+Files: /usr/share/doc/cimg-dev/html/*
+Index: /usr/share/doc/cimg-dev/html/index.html
+
+Format: pdf
+Files: /usr/share/doc/cimg-dev/refman.pdf
+
diff --git a/debian/cimg-doc.install b/debian/cimg-doc.install
new file mode 100644
index 0000000..4b64672
--- /dev/null
+++ b/debian/cimg-doc.install
@@ -0,0 +1,4 @@
+html/latex/refman.pdf	usr/share/doc/cimg-dev
+html/favicon*		usr/share/doc/cimg-dev/html
+html/img		usr/share/doc/cimg-dev/html
+html/images		usr/share/doc/cimg-dev/html
diff --git a/debian/cimg-doc.links b/debian/cimg-doc.links
new file mode 100644
index 0000000..5754754
--- /dev/null
+++ b/debian/cimg-doc.links
@@ -0,0 +1,2 @@
+/usr/share/javascript/jquery/jquery.js	/usr/share/doc/cimg-dev/html/jquery.js
+
diff --git a/debian/cimg-examples.install b/debian/cimg-examples.install
new file mode 100644
index 0000000..83320c4
--- /dev/null
+++ b/debian/cimg-examples.install
@@ -0,0 +1 @@
+examples/*.* examples/img examples/Makefile   usr/share/doc/cimg-dev/examples
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..abfb75d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,105 @@
+Source: cimg
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: math
+Priority: optional
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: doxygen,
+                     libx11-dev,
+                     libxrandr-dev,
+                     libmagick++-dev,
+                     libfftw3-dev | fftw3-dev,
+                     libgimp2.0-dev,
+                     libcv-dev,
+                     libhighgui-dev,
+                     libminc-dev,
+                     libtiff5-dev,
+                     libtiffxx5,
+                     libcurl4-gnutls-dev | libcurl4-dev,
+                     texlive-latex-extra,
+                     texlive-fonts-recommended
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/cimg/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/cimg/trunk/
+Homepage: http://cimg.sourceforge.net/
+
+Package: cimg-dev
+Architecture: all
+Depends: libx11-dev,
+         libxrandr-dev,
+         libcv-dev,
+         ${misc:Depends},
+         ${shlibs:Depends}
+Suggests: xmedcon,
+          lapack3-dev,
+          cimg-doc,
+          cimg-examples,
+          libmagick++-dev,
+          libfftw3-dev | fftw3-dev,
+          libgimp2.0-dev,
+          libhighgui-dev,
+          libtiff5-dev,
+          libtiffxx5
+Description: powerful image processing library
+ The CImg Library is a C++ toolkit providing simple classes and functions
+ to load, save, process and display images in your own C++ code. It consists
+ only of a single header file CImg.h that must be included in your program
+ source. It contains useful image processing algorithms for loading/saving,
+ resizing/rotating, filtering, object drawing (text, lines, faces,
+ ellipses, ...), etc.
+ .
+ Images are instantiated by a class able to represent images up to 4-dimension
+ wide (from 1-D scalar signals to 3-D volumes of vector-valued pixels), with
+ template pixel types. It depends on a minimal number of libraries : you can
+ compile it with only standard C libraries. No need for exotic libraries and
+ complex dependencies.
+
+Package: cimg-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         libjs-jquery
+Enhances: cimg-dev
+Description: documentation of cimg-dev imaging library
+ The CImg Library is a C++ toolkit providing simple classes and functions
+ to load, save, process and display images in your own C++ code. It consists
+ only of a single header file CImg.h that must be included in your program
+ source. It contains useful image processing algorithms for loading/saving,
+ resizing/rotating, filtering, object drawing (text, lines, faces,
+ ellipses, ...), etc.
+ .
+ Images are instantiated by a class able to represent images up to 4-dimension
+ wide (from 1-D scalar signals to 3-D volumes of vector-valued pixels), with
+ template pixel types. It depends on a minimal number of libraries : you can
+ compile it with only standard C libraries. No need for exotic libraries and
+ complex dependencies.
+ .
+ This package contains the documentation.
+
+Package: cimg-examples
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Recommends: cimg-dev,
+            libmagick++-dev,
+            libfftw3-dev | fftw3-dev,
+            libgimp2.0-dev,
+            libcv-dev,
+            libhighgui-dev
+Enhances: cimg-dev,
+          cimg-doc
+Description: examples for cimg-dev imaging library
+ The CImg Library is a C++ toolkit providing simple classes and functions
+ to load, save, process and display images in your own C++ code. It consists
+ only of a single header file CImg.h that must be included in your program
+ source. It contains useful image processing algorithms for loading/saving,
+ resizing/rotating, filtering, object drawing (text, lines, faces,
+ ellipses, ...), etc.
+ .
+ Images are instantiated by a class able to represent images up to 4-dimension
+ wide (from 1-D scalar signals to 3-D volumes of vector-valued pixels), with
+ template pixel types. It depends on a minimal number of libraries : you can
+ compile it with only standard C libraries. No need for exotic libraries and
+ complex dependencies.
+ .
+ This package contains examples for the usage of the library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..31f1662
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,1063 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: CImg
+Upstream-Contact: David Tschumperlé <David.Tschumperle at greyc.ensicaen.fr>
+Source: http://cimg.sourceforge.net/download.shtml
+Files-Excluded: html/img/project-support.jpg
+                html/jquery-*.min.js
+                html/*.pdf
+                html/cimgmenu
+                
+
+Files: *
+Copyright: © 2000-2003 David Tschumperlé - INRIA Sophia-Antipolis. Odyssée group.
+           © 2004-2015 David Tschumperlé - GREYC UMR CNRS 6072, Image group.
+License: CeCILL
+
+Files: debian/*
+Copyright: © 2004-2007 Sam Hocevar <sam at zoy.org>
+           © 2007 Christophe Prud'homme <prudhomm at debian.org>
+           © 2009-2011 Andreas Tille <tille at debian.org>
+License: CeCILL
+
+Files: plugins/add_fileformat.h plugins/loop_macros.h
+Copyright: © 2007-2009 David Tschumperlé <David.Tschumperle at greyc.ensicaen.fr>
+License: CeCILL
+
+Files: plugins/draw_gradient.h plugins/nlmeans.h
+Copyright: © 2006-2009 Jerome Boulanger
+License: CeCILL
+
+Files: plugins/jpeg_buffer.h
+Copyright: © 2007-2009 Paolo Prete <p4olo_prete at yahoo.it>
+License: CeCILL
+
+Files: plugins/skeleton.h
+Copyright: © 2007-2009 Francois-Xavier Dupe
+License: CeCILL
+
+Files: CImg.h
+Copyright: © 2000-2003 David Tschumperlé - INRIA Sophia-Antipolis. Odyssée group.
+           © 2004-2014 David Tschumperlé - GREYC UMR CNRS 6072, Image group.
+License: CeCILL
+Comment:
+ The main library file 'CImg.h' is *dual-licensed* :
+ It can be either distributed under the CeCILL-C or CeCILL license.
+ .
+     * CeCILL-C is adapted to the distribution of
+       library components, and is close in its terms to the well known GNU LGPL license
+       (the 'CImg.h' file can thus be used in closed-source products under certain
+       conditions, please read carefully the license file).
+     * CeCILL is close to (and even compatible with) the GNU GPL license.
+
+License: CeCILL
+               CeCILL FREE SOFTWARE LICENSE AGREEMENT
+ .
+    Notice
+ .
+ This Agreement is a Free Software license agreement that is the result
+ of discussions between its authors in order to ensure compliance with
+ the two main principles guiding its drafting:
+ .
+    * firstly, compliance with the principles governing the distribution
+      of Free Software: access to source code, broad rights granted to
+      users,
+    * secondly, the election of a governing law, French law, with which
+      it is conformant, both as regards the law of torts and
+      intellectual property law, and the protection that it offers to
+      both authors and holders of the economic rights over software.
+ .
+ The authors of the CeCILL (for Ce[a] C[nrs] I[nria] L[logiciel] L[ibre])
+ license are:
+ .
+ Commissariat à l'Energie Atomique - CEA, a public scientific, technical
+ and industrial research establishment, having its principal place of 
+ business at 25 rue Leblanc, immeuble Le Ponant D, 75015 Paris, France.
+ .
+ Centre National de la Recherche Scientifique - CNRS, a public scientific
+ and technological research establishment, having its principal place of 
+ business at 3 rue Michel-Ange, 75794 Paris cedex 16, France.
+ .
+ Institut National de Recherche en Informatique et en Automatique -
+ INRIA, a public scientific and technological establishment, having its
+ principal place of business at Domaine de Voluceau, Rocquencourt, BP
+ 105, 78153 Le Chesnay cedex, France.
+ .
+    Preamble
+ .
+ The purpose of this Free Software license agreement is to grant users
+ the right to modify and redistribute the software governed by this
+ license within the framework of an open source distribution model.
+ .
+ The exercising of these rights is conditional upon certain obligations
+ for users so as to preserve this status for all subsequent redistributions.
+ .
+ In consideration of access to the source code and the rights to copy,
+ modify and redistribute granted by the license, users are provided only
+ with a limited warranty and the software's author, the holder of the
+ economic rights, and the successive licensors only have limited liability.
+ .
+ In this respect, the risks associated with loading, using, modifying
+ and/or developing or reproducing the software by the user are brought to
+ the user's attention, given its Free Software status, which may make it
+ complicated to use, with the result that its use is reserved for
+ developers and experienced professionals having in-depth computer
+ knowledge. Users are therefore encouraged to load and test the suitability
+ of the software as regards their requirements in conditions enabling 
+ the security of their systems and/or data to be ensured and, more 
+ generally, to use and operate it in the same conditions of security. 
+ This Agreement may be freely reproduced and published, provided it is not
+ altered, and that no provisions are either added or removed herefrom.
+ .
+ This Agreement may apply to any or all software for which the holder of
+ the economic rights decides to submit the use thereof to its provisions.
+ .
+    Article 1 - DEFINITIONS
+ .
+ For the purpose of this Agreement, when the following expressions
+ commence with a capital letter, they shall have the following meaning:
+ .
+ Agreement: means this license agreement, and its possible subsequent
+ versions and annexes.
+ .
+ Software: means the software in its Object Code and/or Source Code form
+ and, where applicable, its documentation, "as is" when the Licensee
+ accepts the Agreement.
+ .
+ Initial Software: means the Software in its Source Code and possibly its
+ Object Code form and, where applicable, its documentation, "as is" when
+ it is first distributed under the terms and conditions of the Agreement.
+ .
+ Modified Software: means the Software modified by at least one
+ Contribution.
+ .
+ Source Code: means all the Software's instructions and program lines to
+ which access is required so as to modify the Software.
+ .
+ Object Code: means the binary files originating from the compilation of
+ the Source Code.
+ .
+ Holder: means the holder(s) of the economic rights over the Initial
+ Software.
+ .
+ Licensee: means the Software user(s) having accepted the Agreement.
+ .
+ Contributor: means a Licensee having made at least one Contribution.
+ .
+ Licensor: means the Holder, or any other individual or legal entity, who
+ distributes the Software under the Agreement.
+ .
+ Contribution: means any or all modifications, corrections, translations,
+ adaptations and/or new functions integrated into the Software by any or
+ all Contributors, as well as any or all Internal Modules.
+ .
+ Module: means a set of sources files including their documentation that
+ enables supplementary functions or services in addition to those offered
+ by the Software.
+ .
+ External Module: means any or all Modules, not derived from the
+ Software, so that this Module and the Software run in separate address
+ spaces, with one calling the other when they are run.
+ .
+ Internal Module: means any or all Module, connected to the Software so
+ that they both execute in the same address space.
+ .
+ GNU GPL: means the GNU General Public License version 2 or any
+ subsequent version, as published by the Free Software Foundation Inc.
+ .
+ Parties: mean both the Licensee and the Licensor.
+ .
+ These expressions may be used both in singular and plural form.
+ .
+ .
+     Article 2 - PURPOSE
+ .
+ The purpose of the Agreement is the grant by the Licensor to the
+ Licensee of a non-exclusive, transferable and worldwide license for the
+ Software as set forth in Article 5 hereinafter for the whole term of the 
+ protection granted by the rights over said Software.
+ .
+ .
+     Article 3 - ACCEPTANCE
+ .
+ 3.1 The Licensee shall be deemed as having accepted the terms and
+ conditions of this Agreement upon the occurrence of the first of the
+ following events:
+ .
+     * (i) loading the Software by any or all means, notably, by
+       downloading from a remote server, or by loading from a physical
+       medium;
+     * (ii) the first time the Licensee exercises any of the rights
+       granted hereunder.
+ .
+ 3.2 One copy of the Agreement, containing a notice relating to the
+ characteristics of the Software, to the limited warranty, and to the
+ fact that its use is restricted to experienced users has been provided
+ to the Licensee prior to its acceptance as set forth in Article 3.1
+ hereinabove, and the Licensee hereby acknowledges that it has read and 
+ understood it.
+ .
+ .
+     Article 4 - EFFECTIVE DATE AND TERM
+ .
+ .
+       4.1 EFFECTIVE DATE
+ .
+ The Agreement shall become effective on the date when it is accepted by
+ the Licensee as set forth in Article 3.1.
+ .
+ .
+       4.2 TERM
+ .
+ The Agreement shall remain in force for the entire legal term of
+ protection of the economic rights over the Software.
+ .
+ .
+     Article 5 - SCOPE OF RIGHTS GRANTED
+ .
+ The Licensor hereby grants to the Licensee, who accepts, the following
+ rights over the Software for any or all use, and for the term of the
+ Agreement, on the basis of the terms and conditions set forth hereinafter.
+ .
+ Besides, if the Licensor owns or comes to own one or more patents
+ protecting all or part of the functions of the Software or of its
+ components, the Licensor undertakes not to enforce the rights granted by
+ these patents against successive Licensees using, exploiting or
+ modifying the Software. If these patents are transferred, the Licensor
+ undertakes to have the transferees subscribe to the obligations set
+ forth in this paragraph.
+ .
+ .
+       5.1 RIGHT OF USE
+ .
+ The Licensee is authorized to use the Software, without any limitation
+ as to its fields of application, with it being hereinafter specified
+ that this comprises:
+ .
+    1. permanent or temporary reproduction of all or part of the Software
+       by any or all means and in any or all form.
+ .
+    2. loading, displaying, running, or storing the Software on any or
+       all medium.
+ .
+    3. entitlement to observe, study or test its operation so as to
+       determine the ideas and principles behind any or all constituent
+       elements of said Software. This shall apply when the Licensee
+       carries out any or all loading, displaying, running, transmission
+       or storage operation as regards the Software, that it is entitled
+       to carry out hereunder.
+ .
+ .
+       5.2 ENTITLEMENT TO MAKE CONTRIBUTIONS
+ .
+ The right to make Contributions includes the right to translate, adapt,
+ arrange, or make any or all modifications to the Software, and the right
+ to reproduce the resulting software.
+ .
+ The Licensee is authorized to make any or all Contributions to the
+ Software provided that it includes an explicit notice that it is the
+ author of said Contribution and indicates the date of the creation thereof.
+ .
+ .
+       5.3 RIGHT OF DISTRIBUTION
+ .
+ In particular, the right of distribution includes the right to publish,
+ transmit and communicate the Software to the general public on any or
+ all medium, and by any or all means, and the right to market, either in
+ consideration of a fee, or free of charge, one or more copies of the
+ Software by any means.
+ .
+ The Licensee is further authorized to distribute copies of the modified
+ or unmodified Software to third parties according to the terms and
+ conditions set forth hereinafter.
+ .
+ .
+         5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION
+ .
+ The Licensee is authorized to distribute true copies of the Software in
+ Source Code or Object Code form, provided that said distribution
+ complies with all the provisions of the Agreement and is accompanied by:
+ .
+    1. a copy of the Agreement,
+ .
+    2. a notice relating to the limitation of both the Licensor's
+       warranty and liability as set forth in Articles 8 and 9,
+ .
+ and that, in the event that only the Object Code of the Software is
+ redistributed, the Licensee allows future Licensees unhindered access to
+ the full Source Code of the Software by indicating how to access it, it
+ being understood that the additional cost of acquiring the Source Code
+ shall not exceed the cost of transferring the data.
+ .
+ .
+         5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE
+ .
+ When the Licensee makes a Contribution to the Software, the terms and
+ conditions for the distribution of the resulting Modified Software 
+ become subject to all the provisions of this Agreement.
+ .
+ The Licensee is authorized to distribute the Modified Software, in
+ source code or object code form, provided that said distribution
+ complies with all the provisions of the Agreement and is accompanied by:
+ .
+    1. a copy of the Agreement,
+ .
+    2. a notice relating to the limitation of both the Licensor's
+       warranty and liability as set forth in Articles 8 and 9,
+ .
+ and that, in the event that only the Object Code of the Modified
+ Software is redistributed, the Licensee allows future Licensees
+ unhindered access to the full source code of the Modified Software by
+ indicating how to access it, it being understood that the additional
+ cost of acquiring the source code shall not exceed the cost of
+ transferring the data.
+ .
+ .
+         5.3.3 DISTRIBUTION OF EXTERNAL MODULES
+ .
+ When the Licensee has developed an External Module, the terms and
+ conditions of this Agreement do not apply to said External Module, that
+ may be distributed under a separate license agreement.
+ .
+ .
+         5.3.4 COMPATIBILITY WITH THE GNU GPL
+ .
+ The Licensee can include a code that is subject to the provisions of one
+ of the versions of the GNU GPL in the Modified or unmodified Software,
+ and distribute that entire code under the terms of the same version of
+ the GNU GPL.
+ .
+ The Licensee can include the Modified or unmodified Software in a code
+ that is subject to the provisions of one of the versions of the GNU GPL,
+ and distribute that entire code under the terms of the same version of
+ the GNU GPL.
+ .
+ .
+     Article 6 - INTELLECTUAL PROPERTY
+ .
+ .
+       6.1 OVER THE INITIAL SOFTWARE
+ .
+ The Holder owns the economic rights over the Initial Software. Any or
+ all use of the Initial Software is subject to compliance with the terms
+ and conditions under which the Holder has elected to distribute its work
+ and no one shall be entitled to modify the terms and conditions for the
+ distribution of said Initial Software.
+ .
+ The Holder undertakes that the Initial Software will remain ruled at
+ least by the current license, for the duration set forth in Article 4.2.
+ .
+ .
+       6.2 OVER THE CONTRIBUTIONS
+ .
+ A Licensee who develops a Contribution is the owner of the intellectual
+ property rights over this Contribution as defined by applicable law.
+ .
+ .
+       6.3 OVER THE EXTERNAL MODULES
+ .
+ A Licensee who develops an External Module is the owner of the
+ intellectual property rights over this External Module as defined by
+ applicable law and is free to choose the type of agreement that shall
+ govern its distribution.
+ .
+ .
+       6.4 JOINT PROVISIONS
+ .
+ The Licensee expressly undertakes:
+ .
+    1. not to remove, or modify, in any manner, the intellectual property
+       notices attached to the Software;
+ .
+    2. to reproduce said notices, in an identical manner, in the copies
+       of the Software modified or not.
+ .
+ The Licensee undertakes not to directly or indirectly infringe the
+ intellectual property rights of the Holder and/or Contributors on the
+ Software and to take, where applicable, vis-à-vis its staff, any and all
+ measures required to ensure respect of said intellectual property rights
+ of the Holder and/or Contributors.
+ .
+ .
+     Article 7 - RELATED SERVICES
+ .
+ 7.1 Under no circumstances shall the Agreement oblige the Licensor to
+ provide technical assistance or maintenance services for the Software.
+ .
+ However, the Licensor is entitled to offer this type of services. The
+ terms and conditions of such technical assistance, and/or such
+ maintenance, shall be set forth in a separate instrument. Only the
+ Licensor offering said maintenance and/or technical assistance services
+ shall incur liability therefor.
+ .
+ 7.2 Similarly, any Licensor is entitled to offer to its licensees, under
+ its sole responsibility, a warranty, that shall only be binding upon
+ itself, for the redistribution of the Software and/or the Modified
+ Software, under terms and conditions that it is free to decide. Said
+ warranty, and the financial terms and conditions of its application,
+ shall be subject of a separate instrument executed between the Licensor
+ and the Licensee.
+ .
+ .
+     Article 8 - LIABILITY
+ .
+ 8.1 Subject to the provisions of Article 8.2, the Licensee shall be
+ entitled to claim compensation for any direct loss it may have suffered
+ from the Software as a result of a fault on the part of the relevant
+ Licensor, subject to providing evidence thereof.
+ .
+ 8.2 The Licensor's liability is limited to the commitments made under
+ this Agreement and shall not be incurred as a result of in particular:
+ (i) loss due the Licensee's total or partial failure to fulfill its
+ obligations, (ii) direct or consequential loss that is suffered by the
+ Licensee due to the use or performance of the Software, and (iii) more
+ generally, any consequential loss. In particular the Parties expressly
+ agree that any or all pecuniary or business loss (i.e. loss of data,
+ loss of profits, operating loss, loss of customers or orders,
+ opportunity cost, any disturbance to business activities) or any or all
+ legal proceedings instituted against the Licensee by a third party,
+ shall constitute consequential loss and shall not provide entitlement to
+ any or all compensation from the Licensor.
+ .
+ .
+     Article 9 - WARRANTY
+ .
+ 9.1 The Licensee acknowledges that the scientific and technical
+ state-of-the-art when the Software was distributed did not enable all
+ possible uses to be tested and verified, nor for the presence of
+ possible defects to be detected. In this respect, the Licensee's
+ attention has been drawn to the risks associated with loading, using,
+ modifying and/or developing and reproducing the Software which are
+ reserved for experienced users.
+ .
+ The Licensee shall be responsible for verifying, by any or all means,
+ the suitability of the product for its requirements, its good working order,
+ and for ensuring that it shall not cause damage to either persons or
+ properties.
+ .
+ 9.2 The Licensor hereby represents, in good faith, that it is entitled
+ to grant all the rights over the Software (including in particular the
+ rights set forth in Article 5).
+ .
+ 9.3 The Licensee acknowledges that the Software is supplied "as is" by
+ the Licensor without any other express or tacit warranty, other than
+ that provided for in Article 9.2 and, in particular, without any warranty
+ as to its commercial value, its secured, safe, innovative or relevant 
+ nature.
+ .
+ Specifically, the Licensor does not warrant that the Software is free
+ from any error, that it will operate without interruption, that it will
+ be compatible with the Licensee's own equipment and software
+ configuration, nor that it will meet the Licensee's requirements.
+ .
+ 9.4 The Licensor does not either expressly or tacitly warrant that the
+ Software does not infringe any third party intellectual property right
+ relating to a patent, software or any other property right. Therefore,
+ the Licensor disclaims any and all liability towards the Licensee
+ arising out of any or all proceedings for infringement that may be
+ instituted in respect of the use, modification and redistribution of the
+ Software. Nevertheless, should such proceedings be instituted against
+ the Licensee, the Licensor shall provide it with technical and legal
+ assistance for its defense. Such technical and legal assistance shall be
+ decided on a case-by-case basis between the relevant Licensor and the
+ Licensee pursuant to a memorandum of understanding. The Licensor
+ disclaims any and all liability as regards the Licensee's use of the
+ name of the Software. No warranty is given as regards the existence of
+ prior rights over the name of the Software or as regards the existence
+ of a trademark.
+ .
+ .
+     Article 10 - TERMINATION
+ .
+ 10.1 In the event of a breach by the Licensee of its obligations
+ hereunder, the Licensor may automatically terminate this Agreement
+ thirty (30) days after notice has been sent to the Licensee and has
+ remained ineffective.
+ .
+ 10.2 A Licensee whose Agreement is terminated shall no longer be
+ authorized to use, modify or distribute the Software. However, any
+ licenses that it may have granted prior to termination of the Agreement
+ shall remain valid subject to their having been granted in compliance
+ with the terms and conditions hereof.
+ .
+ .
+     Article 11 - MISCELLANEOUS
+ .
+ .
+       11.1 EXCUSABLE EVENTS
+ .
+ Neither Party shall be liable for any or all delay, or failure to
+ perform the Agreement, that may be attributable to an event of force
+ majeure, an act of God or an outside cause, such as defective
+ functioning or interruptions of the electricity or telecommunications
+ networks, network paralysis following a virus attack, intervention by
+ government authorities, natural disasters, water damage, earthquakes,
+ fire, explosions, strikes and labor unrest, war, etc.
+ .
+ 11.2 Any failure by either Party, on one or more occasions, to invoke
+ one or more of the provisions hereof, shall under no circumstances be
+ interpreted as being a waiver by the interested Party of its right to
+ invoke said provision(s) subsequently.
+ .
+ 11.3 The Agreement cancels and replaces any or all previous agreements,
+ whether written or oral, between the Parties and having the same
+ purpose, and constitutes the entirety of the agreement between said
+ Parties concerning said purpose. No supplement or modification to the
+ terms and conditions hereof shall be effective as between the Parties
+ unless it is made in writing and signed by their duly authorized
+ representatives.
+ .
+ 11.4 In the event that one or more of the provisions hereof were to
+ conflict with a current or future applicable act or legislative text,
+ said act or legislative text shall prevail, and the Parties shall make
+ the necessary amendments so as to comply with said act or legislative
+ text. All other provisions shall remain effective. Similarly, invalidity
+ of a provision of the Agreement, for any reason whatsoever, shall not
+ cause the Agreement as a whole to be invalid.
+ .
+ .
+       11.5 LANGUAGE
+ .
+ The Agreement is drafted in both French and English and both versions
+ are deemed authentic.
+ .
+ .
+     Article 12 - NEW VERSIONS OF THE AGREEMENT
+ .
+ 12.1 Any person is authorized to duplicate and distribute copies of this
+ Agreement.
+ .
+ 12.2 So as to ensure coherence, the wording of this Agreement is
+ protected and may only be modified by the authors of the License, who
+ reserve the right to periodically publish updates or new versions of the
+ Agreement, each with a separate number. These subsequent versions may
+ address new issues encountered by Free Software.
+ .
+ 12.3 Any Software distributed under a given version of the Agreement may
+ only be subsequently distributed under the same version of the Agreement
+ or a subsequent version, subject to the provisions of Article 5.3.4.
+ .
+ .
+     Article 13 - GOVERNING LAW AND JURISDICTION
+ .
+ 13.1 The Agreement is governed by French law. The Parties agree to
+ endeavor to seek an amicable solution to any disagreements or disputes
+ that may arise during the performance of the Agreement.
+ .
+ 13.2 Failing an amicable solution within two (2) months as from their
+ occurrence, and unless emergency proceedings are necessary, the
+ disagreements or disputes shall be referred to the Paris Courts having
+ jurisdiction, by the more diligent Party.
+ .
+ .
+ --------------------------------------------------------------------------------
+ .
+ Version 2.0 dated 2006-07-12.
+ .
+              CeCILL-C FREE SOFTWARE LICENSE AGREEMENT
+ .
+ .
+     Notice
+ .
+ This Agreement is a Free Software license agreement that is the result
+ of discussions between its authors in order to ensure compliance with
+ the two main principles guiding its drafting:
+ .
+     * firstly, compliance with the principles governing the distribution
+       of Free Software: access to source code, broad rights granted to
+       users,
+     * secondly, the election of a governing law, French law, with which
+       it is conformant, both as regards the law of torts and
+       intellectual property law, and the protection that it offers to
+       both authors and holders of the economic rights over software.
+ .
+ The authors of the CeCILL-C (for Ce[a] C[nrs] I[nria] L[logiciel] L[ibre])
+ license are:
+ .
+ Commissariat à l'Energie Atomique - CEA, a public scientific, technical
+ and industrial research establishment, having its principal place of 
+ business at 25 rue Leblanc, immeuble Le Ponant D, 75015 Paris, France.
+ .
+ Centre National de la Recherche Scientifique - CNRS, a public scientific
+ and technological establishment, having its principal place of business
+ at 3 rue Michel-Ange, 75794 Paris cedex 16, France.
+ .
+ Institut National de Recherche en Informatique et en Automatique -
+ INRIA, a public scientific and technological establishment, having its
+ principal place of business at Domaine de Voluceau, Rocquencourt, BP
+ 105, 78153 Le Chesnay cedex, France.
+ .
+ .
+     Preamble
+ .
+ The purpose of this Free Software license agreement is to grant users the
+ right to modify and re-use the software governed by this license. 
+ .
+ The exercising of this right is conditional on the obligation to make
+ available to the community the modifications made to the source code of the
+ software so as to contribute to its evolution. 
+ .
+ In consideration of access to the source code and the rights to copy,
+ modify and redistribute granted by the license, users are provided only
+ with a limited warranty and the software's author, the holder of the
+ economic rights, and the successive licensors only have limited liability.
+ .
+ In this respect, the risks associated with loading, using, modifying
+ and/or developing or reproducing the software by the user are brought to
+ the user's attention, given its Free Software status, which may make it
+ complicated to use, with the result that its use is reserved for
+ developers and experienced professionals having in-depth computer
+ knowledge. Users are therefore encouraged to load and test the suitability
+ of the software as regards their requirements in conditions enabling the
+ security of their systems and/or data to be ensured and, more generally, to
+ use and operate it in the same conditions of security. This Agreement may be
+ freely reproduced and published, provided it is not altered, and that no
+ provisions are either added or removed herefrom.
+ .
+ This Agreement may apply to any or all software for which the holder of
+ the economic rights decides to submit the use thereof to its provisions.
+ .
+ .
+     Article 1 - DEFINITIONS
+ .
+ For the purpose of this Agreement, when the following expressions
+ commence with a capital letter, they shall have the following meaning:
+ .
+ Agreement: means this license agreement, and its possible subsequent
+ versions and annexes.
+ .
+ Software: means the software in its Object Code and/or Source Code form
+ and, where applicable, its documentation, "as is" when the Licensee
+ accepts the Agreement.
+ .
+ Initial Software: means the Software in its Source Code and possibly its
+ Object Code form and, where applicable, its documentation, "as is" when
+ it is first distributed under the terms and conditions of the Agreement.
+ .
+ Modified Software: means the Software modified by at least one Integrated
+ Contribution.
+ .
+ Source Code: means all the Software's instructions and program lines to
+ which access is required so as to modify the Software.
+ .
+ Object Code: means the binary files originating from the compilation of
+ the Source Code.
+ .
+ Holder: means the holder(s) of the economic rights over the Initial
+ Software.
+ .
+ Licensee: means the Software user(s) having accepted the Agreement.
+ .
+ Contributor: means a Licensee having made at least one Integrated 
+ Contribution.
+ .
+ Licensor: means the Holder, or any other individual or legal entity, who
+ distributes the Software under the Agreement.
+ .
+ Integrated Contribution: means any or all modifications, corrections,
+ translations, adaptations and/or new functions integrated into the Source 
+ Code by any or all Contributors.
+ .
+ Related Module: means a set of sources files including their documentation
+ that, without modification to the Source Code, enables supplementary
+ functions or services in addition to those offered by the Software. 
+ .
+ Derivative Software: means any combination of the Software, modified or not,
+ and of a Related Module.  
+ .
+ Parties: mean both the Licensee and the Licensor.
+ .
+ These expressions may be used both in singular and plural form.
+ .
+ .
+     Article 2 - PURPOSE
+ .
+ The purpose of the Agreement is the grant by the Licensor to the
+ Licensee of a non-exclusive, transferable and worldwide license for the
+ Software as set forth in Article 5 hereinafter for the whole term of the 
+ protection granted by the rights over said Software.
+ .
+ .
+     Article 3 - ACCEPTANCE
+ .
+ 3.1 The Licensee shall be deemed as having accepted the terms and
+ conditions of this Agreement upon the occurrence of the first of the
+ following events:
+ .
+     * (i) loading the Software by any or all means, notably, by
+       downloading from a remote server, or by loading from a physical
+       medium;
+     * (ii) the first time the Licensee exercises any of the rights
+       granted hereunder.
+ .
+ 3.2 One copy of the Agreement, containing a notice relating to the
+ characteristics of the Software, to the limited warranty, and to the
+ fact that its use is restricted to experienced users has been provided
+ to the Licensee prior to its acceptance as set forth in Article 3.1
+ hereinabove, and the Licensee hereby acknowledges that it has read and 
+ understood it.
+ .
+ .
+     Article 4 - EFFECTIVE DATE AND TERM
+ .
+ .
+       4.1 EFFECTIVE DATE
+ .
+ The Agreement shall become effective on the date when it is accepted by
+ the Licensee as set forth in Article 3.1.
+ .
+ .
+       4.2 TERM
+ .
+ The Agreement shall remain in force for the entire legal term of
+ protection of the economic rights over the Software.
+ .
+ .
+     Article 5 - SCOPE OF RIGHTS GRANTED
+ .
+ The Licensor hereby grants to the Licensee, who accepts, the following
+ rights over the Software for any or all use, and for the term of the
+ Agreement, on the basis of the terms and conditions set forth hereinafter.
+ .
+ Besides, if the Licensor owns or comes to own one or more patents
+ protecting all or part of the functions of the Software or of its
+ components, the Licensor undertakes not to enforce the rights granted by
+ these patents against successive Licensees using, exploiting or
+ modifying the Software. If these patents are transferred, the Licensor
+ undertakes to have the transferees subscribe to the obligations set
+ forth in this paragraph.
+ .
+ .
+       5.1 RIGHT OF USE
+ .
+ The Licensee is authorized to use the Software, without any limitation
+ as to its fields of application, with it being hereinafter specified
+ that this comprises:
+ .
+    1. permanent or temporary reproduction of all or part of the Software
+       by any or all means and in any or all form.
+    2. loading, displaying, running, or storing the Software on any or
+       all medium.
+    3. entitlement to observe, study or test its operation so as to
+       determine the ideas and principles behind any or all constituent
+       elements of said Software. This shall apply when the Licensee
+       carries out any or all loading, displaying, running, transmission
+       or storage operation as regards the Software, that it is entitled
+       to carry out hereunder.
+ .
+ .
+       5.2 RIGHT OF MODIFICATION
+ .
+ The right of modification includes the right to translate, adapt, arrange, 
+ or make any or all modifications to the Software, and the right to 
+ reproduce the resulting Software. It includes, in particular, the right 
+ to create a Derivative Software. 
+ .
+ The Licensee is authorized to make any or all modification to the
+ Software provided that it includes an explicit notice that it is the
+ author of said modification and indicates the date of the creation thereof.
+ .
+ .
+       5.3 RIGHT OF DISTRIBUTION
+ .
+ In particular, the right of distribution includes the right to publish,
+ transmit and communicate the Software to the general public on any or
+ all medium, and by any or all means, and the right to market, either in
+ consideration of a fee, or free of charge, one or more copies of the
+ Software by any means.
+ .
+ The Licensee is further authorized to distribute copies of the modified
+ or unmodified Software to third parties according to the terms and
+ conditions set forth hereinafter.
+ .
+ .
+         5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION
+ .
+ The Licensee is authorized to distribute true copies of the Software in
+ Source Code or Object Code form, provided that said distribution
+ complies with all the provisions of the Agreement and is accompanied by:
+ .
+    1. a copy of the Agreement,
+ .
+    2. a notice relating to the limitation of both the Licensor's
+       warranty and liability as set forth in Articles 8 and 9,
+ .
+ and that, in the event that only the Object Code of the Software is
+ redistributed, the Licensee allows effective access to the full Source Code
+ of the Software at a minimum during the entire period of its distribution 
+ of the Software, it being understood that the additional cost of acquiring 
+ the Source Code shall not exceed the cost of transferring the data.
+ .
+ .
+         5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE
+ .
+ When the Licensee makes an Integrated Contribution to the Software, the terms
+ and conditions for the distribution of the resulting Modified Software become
+ subject to all the provisions of this Agreement. 
+ .
+ The Licensee is authorized to distribute the Modified Software, in source
+ code or object code form, provided that said distribution complies with all
+ the provisions of the Agreement and is accompanied by: 
+ .
+    1. a copy of the Agreement,
+    2. a notice relating to the limitation of both the Licensor's warranty and
+       liability as set forth in Articles 8 and 9, 
+ .
+ and that, in the event that only the object code of the Modified Software is
+ redistributed, the Licensee allows effective access to the full source code
+ of the Modified Software at a minimum during the entire period of its
+ distribution of the Modified Software, it being understood that the
+ additional cost of acquiring the source code shall not exceed the cost of
+ transferring the data. 
+ .
+         5.3.3 DISTRIBUTION OF DERIVATIVE SOFTWARE
+ .
+ When the Licensee creates Derivative Software, this Derivative Software may
+ be distributed under a license agreement other than this Agreement, subject
+ to compliance with the requirement to include a notice concerning the rights
+ over the Software as defined in Article 6.4. In the event the creation of the
+ Derivative Software required modification of the Source Code, the Licensee
+ undertakes that: 
+ .
+    1. the resulting Modified Software will be governed by this Agreement,
+    2. the Integrated Contributions in the resulting Modified Software will be
+       clearly identified and documented, 
+    3. the Licensee will allow effective access to the source code of the
+       Modified Software, at a minimum during the entire period of
+       distribution of the Derivative Software, such that such modifications
+       may be carried over in a subsequent version of the Software; it being
+       understood that the additional cost of purchasing the source code of
+       the Modified Software shall not exceed the cost of transferring the
+       data.  
+ .
+ .
+         5.3.4 COMPATIBILITY WITH THE CeCILL LICENSE
+ .
+ When a Modified Software contains an Integrated Contribution subject to the
+ CeCill license agreement, or when a Derivative Software contains a Related
+ Module subject to the CeCill license agreement, the provisions set forth in
+ the third item of Article 6.4 are optional. 
+ .
+ .
+     Article 6 - INTELLECTUAL PROPERTY
+ .
+ .
+       6.1 OVER THE INITIAL SOFTWARE
+ .
+ The Holder owns the economic rights over the Initial Software. Any or
+ all use of the Initial Software is subject to compliance with the terms
+ and conditions under which the Holder has elected to distribute its work
+ and no one shall be entitled to modify the terms and conditions for the
+ distribution of said Initial Software.
+ .
+ The Holder undertakes that the Initial Software will remain ruled at
+ least by the current license, for the duration set forth in Article 4.2.
+ .
+ .
+       6.2 OVER THE INTEGRATED CONTRIBUTIONS
+ .
+ A Licensee who develops an Integrated Contribution is the owner of the
+ intellectual property rights over this Contribution as defined by 
+ applicable law. 
+ .
+ .
+       6.3 OVER THE RELATED MODULES
+ .
+ A Licensee who develops an Related Module is the owner of the
+ intellectual property rights over this Related Module as defined by
+ applicable law and is free to choose the type of agreement that shall
+ govern its distribution under the conditions defined in Article 5.3.3.
+ .
+ .
+       6.4 NOTICE OF RIGHTS
+ .
+ The Licensee expressly undertakes:
+ .
+    1. not to remove, or modify, in any manner, the intellectual property
+       notices attached to the Software;
+    2. to reproduce said notices, in an identical manner, in the copies
+       of the Software modified or not;
+    3. to ensure that use of the Software, its intellectual property 
+       notices and the fact that it is governed by the Agreement is 
+       indicated in a text that is easily accessible, specifically from 
+       the interface of any Derivative Software. 
+ .
+ The Licensee undertakes not to directly or indirectly infringe the
+ intellectual property rights of the Holder and/or Contributors on the
+ Software and to take, where applicable, vis-à-vis its staff, any and all
+ measures required to ensure respect of said intellectual property rights
+ of the Holder and/or Contributors.
+ .
+ .
+     Article 7 - RELATED SERVICES
+ .
+ 7.1 Under no circumstances shall the Agreement oblige the Licensor to
+ provide technical assistance or maintenance services for the Software.
+ .
+ However, the Licensor is entitled to offer this type of services. The
+ terms and conditions of such technical assistance, and/or such
+ maintenance, shall be set forth in a separate instrument. Only the
+ Licensor offering said maintenance and/or technical assistance services
+ shall incur liability therefor.
+ .
+ 7.2 Similarly, any Licensor is entitled to offer to its licensees, under
+ its sole responsibility, a warranty, that shall only be binding upon
+ itself, for the redistribution of the Software and/or the Modified
+ Software, under terms and conditions that it is free to decide. Said
+ warranty, and the financial terms and conditions of its application,
+ shall be subject of a separate instrument executed between the Licensor
+ and the Licensee.
+ .
+ .
+     Article 8 - LIABILITY
+ .
+ 8.1 Subject to the provisions of Article 8.2, the Licensee shall be
+ entitled to claim compensation for any direct loss it may have suffered
+ from the Software as a result of a fault on the part of the relevant
+ Licensor, subject to providing evidence thereof.
+ .
+ 8.2 The Licensor's liability is limited to the commitments made under
+ this Agreement and shall not be incurred as a result of in particular:
+ (i) loss due the Licensee's total or partial failure to fulfill its
+ obligations, (ii) direct or consequential loss that is suffered by the
+ Licensee due to the use or performance of the Software, and (iii) more
+ generally, any consequential loss. In particular the Parties expressly
+ agree that any or all pecuniary or business loss (i.e. loss of data,
+ loss of profits, operating loss, loss of customers or orders,
+ opportunity cost, any disturbance to business activities) or any or all
+ legal proceedings instituted against the Licensee by a third party,
+ shall constitute consequential loss and shall not provide entitlement to
+ any or all compensation from the Licensor.
+ .
+ .
+     Article 9 - WARRANTY
+ .
+ 9.1 The Licensee acknowledges that the scientific and technical
+ state-of-the-art when the Software was distributed did not enable all
+ possible uses to be tested and verified, nor for the presence of
+ possible defects to be detected. In this respect, the Licensee's
+ attention has been drawn to the risks associated with loading, using,
+ modifying and/or developing and reproducing the Software which are
+ reserved for experienced users.
+ .
+ The Licensee shall be responsible for verifying, by any or all means,
+ the suitability of the product for its requirements, its good working order,
+ and for ensuring that it shall not cause damage to either persons or
+ properties.
+ .
+ 9.2 The Licensor hereby represents, in good faith, that it is entitled
+ to grant all the rights over the Software (including in particular the
+ rights set forth in Article 5).
+ .
+ 9.3 The Licensee acknowledges that the Software is supplied "as is" by
+ the Licensor without any other express or tacit warranty, other than
+ that provided for in Article 9.2 and, in particular, without any warranty
+ as to its commercial value, its secured, safe, innovative or relevant 
+ nature.
+ .
+ Specifically, the Licensor does not warrant that the Software is free
+ from any error, that it will operate without interruption, that it will
+ be compatible with the Licensee's own equipment and software
+ configuration, nor that it will meet the Licensee's requirements.
+ .
+ 9.4 The Licensor does not either expressly or tacitly warrant that the
+ Software does not infringe any third party intellectual property right
+ relating to a patent, software or any other property right. Therefore,
+ the Licensor disclaims any and all liability towards the Licensee
+ arising out of any or all proceedings for infringement that may be
+ instituted in respect of the use, modification and redistribution of the
+ Software. Nevertheless, should such proceedings be instituted against
+ the Licensee, the Licensor shall provide it with technical and legal
+ assistance for its defense. Such technical and legal assistance shall be
+ decided on a case-by-case basis between the relevant Licensor and the
+ Licensee pursuant to a memorandum of understanding. The Licensor
+ disclaims any and all liability as regards the Licensee's use of the
+ name of the Software. No warranty is given as regards the existence of
+ prior rights over the name of the Software or as regards the existence
+ of a trademark.
+ .
+ .
+     Article 10 - TERMINATION
+ .
+ 10.1 In the event of a breach by the Licensee of its obligations
+ hereunder, the Licensor may automatically terminate this Agreement
+ thirty (30) days after notice has been sent to the Licensee and has
+ remained ineffective.
+ .
+ 10.2 A Licensee whose Agreement is terminated shall no longer be
+ authorized to use, modify or distribute the Software. However, any
+ licenses that it may have granted prior to termination of the Agreement
+ shall remain valid subject to their having been granted in compliance
+ with the terms and conditions hereof.
+ .
+ .
+     Article 11 - MISCELLANEOUS
+ .
+ .
+       11.1 EXCUSABLE EVENTS
+ .
+ Neither Party shall be liable for any or all delay, or failure to
+ perform the Agreement, that may be attributable to an event of force
+ majeure, an act of God or an outside cause, such as defective
+ functioning or interruptions of the electricity or telecommunications
+ networks, network paralysis following a virus attack, intervention by
+ government authorities, natural disasters, water damage, earthquakes,
+ fire, explosions, strikes and labor unrest, war, etc.
+ .
+ 11.2 Any failure by either Party, on one or more occasions, to invoke
+ one or more of the provisions hereof, shall under no circumstances be
+ interpreted as being a waiver by the interested Party of its right to
+ invoke said provision(s) subsequently.
+ .
+ 11.3 The Agreement cancels and replaces any or all previous agreements,
+ whether written or oral, between the Parties and having the same
+ purpose, and constitutes the entirety of the agreement between said
+ Parties concerning said purpose. No supplement or modification to the
+ terms and conditions hereof shall be effective as between the Parties
+ unless it is made in writing and signed by their duly authorized
+ representatives.
+ .
+ 11.4 In the event that one or more of the provisions hereof were to
+ conflict with a current or future applicable act or legislative text,
+ said act or legislative text shall prevail, and the Parties shall make
+ the necessary amendments so as to comply with said act or legislative
+ text. All other provisions shall remain effective. Similarly, invalidity
+ of a provision of the Agreement, for any reason whatsoever, shall not
+ cause the Agreement as a whole to be invalid.
+ .
+ .
+       11.5 LANGUAGE
+ .
+ The Agreement is drafted in both French and English and both versions
+ are deemed authentic.
+ .
+ .
+     Article 12 - NEW VERSIONS OF THE AGREEMENT
+ .
+ 12.1 Any person is authorized to duplicate and distribute copies of this
+ Agreement.
+ .
+ 12.2 So as to ensure coherence, the wording of this Agreement is
+ protected and may only be modified by the authors of the License, who
+ reserve the right to periodically publish updates or new versions of the
+ Agreement, each with a separate number. These subsequent versions may
+ address new issues encountered by Free Software.
+ .
+ 12.3 Any Software distributed under a given version of the Agreement
+ may only be subsequently distributed under the same version of the
+ Agreement or a subsequent version.
+ .
+ .
+     Article 13 - GOVERNING LAW AND JURISDICTION
+ .
+ 13.1 The Agreement is governed by French law. The Parties agree to
+ endeavor to seek an amicable solution to any disagreements or disputes
+ that may arise during the performance of the Agreement.
+ .
+ 13.2 Failing an amicable solution within two (2) months as from their
+ occurrence, and unless emergency proceedings are necessary, the
+ disagreements or disputes shall be referred to the Paris Courts having
+ jurisdiction, by the more diligent Party.
+ .
+ .
+ Version 1.0 dated 2006-07-12.
+
diff --git a/debian/patches/20_include_ltiffxx.patch b/debian/patches/20_include_ltiffxx.patch
new file mode 100644
index 0000000..c217082
--- /dev/null
+++ b/debian/patches/20_include_ltiffxx.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Wed, 15 Jan 2014 14:03:50 +0100
+Description: examples also need -ltiffxx
+
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -182,7 +182,7 @@ CIMG_JPEG_LIBS = -ljpeg
+ # Flags to enable native support for TIFF image files, using the TIFF library.
+ # ( http://www.libtiff.org/ )
+ CIMG_TIFF_CFLAGS = -Dcimg_use_tiff
+-CIMG_TIFF_LIBS = -ltiff
++CIMG_TIFF_LIBS = -ltiff -ltiffxx
+ 
+ # Flags to enable native support for MINC2 image files, using the MINC2 library.
+ # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide )
diff --git a/debian/patches/30_do_not_build_minc2_examples.patch b/debian/patches/30_do_not_build_minc2_examples.patch
new file mode 100644
index 0000000..4e7095f
--- /dev/null
+++ b/debian/patches/30_do_not_build_minc2_examples.patch
@@ -0,0 +1,19 @@
+Author: Andreas Tille <tille at debian.org>
+Description: Do not build minc format file examples
+ There seems to be some change in parallel to cimg-dev 1.5 in minc library which leads to
+   ../CImg.h:298:35: fatal error: minc_io_simple_volume.h: No such file or directory
+ if this is not commented out
+
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -186,8 +186,8 @@ CIMG_TIFF_LIBS = -ltiff -ltiffxx
+ 
+ # Flags to enable native support for MINC2 image files, using the MINC2 library.
+ # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide )
+-CIMG_MINC2_CFLAGS = -Dcimg_use_minc2 -I${HOME}/local/include
+-CIMG_MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz -L${HOME}/local/lib
++# CIMG_MINC2_CFLAGS = -Dcimg_use_minc2 -I${HOME}/local/include
++# CIMG_MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz -L${HOME}/local/lib
+ 
+ # Flags to enable native support for EXR image files, using the OpenEXR library.
+ # ( http://www.openexr.com/ )
diff --git a/debian/patches/fix_privacy_breach.patch b/debian/patches/fix_privacy_breach.patch
new file mode 100644
index 0000000..4221532
--- /dev/null
+++ b/debian/patches/fix_privacy_breach.patch
@@ -0,0 +1,66 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Updated: Mon, 13 Jul 2015 18:39:15 +0200
+Description: Do not link to extern images - use local ones instead
+
+--- a/html/header.html
++++ b/html/header.html
+@@ -4,7 +4,7 @@
+     <title>The CImg Library - C++ Template Image Processing Toolkit</title>
+     <meta content="David Tschumperle" name="author"></meta>
+     <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
+-    <link rel="shortcut icon" type="image/x-icon" href="http://cimg.eu/favicon.ico"></link>
++    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"></link>
+     <link rel="icon" type="image/png" href="favicon.png"></link>
+     <link href="style.css" rel="stylesheet" type="text/css" />
+     <style type="text/css">
+@@ -43,7 +43,7 @@
+       <tr bgcolor="#FFFFFF"><td>
+           <center>
+             <br/><br/>
+-            <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
++            <a href="http://cimg.eu"><img src="img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
+           </center>
+           <center><font size="-1" color="#777777">
+               Latest stable version: <b><a href="http://cimg.eu/files">1.6.4</a></b>
+--- a/html/header_reference.html
++++ b/html/header_reference.html
+@@ -3,7 +3,7 @@
+     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
+     <title>The CImg Library - C++ Template Image Processing Toolkit</title>
+     <meta content="David Tschumperle" name="author"></meta>
+-    <link rel="shortcut icon" type="image/x-icon" href="http://cimg.eu/favicon.ico"></link>
++    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"></link>
+     <link rel="icon" type="image/png" href="favicon.png"></link>
+     <link href="doxygen.css" rel="stylesheet" type="text/css">
+     <link href="tabs.css" rel="stylesheet" type="text/css">
+@@ -42,7 +42,7 @@
+       <tr bgcolor="#FFFFFF"><td>
+           <center>
+             <br/><br/>
+-            <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
++            <a href="http://cimg.eu"><img src="img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
+           </center>
+           <center><font size="-1">Current stable version: <b><a href="http://cimg.eu/files">1.6.3</a></b></font><br/><br/></center>
+       </td></tr>
+--- a/html/footer.html
++++ b/html/footer.html
+@@ -8,7 +8,7 @@
+       <br/>
+ 
+       <center>
+-        <a href="https://sourceforge.net/p/cimg/donate/"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" /></a>
++        <a href="https://sourceforge.net/p/cimg/donate/">Support This Project</a>
+       </center>
+ 
+   </div></div><div id="footer"><img alt="" src="images/footer.jpg" />
+--- a/html/footer_reference.html
++++ b/html/footer_reference.html
+@@ -11,7 +11,7 @@
+       <br/>
+ 
+       <center>
+-        <a href="https://sourceforge.net/p/cimg/donate/"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" /></a>
++        <a href="https://sourceforge.net/p/cimg/donate/">Support This Project</a>
+       </center>
+   </td></tr></table>
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4cb9fc3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+20_include_ltiffxx.patch
+30_do_not_build_minc2_examples.patch
+use_pkg-config.patch
+fix_privacy_breach.patch
diff --git a/debian/patches/use_pkg-config.patch b/debian/patches/use_pkg-config.patch
new file mode 100644
index 0000000..6797a0a
--- /dev/null
+++ b/debian/patches/use_pkg-config.patch
@@ -0,0 +1,19 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Updated: Mon, 15 Sep 2014 17:16:57 +0200
+Bug-Debian: http://bugs.debian.org/761564
+Description: Newer imagemagick version does not supply Magick++-config
+ command any more but pkg-config can be used instead
+
+--- a/examples/Makefile
++++ b/examples/Makefile
+@@ -211,8 +211,8 @@ CIMG_CURL_LIBS = -lcurl
+ 
+ # Flags to enable native support of most classical image file formats, using the Magick++ library.
+ # ( http://www.imagemagick.org/Magick++/ )
+-CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `Magick++-config --cppflags` `Magick++-config --cxxflags`
+-CIMG_MAGICK_LIBS = `Magick++-config --ldflags` `Magick++-config --libs`
++CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `pkg-config --cflags Magick++`
++CIMG_MAGICK_LIBS = `pkg-config --libs Magick++`
+ 
+ # Flags to enable faster Discrete Fourier Transform computation, using the FFTW3 library
+ # ( http://www.fftw.org/ )
diff --git a/debian/remove_privacy_violating_js_code b/debian/remove_privacy_violating_js_code
new file mode 100755
index 0000000..e513122
--- /dev/null
+++ b/debian/remove_privacy_violating_js_code
@@ -0,0 +1,27 @@
+#!/bin/sh
+# remove code violating user privacy
+
+if [ $# -ne 1 ] ; then
+    echo "Usage: $0 <file>"
+    exit 1
+fi
+if [ ! -e $1 ] ; then
+    echo "File $1 not found"
+    exit 1
+fi
+sed -i -e '/<\!-- Start of StatCounter Code -->/,/<\!-- End Google Analytics -->/d' \
+       -e '/<script type="text\/javascript">/{;N;s/\n//;}' \
+       -e "/flattr_btn='compact'/{;N;s/\n//;}" \
+       -e '/<script type="text\/javascript">.*flattr_url/,/lattr_btn.*<\/script>/d' \
+       -e '/<script src="http:\/\/api.flattr.com\/button\/load.js.*javascript"><\/script>/d' \
+       -e '/<a href="http:\/\/sourceforge.net\/donate\/index.php?group_id=[0-9]\+"><img src="http:\/\/images.sourceforge.net\/images\/project-support.jpg".* alt="Support This Project".*a>/d' \
+       -e '/<link rel="shortcut icon" type="image\/x-icon" href="http:\/\/cimg.sourceforge.net\/favicon.ico"><\/link>/d' \
+       -e 's/<img src="http:\/\/sourceforge.net\/sflogo.php[^>]\+><\/img>/SourceForge/' \
+    $1
+
+# use local logo
+INSERT=""
+if echo $1 | grep -q 'reference/[^/]\+$' ; then
+    INSERT="../"
+fi
+sed -i "s?http://cimg.sourceforge.net/img/CImgLogo2.jpg?${INSERT}CImgLogo2.jpg?" $1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..27adf16
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules for cimg-dev package
+# GNU copyright 2009 Andreas Tille <tille at debian.org>
+
+pkg=cimg-dev
+examples=cimg-examples
+doc=cimg-doc
+
+%:
+	dh $@
+
+override_dh_compress:
+	dh_compress --exclude=.shtml \
+	            --exclude=.pdf \
+	            --exclude=.h \
+	            --exclude=.cpp \
+	            --exclude=.bmp \
+	            --exclude=.pgm \
+	            --exclude=.ppm \
+	            --exclude=Makefile \
+	            --exclude=.raw \
+	            --exclude=.gmic
+
+override_dh_installdocs:
+	dh_installdocs
+	find debian/cimg-doc -type f -name "*.html" -exec debian/remove_privacy_violating_js_code \{\} \;
+
+override_dh_auto_test:
+	cd examples && $(MAKE) Mlinux "LDFLAGS=-lm -lpthread -lHalf"
+	# After test build of examples remove remaining object files
+	cd examples && $(MAKE) clean
+
+CHANGEFILES=gaussian_fit1d.cpp \
+            use_RGBclass.cpp
+
+override_dh_clean:
+	dh_clean
+	rm -rf html/latex html/reference html/doxygen_sqlite3.db
+
+override_dh_auto_build:
+	dh_auto_build
+	cd html && doxygen CImg.doxygen && cd latex && make || true
+	# autogenerated makefile lacks a final pdflatex call to get references right (that's why the above '|| true')
+	cd html/latex && pdflatex refman
+
+override_dh_install:
+	dh_install
+	# In gaussian_fit1d.cpp the files is included into itself and thus the current directory needs to be in include path
+	cd debian/$(examples)/usr/share/doc/$(pkg)/examples; \
+	    sed -i 's?\(CFLAGS[[:space:]=]*-I\)\.\. -Wall -W?\1`pwd` -Wall -W?' Makefile; \
+	    for file in $(CHANGEFILES) ; do \
+		sed -i "s?#define cimg_plugin \"examples/$$file\"?#define cimg_plugin \"$$file\"?" $$file ; \
+	    done
+	mv html/reference/* debian/$(doc)/usr/share/doc/cimg-dev/html
+
+override_dh_auto_clean:
+	-cd examples && $(MAKE) clean
+	dh_clean 
+
+get-orig-source:
+	uscan --verbose --repack --force-download --compression xz
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..43cd332
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g" \
+  https://github.com/dtschump/CImg/releases .*/archive/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cimg.git



More information about the debian-science-commits mailing list