[freeimage] 29/47: Imported Debian patch 3.15.1-1

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Sep 26 22:27:30 UTC 2015


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

ghisvail-guest pushed a commit to branch master
in repository freeimage.

commit 1b076ac332088b2d85cf63fea6c3cc17638525ff
Merge: 4967f98 1f4a1ce
Author: Evan Broder <evan at ebroder.net>
Date:   Sun Dec 4 21:46:11 2011 -0800

    Imported Debian patch 3.15.1-1

 Examples/Linux/Makefile                            |    11 +-
 Examples/Linux/linux-gtk.c                         |     9 +-
 Examples/OpenGL/TextureManager/TextureManager.cpp  |   145 +
 Examples/OpenGL/TextureManager/TextureManager.h    |    51 +
 Examples/OpenGL/TextureManager/readme.txt          |    31 +
 FreeImage.2003.sln                                 |    10 +
 FreeImage.2003.vcproj                              |    45 +-
 FreeImage.2005.sln                                 |    61 +-
 FreeImage.2005.vcproj                              |   257 +-
 FreeImage.2008.sln                                 |   160 +
 FreeImage.2008.vcproj                              |   854 +
 FreeImage.rc                                       |    10 +-
 Makefile                                           |     3 +
 Makefile.cygwin                                    |     2 +-
 Makefile.fip                                       |    27 +-
 Makefile.gnu                                       |    24 +-
 Makefile.iphone                                    |    93 +
 Makefile.mingw                                     |   123 +
 Makefile.osx                                       |    43 +-
 Makefile.srcs                                      |     8 +-
 README.iphone                                      |    11 +
 README.minGW                                       |   243 +-
 README.osx                                         |    12 -
 Source/CacheFile.h                                 |     2 +-
 Source/DeprecationManager/Deprecated.cpp           |    36 +
 Source/DeprecationManager/DeprecationMgr.h         |    20 +-
 Source/FreeImage.h                                 |   120 +-
 Source/FreeImage/BitmapAccess.cpp                  |   323 +-
 Source/FreeImage/CacheFile.cpp                     |     7 +-
 Source/FreeImage/Conversion.cpp                    |   344 +-
 Source/FreeImage/Conversion16_555.cpp              |   127 +-
 Source/FreeImage/Conversion16_565.cpp              |   130 +-
 Source/FreeImage/Conversion24.cpp                  |   104 +-
 Source/FreeImage/Conversion32.cpp                  |   266 +-
 Source/FreeImage/Conversion4.cpp                   |    27 +-
 Source/FreeImage/Conversion8.cpp                   |    52 +-
 Source/FreeImage/ConversionFloat.cpp               |   192 +
 Source/FreeImage/ConversionRGB16.cpp               |   144 +
 Source/FreeImage/ConversionRGBF.cpp                |   145 +-
 Source/FreeImage/ConversionType.cpp                |   266 +-
 Source/FreeImage/ConversionUINT16.cpp              |   134 +
 Source/FreeImage/FreeImage.cpp                     |    16 +-
 Source/FreeImage/FreeImageIO.cpp                   |     8 +-
 Source/FreeImage/GetType.cpp                       |    16 +-
 Source/FreeImage/Halftoning.cpp                    |    14 +-
 Source/FreeImage/J2KHelper.cpp                     |    12 +-
 Source/FreeImage/MemoryIO.cpp                      |    13 +-
 Source/FreeImage/MultiPage.cpp                     |   563 +-
 Source/FreeImage/NNQuantizer.cpp                   |     2 +-
 Source/FreeImage/PSDParser.cpp                     |  1052 +
 Source/FreeImage/PSDParser.h                       |   271 +
 Source/FreeImage/PixelAccess.cpp                   |    17 +-
 Source/FreeImage/Plugin.cpp                        |    64 +-
 Source/FreeImage/PluginBMP.cpp                     |   345 +-
 Source/FreeImage/PluginCUT.cpp                     |    87 +-
 Source/FreeImage/PluginDDS.cpp                     |    12 +-
 Source/FreeImage/PluginEXR.cpp                     |   497 +-
 Source/FreeImage/PluginG3.cpp                      |     6 +-
 Source/FreeImage/PluginGIF.cpp                     |    75 +-
 Source/FreeImage/PluginHDR.cpp                     |    87 +-
 Source/FreeImage/PluginICO.cpp                     |    95 +-
 Source/FreeImage/PluginJ2K.cpp                     |     5 +-
 Source/FreeImage/PluginJP2.cpp                     |     5 +-
 Source/FreeImage/PluginJPEG.cpp                    |   522 +-
 Source/FreeImage/PluginMNG.cpp                     |   123 +-
 Source/FreeImage/PluginPCD.cpp                     |   112 +-
 Source/FreeImage/PluginPCX.cpp                     |   408 +-
 Source/FreeImage/PluginPFM.cpp                     |   402 +
 Source/FreeImage/PluginPICT.cpp                    |  1342 +
 Source/FreeImage/PluginPNG.cpp                     |   272 +-
 Source/FreeImage/PluginPNM.cpp                     |   150 +-
 Source/FreeImage/PluginPSD.cpp                     |   362 +-
 Source/FreeImage/PluginRAS.cpp                     |   392 +-
 Source/FreeImage/PluginRAW.cpp                     |   543 +
 Source/FreeImage/PluginSGI.cpp                     |    51 +-
 Source/FreeImage/PluginTARGA.cpp                   |  2136 +-
 Source/FreeImage/PluginTIFF.cpp                    |  1685 +-
 Source/FreeImage/PluginWBMP.cpp                    |    11 +-
 Source/FreeImage/PluginXBM.cpp                     |     2 +-
 Source/FreeImage/PluginXPM.cpp                     |    35 +-
 Source/FreeImage/TIFFLogLuv.cpp                    |    65 +
 Source/FreeImage/ToneMapping.cpp                   |     2 +-
 Source/FreeImage/WuQuantizer.cpp                   |    47 +-
 Source/FreeImage/ZLibInterface.cpp                 |     6 +-
 Source/FreeImage/tmoColorConvert.cpp               |    98 +-
 Source/FreeImage/tmoDrago03.cpp                    |    57 +-
 Source/FreeImage/tmoFattal02.cpp                   |   148 +-
 Source/FreeImage/tmoReinhard05.cpp                 |   158 +-
 Source/FreeImageLib/FreeImageLib.2003.vcproj       |    47 +-
 Source/FreeImageLib/FreeImageLib.2005.vcproj       |   210 +-
 Source/FreeImageLib/FreeImageLib.2008.vcproj       |   772 +
 Source/FreeImageToolkit/BSplineRotate.cpp          |    12 +-
 Source/FreeImageToolkit/Background.cpp             |   895 +
 Source/FreeImageToolkit/Channels.cpp               |   298 +-
 Source/FreeImageToolkit/ClassicRotate.cpp          |   904 +-
 Source/FreeImageToolkit/Colors.cpp                 |   166 +-
 Source/FreeImageToolkit/CopyPaste.cpp              |   137 +-
 Source/FreeImageToolkit/Display.cpp                |    13 +-
 Source/FreeImageToolkit/Flip.cpp                   |    55 +-
 Source/FreeImageToolkit/JPEGTransform.cpp          |   152 +-
 Source/FreeImageToolkit/MultigridPoissonSolver.cpp |    12 +-
 Source/FreeImageToolkit/Rescale.cpp                |    30 +-
 Source/LibJPEG/LibJPEG.2003.vcproj                 |    24 +-
 Source/LibJPEG/LibJPEG.2005.vcproj                 |   188 +-
 Source/LibJPEG/LibJPEG.2008.vcproj                 |   570 +
 Source/LibJPEG/README                              |   326 +
 Source/LibJPEG/ansi2knr.c                          |   514 +-
 Source/LibJPEG/cderror.h                           |     2 +
 Source/LibJPEG/cdjpeg.h                            |     5 +-
 Source/LibJPEG/change.log                          |   109 +
 Source/LibJPEG/cjpeg.c                             |    69 +-
 Source/LibJPEG/ckconfig.c                          |     2 +-
 Source/LibJPEG/coderules.txt                       |   118 +
 Source/LibJPEG/djpeg.c                             |     3 +-
 Source/LibJPEG/example.c                           |    12 +-
 Source/LibJPEG/filelist.txt                        |   215 +
 Source/LibJPEG/install.txt                         |  1096 +
 Source/LibJPEG/jaricom.c                           |   153 +
 Source/LibJPEG/jcapimin.c                          |    10 +-
 Source/LibJPEG/jcarith.c                           |   934 +
 Source/LibJPEG/jccoefct.c                          |    24 +-
 Source/LibJPEG/jcdctmgr.c                          |   489 +-
 Source/LibJPEG/jchuff.c                            |  1013 +-
 Source/LibJPEG/jchuff.h                            |    47 -
 Source/LibJPEG/jcinit.c                            |    15 +-
 Source/LibJPEG/jcmainct.c                          |    14 +-
 Source/LibJPEG/jcmarker.c                          |   132 +-
 Source/LibJPEG/jcmaster.c                          |   340 +-
 Source/LibJPEG/jconfig.txt                         |   164 +
 Source/LibJPEG/jcparam.c                           |    72 +-
 Source/LibJPEG/jcphuff.c                           |   833 -
 Source/LibJPEG/jcprepct.c                          |    14 +-
 Source/LibJPEG/jcsample.c                          |    94 +-
 Source/LibJPEG/jctrans.c                           |    24 +-
 Source/LibJPEG/jdapimin.c                          |   111 +-
 Source/LibJPEG/jdapistd.c                          |     2 +-
 Source/LibJPEG/jdarith.c                           |   772 +
 Source/LibJPEG/jdatadst.c                          |   122 +-
 Source/LibJPEG/jdatasrc.c                          |    83 +-
 Source/LibJPEG/jdcoefct.c                          |    14 +-
 Source/LibJPEG/jdct.h                              |   239 +-
 Source/LibJPEG/jddctmgr.c                          |   181 +-
 Source/LibJPEG/jdhuff.c                            |  1168 +-
 Source/LibJPEG/jdhuff.h                            |   201 -
 Source/LibJPEG/jdinput.c                           |   378 +-
 Source/LibJPEG/jdmainct.c                          |    42 +-
 Source/LibJPEG/jdmarker.c                          |    74 +-
 Source/LibJPEG/jdmaster.c                          |   104 +-
 Source/LibJPEG/jdmerge.c                           |   626 +-
 Source/LibJPEG/jdphuff.c                           |   668 -
 Source/LibJPEG/jdsample.c                          |   147 +-
 Source/LibJPEG/jdtrans.c                           |    19 +-
 Source/LibJPEG/jerror.c                            |     4 +
 Source/LibJPEG/jerror.h                            |    18 +-
 Source/LibJPEG/jfdctflt.c                          |    48 +-
 Source/LibJPEG/jfdctfst.c                          |    48 +-
 Source/LibJPEG/jfdctint.c                          |  4269 ++-
 Source/LibJPEG/jidctflt.c                          |    57 +-
 Source/LibJPEG/jidctfst.c                          |  1284 +-
 Source/LibJPEG/jidctint.c                          |  5524 +++-
 Source/LibJPEG/jidctred.c                          |   398 -
 Source/LibJPEG/jmorecfg.h                          |    48 +-
 Source/LibJPEG/jpegint.h                           |    43 +-
 Source/LibJPEG/jpeglib.h                           |   111 +-
 Source/LibJPEG/jpegtran.c                          |    40 +-
 Source/LibJPEG/jutils.c                            |    52 +
 Source/LibJPEG/jversion.h                          |     6 +-
 Source/LibJPEG/libjpeg.txt                         |  3084 ++
 Source/LibJPEG/rdbmp.c                             |    57 +-
 Source/LibJPEG/rdjpgcom.c                          |    33 +-
 Source/LibJPEG/rdppm.c                             |    17 +-
 Source/LibJPEG/rdswitch.c                          |    39 +-
 Source/LibJPEG/structure.txt                       |   945 +
 Source/LibJPEG/transupp.c                          |   170 +-
 Source/LibJPEG/transupp.h                          |    19 +-
 Source/LibJPEG/usage.txt                           |   631 +
 Source/LibJPEG/wizard.txt                          |   211 +
 Source/LibJPEG/wrppm.c                             |     5 +-
 Source/LibMNG/Changes                              |    35 +
 Source/LibMNG/LICENSE                              |     3 +-
 Source/LibMNG/LibMNG.2005.vcproj                   |   158 +
 Source/LibMNG/LibMNG.2008.vcproj                   |   510 +
 Source/LibMNG/README                               |     5 +
 Source/LibMNG/autogen.sh                           |    50 -
 Source/LibMNG/libmng.h                             |    76 +-
 Source/LibMNG/libmng_chunk_descr.c                 |   900 +-
 Source/LibMNG/libmng_chunk_descr.h                 |    13 +-
 Source/LibMNG/libmng_chunk_io.c                    |   376 +-
 Source/LibMNG/libmng_chunk_io.h                    |    29 +-
 Source/LibMNG/libmng_chunk_prc.c                   |   160 +-
 Source/LibMNG/libmng_chunk_prc.h                   |    25 +-
 Source/LibMNG/libmng_chunk_xs.c                    |   226 +-
 Source/LibMNG/libmng_chunks.h                      |    71 +-
 Source/LibMNG/libmng_conf.h                        |     2 +-
 Source/LibMNG/libmng_data.h                        |    19 +-
 Source/LibMNG/libmng_display.c                     |   170 +-
 Source/LibMNG/libmng_display.h                     |    27 +-
 Source/LibMNG/libmng_error.c                       |    10 +-
 Source/LibMNG/libmng_hlapi.c                       |    66 +-
 Source/LibMNG/libmng_object_prc.c                  |   639 +-
 Source/LibMNG/libmng_object_prc.h                  |    54 +-
 Source/LibMNG/libmng_objects.h                     |    42 +-
 Source/LibMNG/libmng_pixels.c                      |  8850 +++--
 Source/LibMNG/libmng_pixels.h                      |    13 +-
 Source/LibMNG/libmng_prop_xs.c                     |    13 +-
 Source/LibMNG/libmng_read.c                        |    10 +-
 Source/LibMNG/libmng_trace.c                       |    37 +-
 Source/LibMNG/libmng_trace.h                       |    19 +-
 Source/LibMNG/libmng_types.h                       |    18 +-
 Source/LibMNG/libmng_write.c                       |     4 +-
 Source/LibMNG/libmng_zlib.c                        |     2 +-
 Source/LibOpenJPEG/CHANGES                         |   953 +
 Source/LibOpenJPEG/ChangeLog                       |   281 -
 Source/LibOpenJPEG/{license.txt => LICENSE}        |     0
 Source/LibOpenJPEG/LibOpenJPEG.2003.vcproj         |     6 +
 Source/LibOpenJPEG/LibOpenJPEG.2005.vcproj         |   509 +-
 Source/LibOpenJPEG/LibOpenJPEG.2008.vcproj         |  1192 +
 Source/LibOpenJPEG/bio.c                           |     2 +-
 Source/LibOpenJPEG/bio.h                           |     2 +-
 Source/LibOpenJPEG/cio.c                           |    11 +-
 Source/LibOpenJPEG/dwt.c                           |   535 +-
 Source/LibOpenJPEG/dwt.h                           |    14 +-
 Source/LibOpenJPEG/event.c                         |    14 +-
 Source/LibOpenJPEG/event.h                         |     4 +-
 Source/LibOpenJPEG/image.c                         |    12 +-
 Source/LibOpenJPEG/image.h                         |     4 +-
 Source/LibOpenJPEG/j2k.c                           |   870 +-
 Source/LibOpenJPEG/j2k.h                           |   141 +-
 Source/LibOpenJPEG/j2k_lib.c                       |    29 +-
 Source/LibOpenJPEG/j2k_lib.h                       |    27 +-
 Source/LibOpenJPEG/jp2.c                           |   708 +-
 Source/LibOpenJPEG/jp2.h                           |    65 +-
 Source/LibOpenJPEG/mct.c                           |   130 +-
 Source/LibOpenJPEG/mct.h                           |     2 +-
 Source/LibOpenJPEG/mqc.c                           |    80 +-
 Source/LibOpenJPEG/mqc.h                           |    11 +-
 Source/LibOpenJPEG/openjpeg.c                      |    80 +-
 Source/LibOpenJPEG/openjpeg.h                      |   226 +-
 Source/LibOpenJPEG/opj_config.h                    |    41 +
 Source/LibOpenJPEG/opj_includes.h                  |    40 +-
 Source/LibOpenJPEG/opj_malloc.h                    |   163 +
 Source/LibOpenJPEG/pi.c                            |   523 +-
 Source/LibOpenJPEG/pi.h                            |     8 +-
 Source/LibOpenJPEG/raw.c                           |     2 +-
 Source/LibOpenJPEG/raw.h                           |     2 +-
 Source/LibOpenJPEG/t1.c                            |   844 +-
 Source/LibOpenJPEG/t1.h                            |     6 +-
 Source/LibOpenJPEG/t1_generate_luts.c              |   570 +-
 Source/LibOpenJPEG/t1_luts.h                       |   545 +-
 Source/LibOpenJPEG/t2.c                            |   226 +-
 Source/LibOpenJPEG/t2.h                            |     9 +-
 Source/LibOpenJPEG/tcd.c                           |   364 +-
 Source/LibOpenJPEG/tcd.h                           |    50 +-
 Source/LibOpenJPEG/tgt.c                           |     2 +-
 Source/LibPNG/ANNOUNCE                             |   200 +-
 Source/LibPNG/CHANGES                              |  2816 +-
 Source/LibPNG/INSTALL                              |   140 +-
 Source/LibPNG/KNOWNBUG                             |    22 -
 Source/LibPNG/LICENSE                              |     8 +-
 Source/LibPNG/LibPNG.2003.vcproj                   |    55 +-
 Source/LibPNG/LibPNG.2005.vcproj                   |   220 +-
 Source/LibPNG/LibPNG.2008.vcproj                   |   434 +
 Source/LibPNG/README                               |   137 +-
 Source/LibPNG/TODO                                 |    13 +-
 Source/LibPNG/Y2KINFO                              |    55 -
 Source/LibPNG/configure                            |    12 +-
 Source/LibPNG/example.c                            |   854 +
 Source/LibPNG/libpng-manual.txt                    |  4479 +++
 Source/LibPNG/libpng.3                             |  3086 +-
 Source/LibPNG/libpng.txt                           |  2851 --
 Source/LibPNG/libpngpf.3                           |   776 +-
 Source/LibPNG/png.5                                |     4 +-
 Source/LibPNG/png.c                                |  2536 +-
 Source/LibPNG/png.h                                |  3820 +--
 Source/LibPNG/pngconf.h                            |  1714 +-
 Source/LibPNG/pngdebug.h                           |   157 +
 Source/LibPNG/pngerror.c                           |   609 +-
 Source/LibPNG/pnggccrd.c                           |   101 -
 Source/LibPNG/pngget.c                             |   939 +-
 Source/LibPNG/pnginfo.h                            |   269 +
 Source/LibPNG/pnglibconf.h                         |   187 +
 Source/LibPNG/pngmem.c                             |   449 +-
 Source/LibPNG/pngpread.c                           |   868 +-
 Source/LibPNG/pngpriv.h                            |  1358 +
 Source/LibPNG/pngread.c                            |  1238 +-
 Source/LibPNG/pngrio.c                             |   131 +-
 Source/LibPNG/pngrtran.c                           |  3839 ++-
 Source/LibPNG/pngrutil.c                           |  2482 +-
 Source/LibPNG/pngset.c                             |  1465 +-
 Source/LibPNG/pngstruct.h                          |   337 +
 Source/LibPNG/pngtest.c                            |  1103 +-
 Source/LibPNG/pngtrans.c                           |   486 +-
 Source/LibPNG/pngvalid.c                           |  8619 +++++
 Source/LibPNG/pngvcrd.c                            |     1 -
 Source/LibPNG/pngwio.c                             |   212 +-
 Source/LibPNG/pngwrite.c                           |  1401 +-
 Source/LibPNG/pngwtran.c                           |   239 +-
 Source/LibPNG/pngwutil.c                           |  2071 +-
 Source/LibRawLite/COPYRIGHT                        |    23 +
 Source/LibRawLite/Changelog.txt                    |  1045 +
 Source/LibRawLite/LICENSE.CDDL                     |   340 +
 Source/LibRawLite/LICENSE.LGPL                     |   458 +
 Source/LibRawLite/LibRawLite.2003.vcproj           |   190 +
 Source/LibRawLite/LibRawLite.2005.vcproj           |   396 +
 Source/LibRawLite/LibRawLite.2008.vcproj           |   401 +
 Source/LibRawLite/README                           |    28 +
 Source/LibRawLite/README.demosaic-packs            |    46 +
 Source/LibRawLite/dcraw/dcraw.c                    |  9031 +++++
 Source/LibRawLite/internal/dcb_demosaicing.c       |   703 +
 Source/LibRawLite/internal/dcraw_common.cpp        |  9199 ++++++
 Source/LibRawLite/internal/dcraw_fileio.cpp        |   240 +
 Source/LibRawLite/internal/defines.h               |   137 +
 Source/LibRawLite/internal/demosaic_packs.cpp      |    97 +
 Source/LibRawLite/internal/libraw_internal_funcs.h |   237 +
 Source/LibRawLite/internal/var_defines.h           |   204 +
 Source/LibRawLite/libraw/libraw.h                  |   269 +
 Source/LibRawLite/libraw/libraw_alloc.h            |    99 +
 Source/LibRawLite/libraw/libraw_const.h            |   163 +
 Source/LibRawLite/libraw/libraw_datastream.h       |   633 +
 Source/LibRawLite/libraw/libraw_internal.h         |   225 +
 Source/LibRawLite/libraw/libraw_types.h            |   330 +
 Source/LibRawLite/libraw/libraw_version.h          |    50 +
 Source/LibRawLite/libraw/librawwindows.h           |    91 +
 Source/LibRawLite/src/libraw_c_api.cpp             |   195 +
 Source/LibRawLite/src/libraw_cxx.cpp               |  2477 ++
 Source/LibTIFF/ChangeLog                           |  9439 +++---
 Source/LibTIFF/LibTIFF.2003.vcproj                 |     3 +
 Source/LibTIFF/LibTIFF.2005.vcproj                 |   162 +
 Source/LibTIFF/LibTIFF.2008.vcproj                 |   526 +
 Source/LibTIFF/Makefile.am                         |   286 +-
 Source/LibTIFF/Makefile.in                         |  1771 +-
 Source/LibTIFF/Makefile.vc                         |   102 -
 Source/LibTIFF/SConstruct                          |   146 +-
 Source/LibTIFF/libtiff.def                         |   140 -
 Source/LibTIFF/makefile.vc                         |     2 +-
 Source/LibTIFF/mkg3states.c                        |   902 +-
 Source/LibTIFF/mkspans.c                           |    82 +
 Source/LibTIFF/t4.h                                |   584 +-
 Source/LibTIFF/tif_acorn.c                         |  1052 +-
 Source/LibTIFF/tif_apple.c                         |   562 +-
 Source/LibTIFF/tif_atari.c                         |   500 +-
 Source/LibTIFF/tif_aux.c                           |   580 +-
 Source/LibTIFF/tif_close.c                         |   252 +-
 Source/LibTIFF/tif_codec.c                         |   320 +-
 Source/LibTIFF/tif_color.c                         |   569 +-
 Source/LibTIFF/tif_compress.c                      |   590 +-
 Source/LibTIFF/tif_config.h                        |   608 +-
 Source/LibTIFF/tif_config.h-vms                    |    92 +-
 Source/LibTIFF/tif_config.h.in                     |   618 +-
 Source/LibTIFF/tif_config.vc.h                     |   126 +-
 Source/LibTIFF/tif_config.wince.h                  |   148 +-
 Source/LibTIFF/tif_dir.c                           |  2780 +-
 Source/LibTIFF/tif_dir.h                           |   422 +-
 Source/LibTIFF/tif_dirinfo.c                       |  1772 +-
 Source/LibTIFF/tif_dirread.c                       |  4198 +--
 Source/LibTIFF/tif_dirwrite.c                      |  2850 +-
 Source/LibTIFF/tif_dumpmode.c                      |   252 +-
 Source/LibTIFF/tif_error.c                         |   160 +-
 Source/LibTIFF/tif_extension.c                     |   236 +-
 Source/LibTIFF/tif_fax3.c                          |  3252 +-
 Source/LibTIFF/tif_fax3.h                          |  1070 +-
 Source/LibTIFF/tif_fax3sm.c                        |  2520 +-
 Source/LibTIFF/tif_flush.c                         |   148 +-
 Source/LibTIFF/tif_getimage.c                      |  5356 +--
 Source/LibTIFF/tif_jbig.c                          |   770 +-
 Source/LibTIFF/tif_jpeg.c                          |  4149 +--
 Source/LibTIFF/tif_luv.c                           |  3258 +-
 Source/LibTIFF/tif_lzw.c                           |  2258 +-
 Source/LibTIFF/tif_msdos.c                         |   386 +-
 Source/LibTIFF/tif_next.c                          |   308 +-
 Source/LibTIFF/tif_ojpeg.c                         |  4886 +--
 Source/LibTIFF/tif_open.c                          |  1390 +-
 Source/LibTIFF/tif_packbits.c                      |   600 +-
 Source/LibTIFF/tif_pixarlog.c                      |  2742 +-
 Source/LibTIFF/tif_predict.c                       |  1472 +-
 Source/LibTIFF/tif_predict.h                       |   154 +-
 Source/LibTIFF/tif_print.c                         |  1288 +-
 Source/LibTIFF/tif_read.c                          |  1500 +-
 Source/LibTIFF/tif_stream.cxx                      |   590 +-
 Source/LibTIFF/tif_strip.c                         |   732 +-
 Source/LibTIFF/tif_swab.c                          |   484 +-
 Source/LibTIFF/tif_thunder.c                       |   354 +-
 Source/LibTIFF/tif_tile.c                          |   560 +-
 Source/LibTIFF/tif_unix.c                          |   600 +-
 Source/LibTIFF/tif_version.c                       |    80 +-
 Source/LibTIFF/tif_vms.c                           |   595 +
 Source/LibTIFF/tif_warning.c                       |   162 +-
 Source/LibTIFF/tif_win3.c                          |   464 +-
 Source/LibTIFF/tif_win32.c                         |   816 +-
 Source/LibTIFF/tif_wince.c                         |   288 +
 Source/LibTIFF/tif_write.c                         |  1436 +-
 Source/LibTIFF/tif_zip.c                           |   838 +-
 Source/LibTIFF/tiff.h                              |  1308 +-
 Source/LibTIFF/tiffconf.h                          |   110 -
 Source/LibTIFF/tiffconf.h-vms                      |    99 +
 Source/LibTIFF/tiffconf.h.in                       |   206 +-
 Source/LibTIFF/tiffconf.vc.h                       |   232 +-
 Source/LibTIFF/tiffconf.wince.h                    |   272 +-
 Source/LibTIFF/tiffio.h                            |  1052 +-
 Source/LibTIFF/tiffio.hxx                          |    98 +-
 Source/LibTIFF/tiffiop.h                           |   703 +-
 Source/LibTIFF/tiffvers.h                          |    18 +-
 Source/LibTIFF/uvcode.h                            |   360 +-
 Source/Metadata/Exif.cpp                           |   302 +-
 Source/Metadata/FIRational.cpp                     |    30 +-
 Source/Metadata/FIRational.h                       |    25 +-
 Source/Metadata/FreeImageTag.cpp                   |    21 +-
 Source/Metadata/FreeImageTag.h                     |     7 +-
 Source/Metadata/IPTC.cpp                           |    18 +-
 Source/Metadata/TagConversion.cpp                  |    35 +-
 Source/Metadata/TagLib.cpp                         |   669 +-
 Source/Metadata/XTIFF.cpp                          |   558 +-
 Source/OpenEXR/Copyrights/AUTHORS                  |    82 +-
 Source/OpenEXR/Copyrights/COPYING                  |    68 +-
 Source/OpenEXR/Copyrights/ChangeLog                |  1238 +-
 Source/OpenEXR/Copyrights/LICENSE                  |    68 +-
 Source/OpenEXR/Half/Makefile.am                    |    64 +-
 Source/OpenEXR/Half/Makefile.in                    |  1081 +-
 Source/OpenEXR/Half/eLut.cpp                       |   228 +-
 Source/OpenEXR/Half/half.cpp                       |   628 +-
 Source/OpenEXR/Half/half.h                         |  1542 +-
 Source/OpenEXR/Half/halfFunction.h                 |   318 +-
 Source/OpenEXR/Half/halfLimits.h                   |   204 +-
 Source/OpenEXR/Half/toFloat.cpp                    |   328 +-
 Source/OpenEXR/Iex/Iex.h                           |   120 +-
 Source/OpenEXR/Iex/IexBaseExc.cpp                  |   258 +-
 Source/OpenEXR/Iex/IexBaseExc.h                    |   532 +-
 Source/OpenEXR/Iex/IexErrnoExc.h                   |   420 +-
 Source/OpenEXR/Iex/IexMacros.h                     |   296 +-
 Source/OpenEXR/Iex/IexMathExc.h                    |   116 +-
 Source/OpenEXR/Iex/IexThrowErrnoExc.cpp            |  1718 +-
 Source/OpenEXR/Iex/IexThrowErrnoExc.h              |   192 +-
 Source/OpenEXR/Iex/Makefile.am                     |    32 +-
 Source/OpenEXR/Iex/Makefile.in                     |  1007 +-
 Source/OpenEXR/IlmImf/ImfAcesFile.cpp              |   631 +
 Source/OpenEXR/IlmImf/ImfAcesFile.h                |   322 +
 Source/OpenEXR/IlmImf/ImfArray.h                   |   522 +-
 Source/OpenEXR/IlmImf/ImfAttribute.cpp             |   312 +-
 Source/OpenEXR/IlmImf/ImfAttribute.h               |   849 +-
 Source/OpenEXR/IlmImf/ImfAutoArray.h               |   186 +-
 Source/OpenEXR/IlmImf/ImfB44Compressor.cpp         |  2133 +-
 Source/OpenEXR/IlmImf/ImfB44Compressor.h           |   234 +-
 Source/OpenEXR/IlmImf/ImfBoxAttribute.cpp          |   220 +-
 Source/OpenEXR/IlmImf/ImfBoxAttribute.h            |   146 +-
 Source/OpenEXR/IlmImf/ImfCRgbaFile.cpp             |  2868 +-
 Source/OpenEXR/IlmImf/ImfCRgbaFile.h               |   934 +-
 Source/OpenEXR/IlmImf/ImfChannelList.cpp           |   575 +-
 Source/OpenEXR/IlmImf/ImfChannelList.h             |   844 +-
 Source/OpenEXR/IlmImf/ImfChannelListAttribute.cpp  |   272 +-
 Source/OpenEXR/IlmImf/ImfChannelListAttribute.h    |   134 +-
 Source/OpenEXR/IlmImf/ImfCheckedArithmetic.h       |   161 +
 Source/OpenEXR/IlmImf/ImfChromaticities.cpp        |   270 +-
 Source/OpenEXR/IlmImf/ImfChromaticities.h          |   240 +-
 .../OpenEXR/IlmImf/ImfChromaticitiesAttribute.cpp  |   172 +-
 Source/OpenEXR/IlmImf/ImfChromaticitiesAttribute.h |   144 +-
 Source/OpenEXR/IlmImf/ImfCompression.h             |   150 +-
 Source/OpenEXR/IlmImf/ImfCompressionAttribute.cpp  |   152 +-
 Source/OpenEXR/IlmImf/ImfCompressionAttribute.h    |   132 +-
 Source/OpenEXR/IlmImf/ImfCompressor.cpp            |   383 +-
 Source/OpenEXR/IlmImf/ImfCompressor.h              |   503 +-
 Source/OpenEXR/IlmImf/ImfConvert.cpp               |   278 +-
 Source/OpenEXR/IlmImf/ImfConvert.h                 |   208 +-
 Source/OpenEXR/IlmImf/ImfDoubleAttribute.cpp       |   114 +-
 Source/OpenEXR/IlmImf/ImfDoubleAttribute.h         |   126 +-
 Source/OpenEXR/IlmImf/ImfEnvmap.cpp                |   656 +-
 Source/OpenEXR/IlmImf/ImfEnvmap.h                  |   644 +-
 Source/OpenEXR/IlmImf/ImfEnvmapAttribute.cpp       |   150 +-
 Source/OpenEXR/IlmImf/ImfEnvmapAttribute.h         |   130 +-
 Source/OpenEXR/IlmImf/ImfFloatAttribute.cpp        |   114 +-
 Source/OpenEXR/IlmImf/ImfFloatAttribute.h          |   126 +-
 Source/OpenEXR/IlmImf/ImfFrameBuffer.cpp           |   402 +-
 Source/OpenEXR/IlmImf/ImfFrameBuffer.h             |   751 +-
 Source/OpenEXR/IlmImf/ImfFramesPerSecond.cpp       |   150 +-
 Source/OpenEXR/IlmImf/ImfFramesPerSecond.h         |   176 +-
 Source/OpenEXR/IlmImf/ImfHeader.cpp                |  2109 +-
 Source/OpenEXR/IlmImf/ImfHeader.h                  |  1204 +-
 Source/OpenEXR/IlmImf/ImfHuf.cpp                   |  2158 +-
 Source/OpenEXR/IlmImf/ImfHuf.h                     |   158 +-
 Source/OpenEXR/IlmImf/ImfIO.cpp                    |   218 +-
 Source/OpenEXR/IlmImf/ImfIO.h                      |   504 +-
 Source/OpenEXR/IlmImf/ImfInputFile.cpp             |  1296 +-
 Source/OpenEXR/IlmImf/ImfInputFile.h               |   418 +-
 Source/OpenEXR/IlmImf/ImfInt64.h                   |   104 +-
 Source/OpenEXR/IlmImf/ImfIntAttribute.cpp          |   114 +-
 Source/OpenEXR/IlmImf/ImfIntAttribute.h            |   126 +-
 Source/OpenEXR/IlmImf/ImfKeyCode.cpp               |   432 +-
 Source/OpenEXR/IlmImf/ImfKeyCode.h                 |   322 +-
 Source/OpenEXR/IlmImf/ImfKeyCodeAttribute.cpp      |   196 +-
 Source/OpenEXR/IlmImf/ImfKeyCodeAttribute.h        |   144 +-
 Source/OpenEXR/IlmImf/ImfLineOrder.h               |   128 +-
 Source/OpenEXR/IlmImf/ImfLineOrderAttribute.cpp    |   154 +-
 Source/OpenEXR/IlmImf/ImfLineOrderAttribute.h      |   132 +-
 Source/OpenEXR/IlmImf/ImfLut.cpp                   |   352 +-
 Source/OpenEXR/IlmImf/ImfLut.h                     |   370 +-
 Source/OpenEXR/IlmImf/ImfMatrixAttribute.cpp       |   414 +-
 Source/OpenEXR/IlmImf/ImfMatrixAttribute.h         |   160 +-
 Source/OpenEXR/IlmImf/ImfMisc.cpp                  |  1574 +-
 Source/OpenEXR/IlmImf/ImfMisc.h                    |   510 +-
 Source/OpenEXR/IlmImf/ImfMultiView.cpp             |   396 +
 Source/OpenEXR/IlmImf/ImfMultiView.h               |   164 +
 Source/OpenEXR/IlmImf/ImfName.h                    |   292 +-
 Source/OpenEXR/IlmImf/ImfOpaqueAttribute.cpp       |   250 +-
 Source/OpenEXR/IlmImf/ImfOpaqueAttribute.h         |   228 +-
 Source/OpenEXR/IlmImf/ImfOutputFile.cpp            |  2574 +-
 Source/OpenEXR/IlmImf/ImfOutputFile.h              |   482 +-
 Source/OpenEXR/IlmImf/ImfPixelType.h               |   122 +-
 Source/OpenEXR/IlmImf/ImfPizCompressor.cpp         |  1322 +-
 Source/OpenEXR/IlmImf/ImfPizCompressor.h           |   227 +-
 Source/OpenEXR/IlmImf/ImfPreviewImage.cpp          |   204 +-
 Source/OpenEXR/IlmImf/ImfPreviewImage.h            |   262 +-
 Source/OpenEXR/IlmImf/ImfPreviewImageAttribute.cpp |   204 +-
 Source/OpenEXR/IlmImf/ImfPreviewImageAttribute.h   |   142 +-
 Source/OpenEXR/IlmImf/ImfPxr24Compressor.cpp       |  1092 +-
 Source/OpenEXR/IlmImf/ImfPxr24Compressor.h         |   213 +-
 Source/OpenEXR/IlmImf/ImfRational.cpp              |   250 +-
 Source/OpenEXR/IlmImf/ImfRational.h                |   186 +-
 Source/OpenEXR/IlmImf/ImfRationalAttribute.cpp     |   146 +-
 Source/OpenEXR/IlmImf/ImfRationalAttribute.h       |   140 +-
 Source/OpenEXR/IlmImf/ImfRgba.h                    |   208 +-
 Source/OpenEXR/IlmImf/ImfRgbaFile.cpp              |  2701 +-
 Source/OpenEXR/IlmImf/ImfRgbaFile.h                |   659 +-
 Source/OpenEXR/IlmImf/ImfRgbaYca.cpp               |   977 +-
 Source/OpenEXR/IlmImf/ImfRgbaYca.h                 |   496 +-
 Source/OpenEXR/IlmImf/ImfRleCompressor.cpp         |   661 +-
 Source/OpenEXR/IlmImf/ImfRleCompressor.h           |   158 +-
 Source/OpenEXR/IlmImf/ImfScanLineInputFile.cpp     |  2029 +-
 Source/OpenEXR/IlmImf/ImfScanLineInputFile.h       |   344 +-
 Source/OpenEXR/IlmImf/ImfStandardAttributes.cpp    |   234 +-
 Source/OpenEXR/IlmImf/ImfStandardAttributes.h      |   634 +-
 Source/OpenEXR/IlmImf/ImfStdIO.cpp                 |   474 +-
 Source/OpenEXR/IlmImf/ImfStdIO.h                   |   312 +-
 Source/OpenEXR/IlmImf/ImfStringAttribute.cpp       |   158 +-
 Source/OpenEXR/IlmImf/ImfStringAttribute.h         |   132 +-
 Source/OpenEXR/IlmImf/ImfStringVectorAttribute.cpp |    94 +
 Source/OpenEXR/IlmImf/ImfStringVectorAttribute.h   |    66 +
 Source/OpenEXR/IlmImf/ImfTestFile.cpp              |   270 +-
 Source/OpenEXR/IlmImf/ImfTestFile.h                |   126 +-
 Source/OpenEXR/IlmImf/ImfThreading.cpp             |   120 +-
 Source/OpenEXR/IlmImf/ImfThreading.h               |   184 +-
 Source/OpenEXR/IlmImf/ImfTileDescription.h         |   204 +-
 .../OpenEXR/IlmImf/ImfTileDescriptionAttribute.cpp |   170 +-
 .../OpenEXR/IlmImf/ImfTileDescriptionAttribute.h   |   146 +-
 Source/OpenEXR/IlmImf/ImfTileOffsets.cpp           |   770 +-
 Source/OpenEXR/IlmImf/ImfTileOffsets.h             |   214 +-
 Source/OpenEXR/IlmImf/ImfTiledInputFile.cpp        |  2604 +-
 Source/OpenEXR/IlmImf/ImfTiledInputFile.h          |   762 +-
 Source/OpenEXR/IlmImf/ImfTiledMisc.cpp             |   602 +-
 Source/OpenEXR/IlmImf/ImfTiledMisc.h               |   150 +-
 Source/OpenEXR/IlmImf/ImfTiledOutputFile.cpp       |  3384 +-
 Source/OpenEXR/IlmImf/ImfTiledOutputFile.h         |   950 +-
 Source/OpenEXR/IlmImf/ImfTiledRgbaFile.cpp         |  2250 +-
 Source/OpenEXR/IlmImf/ImfTiledRgbaFile.h           |   932 +-
 Source/OpenEXR/IlmImf/ImfTimeCode.cpp              |   830 +-
 Source/OpenEXR/IlmImf/ImfTimeCode.h                |   452 +-
 Source/OpenEXR/IlmImf/ImfTimeCodeAttribute.cpp     |   156 +-
 Source/OpenEXR/IlmImf/ImfTimeCodeAttribute.h       |   144 +-
 Source/OpenEXR/IlmImf/ImfVecAttribute.cpp          |   376 +-
 Source/OpenEXR/IlmImf/ImfVecAttribute.h            |   188 +-
 Source/OpenEXR/IlmImf/ImfVersion.cpp               |   118 +-
 Source/OpenEXR/IlmImf/ImfVersion.h                 |   237 +-
 Source/OpenEXR/IlmImf/ImfWav.cpp                   |   780 +-
 Source/OpenEXR/IlmImf/ImfWav.h                     |   140 +-
 Source/OpenEXR/IlmImf/ImfXdr.h                     |  1832 +-
 Source/OpenEXR/IlmImf/ImfZipCompressor.cpp         |   470 +-
 Source/OpenEXR/IlmImf/ImfZipCompressor.h           |   163 +-
 Source/OpenEXR/IlmImf/Makefile.am                  |   249 +-
 Source/OpenEXR/IlmImf/Makefile.in                  |  1426 +-
 Source/OpenEXR/IlmImf/b44ExpLogTable.cpp           |   272 +-
 Source/OpenEXR/IlmImf/b44ExpLogTable.h             | 32792 +++++++++----------
 Source/OpenEXR/IlmThread/IlmThread.cpp             |   160 +-
 Source/OpenEXR/IlmThread/IlmThread.h               |   302 +-
 Source/OpenEXR/IlmThread/IlmThreadMutex.cpp        |   118 +-
 Source/OpenEXR/IlmThread/IlmThreadMutex.h          |   316 +-
 Source/OpenEXR/IlmThread/IlmThreadMutexPosix.cpp   |   170 +-
 Source/OpenEXR/IlmThread/IlmThreadMutexWin32.cpp   |   146 +-
 Source/OpenEXR/IlmThread/IlmThreadPool.cpp         |   912 +-
 Source/OpenEXR/IlmThread/IlmThreadPool.h           |   312 +-
 Source/OpenEXR/IlmThread/IlmThreadPosix.cpp        |   196 +-
 Source/OpenEXR/IlmThread/IlmThreadSemaphore.cpp    |   120 +-
 Source/OpenEXR/IlmThread/IlmThreadSemaphore.h      |   220 +-
 .../OpenEXR/IlmThread/IlmThreadSemaphorePosix.cpp  |   206 +-
 .../IlmThread/IlmThreadSemaphorePosixCompat.cpp    |   310 +-
 .../OpenEXR/IlmThread/IlmThreadSemaphoreWin32.cpp  |   292 +-
 Source/OpenEXR/IlmThread/IlmThreadWin32.cpp        |   190 +-
 Source/OpenEXR/IlmThread/Makefile.am               |    50 +-
 Source/OpenEXR/IlmThread/Makefile.in               |  1043 +-
 Source/OpenEXR/Imath/ImathBox.cpp                  |    74 +-
 Source/OpenEXR/Imath/ImathBox.h                    |  1064 +-
 Source/OpenEXR/Imath/ImathBoxAlgo.h                |  1664 +-
 Source/OpenEXR/Imath/ImathColor.h                  |  1468 +-
 Source/OpenEXR/Imath/ImathColorAlgo.cpp            |   356 +-
 Source/OpenEXR/Imath/ImathColorAlgo.h              |   512 +-
 Source/OpenEXR/Imath/ImathEuler.h                  |  1819 +-
 Source/OpenEXR/Imath/ImathExc.h                    |   143 +-
 Source/OpenEXR/Imath/ImathFrame.h                  |   380 +-
 Source/OpenEXR/Imath/ImathFrustum.h                |  1458 +-
 Source/OpenEXR/Imath/ImathFun.cpp                  |   362 +-
 Source/OpenEXR/Imath/ImathFun.h                    |   534 +-
 Source/OpenEXR/Imath/ImathGL.h                     |   318 +-
 Source/OpenEXR/Imath/ImathGLU.h                    |   108 +-
 Source/OpenEXR/Imath/ImathHalfLimits.h             |   132 +-
 Source/OpenEXR/Imath/ImathInt64.h                  |   122 +-
 Source/OpenEXR/Imath/ImathInterval.h               |   448 +-
 Source/OpenEXR/Imath/ImathLimits.h                 |   532 +-
 Source/OpenEXR/Imath/ImathLine.h                   |   368 +-
 Source/OpenEXR/Imath/ImathLineAlgo.h               |   574 +-
 Source/OpenEXR/Imath/ImathMath.h                   |   416 +-
 Source/OpenEXR/Imath/ImathMatrix.h                 |  6565 ++--
 Source/OpenEXR/Imath/ImathMatrixAlgo.cpp           |   146 +-
 Source/OpenEXR/Imath/ImathMatrixAlgo.h             |  2229 +-
 Source/OpenEXR/Imath/ImathPlane.h                  |   512 +-
 Source/OpenEXR/Imath/ImathPlatform.h               |   204 +-
 Source/OpenEXR/Imath/ImathQuat.h                   |  1699 +-
 Source/OpenEXR/Imath/ImathRandom.cpp               |   390 +-
 Source/OpenEXR/Imath/ImathRandom.h                 |   796 +-
 Source/OpenEXR/Imath/ImathRoots.h                  |   436 +-
 Source/OpenEXR/Imath/ImathShear.cpp                |   108 +-
 Source/OpenEXR/Imath/ImathShear.h                  |  1318 +-
 Source/OpenEXR/Imath/ImathSphere.h                 |   354 +-
 Source/OpenEXR/Imath/ImathVec.cpp                  |   920 +-
 Source/OpenEXR/Imath/ImathVec.h                    |  3652 ++-
 Source/OpenEXR/Imath/ImathVecAlgo.h                |   292 +-
 Source/OpenEXR/Imath/Makefile.am                   |    68 +-
 Source/OpenEXR/Imath/Makefile.in                   |  1057 +-
 Source/OpenEXR/OpenEXR.2003.vcproj                 |    12 +-
 Source/OpenEXR/OpenEXR.2005.vcproj                 |   181 +-
 Source/OpenEXR/OpenEXR.2008.vcproj                 |  1156 +
 Source/Plugin.h                                    |    12 +-
 Source/ToneMapping.h                               |     2 +-
 Source/Utilities.h                                 |   352 +-
 Source/ZLib/ChangeLog                              |   357 +-
 Source/ZLib/FAQ                                    |   261 +-
 Source/ZLib/INDEX                                  |    30 +-
 Source/ZLib/Makefile                               |   157 +-
 Source/ZLib/Makefile.in                            |   223 +-
 Source/ZLib/README                                 |    86 +-
 Source/ZLib/ZLib.2003.vcproj                       |   210 -
 Source/ZLib/ZLib.2005.vcproj                       |   206 +-
 Source/ZLib/ZLib.2008.vcproj                       |   426 +
 Source/ZLib/adler32.c                              |    40 +-
 Source/ZLib/algorithm.txt                          |     2 +-
 Source/ZLib/compress.c                             |     7 +-
 Source/ZLib/configure                              |   345 +-
 Source/ZLib/crc32.c                                |    37 +-
 Source/ZLib/deflate.c                              |   270 +-
 Source/ZLib/deflate.h                              |    37 +-
 Source/ZLib/example.c                              |     6 +-
 Source/ZLib/gzclose.c                              |    25 +
 Source/ZLib/gzguts.h                               |   132 +
 Source/ZLib/gzio.c                                 |  1026 -
 Source/ZLib/gzlib.c                                |   537 +
 Source/ZLib/gzread.c                               |   653 +
 Source/ZLib/gzwrite.c                              |   531 +
 Source/ZLib/infback.c                              |    93 +-
 Source/ZLib/inffast.c                              |    80 +-
 Source/ZLib/inffast.h                              |     4 +-
 Source/ZLib/inflate.c                              |   282 +-
 Source/ZLib/inflate.h                              |    31 +-
 Source/ZLib/inftrees.c                             |    63 +-
 Source/ZLib/inftrees.h                             |    27 +-
 Source/ZLib/minigzip.c                             |   136 +-
 Source/ZLib/trees.c                                |    95 +-
 Source/ZLib/trees.h                                |     4 +-
 Source/ZLib/uncompr.c                              |     6 +-
 Source/ZLib/zconf.h                                |   192 +-
 Source/ZLib/zconf.h.in                             |   428 +
 Source/ZLib/zconf.in.h                             |   332 -
 Source/ZLib/zlib.3                                 |    66 +-
 Source/ZLib/zlib.h                                 |  1162 +-
 Source/ZLib/zutil.c                                |    34 +-
 Source/ZLib/zutil.h                                |    65 +-
 TestAPI/MainTestSuite.cpp                          |    26 +-
 TestAPI/Test.2003.vcproj                           |    14 +-
 TestAPI/Test.2005.vcproj                           |    20 +-
 TestAPI/Test.2008.sln                              |    25 +
 TestAPI/Test.2008.vcproj                           |   443 +
 TestAPI/TestSuite.h                                |    19 +-
 TestAPI/testChannels.cpp                           |   127 +
 TestAPI/testHeaderOnly.cpp                         |   257 +
 TestAPI/testImageType.cpp                          |    48 +-
 TestAPI/testJPEG.cpp                               |     4 +-
 TestAPI/testMPage.cpp                              |   143 +-
 TestAPI/testMPageMemory.cpp                        |   271 +
 TestAPI/testMPageStream.cpp                        |   216 +
 TestAPI/testMemIO.cpp                              |     1 +
 TestAPI/testTools.cpp                              |     6 +-
 Whatsnew.txt                                       |   205 +
 Wrapper/Delphi/WhatsNew_Delphi.txt                 |    35 +
 Wrapper/Delphi/demo/ImagePreview/MainFrm.pas       |    42 +-
 Wrapper/Delphi/demo/TargaUnit/TargaImage.pas       |     2 +-
 Wrapper/Delphi/src/FreeBitmap.pas                  |   181 +-
 Wrapper/Delphi/src/FreeImage.pas                   |  1381 +-
 Wrapper/Delphi/src/FreeUtils.pas                   |   109 +-
 Wrapper/Delphi/src/Version.inc                     |   205 +
 Wrapper/FreeImage.NET/FreeImageNET.csproj          |    84 -
 Wrapper/FreeImage.NET/FreeImageNET.sln             |    21 -
 Wrapper/FreeImage.NET/WhatsNew_dotNET.txt          |    54 -
 Wrapper/FreeImage.NET/clean.bat                    |     4 -
 .../FreeImageIO/AssemblyInfo.cpp                   |     0
 .../FreeImageIO/FreeImageIO.Net.cpp                |     0
 .../FreeImageIO/FreeImageIO.Net.h                  |     0
 .../FreeImageIO/FreeImageIO.Net.vcproj             |     0
 .../FreeImageIO/FreeImageIO.sln                    |     0
 .../{contributions => cpp}/FreeImageIO/ReadMe.txt  |     0
 .../{contributions => cpp}/FreeImageIO/Stdafx.cpp  |     0
 .../{contributions => cpp}/FreeImageIO/Stdafx.h    |     0
 .../{contributions => cpp}/FreeImageIO/app.ico     |   Bin
 .../{contributions => cpp}/FreeImageIO/app.rc      |     0
 .../{contributions => cpp}/FreeImageIO/resource.h  |     0
 Wrapper/FreeImage.NET/cs/Bin/delete.me             |     1 +
 Wrapper/FreeImage.NET/cs/Content.txt               |    43 +
 .../cs/Doc/3.11.0/FreeImage.NET.shfbproj           |    41 +
 .../cs/Doc/3.12.0/FreeImage.NET.shfbproj           |    41 +
 .../cs/Doc/3.13.0/FreeImage.NET.shfbproj           |    41 +
 .../FreeImage.NET/cs/Doc/FreeImage.NET.shfbproj    |    52 +
 Wrapper/FreeImage.NET/cs/Doc/SHFB.txt              |     9 +
 Wrapper/FreeImage.NET/cs/FreeImage.NET.2005.sln    |   214 +
 Wrapper/FreeImage.NET/cs/FreeImage.NET.nunit       |     9 +
 Wrapper/FreeImage.NET/cs/FreeImage.NET.sln         |   214 +
 .../cs/Library/Classes/FreeImageBitmap.cs          |  4378 +++
 .../cs/Library/Classes/FreeImageEngine.cs          |   101 +
 .../cs/Library/Classes/FreeImagePlugin.cs          |   202 +
 .../cs/Library/Classes/FreeImageStreamIO.cs        |   167 +
 .../cs/Library/Classes/GifInformation.cs           |   131 +
 .../cs/Library/Classes/ImageMetadata.cs            |   286 +
 .../cs/Library/Classes/LocalPlugin.cs              |   466 +
 .../cs/Library/Classes/MemoryArray.cs              |   828 +
 .../cs/Library/Classes/MetadataModel.cs            |   941 +
 .../cs/Library/Classes/MetadataModels.cs           |  6724 ++++
 .../cs/Library/Classes/MetadataTag.cs              |   757 +
 .../FreeImage.NET/cs/Library/Classes/Palette.cs    |   422 +
 .../cs/Library/Classes/PluginRepository.cs         |   449 +
 .../FreeImage.NET/cs/Library/Classes/Scanline.cs   |    50 +
 .../cs/Library/Classes/StreamWrapper.cs            |   312 +
 Wrapper/FreeImage.NET/cs/Library/Delegates.cs      |   191 +
 .../cs/Library/Enumerations/DisposalMethodType.cs  |    33 +
 .../Enumerations/FREE_IMAGE_COLOR_CHANNEL.cs       |    84 +
 .../Library/Enumerations/FREE_IMAGE_COLOR_DEPTH.cs |   105 +
 .../Enumerations/FREE_IMAGE_COLOR_OPTIONS.cs       |    68 +
 .../Library/Enumerations/FREE_IMAGE_COLOR_TYPE.cs  |    68 +
 .../Enumerations/FREE_IMAGE_COMPARE_FLAGS.cs       |    65 +
 .../cs/Library/Enumerations/FREE_IMAGE_DITHER.cs   |    73 +
 .../cs/Library/Enumerations/FREE_IMAGE_FILTER.cs   |    68 +
 .../cs/Library/Enumerations/FREE_IMAGE_FORMAT.cs   |   192 +
 .../Enumerations/FREE_IMAGE_JPEG_OPERATION.cs      |    76 +
 .../Library/Enumerations/FREE_IMAGE_LOAD_FLAGS.cs  |   111 +
 .../cs/Library/Enumerations/FREE_IMAGE_MDMODEL.cs  |    92 +
 .../cs/Library/Enumerations/FREE_IMAGE_MDTYPE.cs   |   105 +
 .../Enumerations/FREE_IMAGE_METADATA_COPY.cs       |    56 +
 .../cs/Library/Enumerations/FREE_IMAGE_QUANTIZE.cs |    53 +
 .../Library/Enumerations/FREE_IMAGE_SAVE_FLAGS.cs  |   183 +
 .../cs/Library/Enumerations/FREE_IMAGE_TMO.cs      |    56 +
 .../cs/Library/Enumerations/FREE_IMAGE_TYPE.cs     |    96 +
 .../cs/Library/Enumerations/ICC_FLAGS.cs           |    53 +
 .../cs/Library/Enumerations/MD_SEARCH_FLAGS.cs     |    57 +
 .../cs/Library/FreeImageStaticImports.cs           |  2369 ++
 .../FreeImage.NET/cs/Library/FreeImageWrapper.cs   |  5329 +++
 .../FreeImage.NET/cs/Library/Library.2005.csproj   |   190 +
 Wrapper/FreeImage.NET/cs/Library/Library.csproj    |   231 +
 .../cs/Library/Properties/AssemblyInfo.cs          |    21 +
 Wrapper/FreeImage.NET/cs/Library/Structs/BITMAP.cs |   104 +
 .../FreeImage.NET/cs/Library/Structs/BITMAPINFO.cs |   203 +
 .../cs/Library/Structs/BITMAPINFOHEADER.cs         |   352 +
 .../FreeImage.NET/cs/Library/Structs/FI16RGB555.cs |   277 +
 .../FreeImage.NET/cs/Library/Structs/FI16RGB565.cs |   277 +
 Wrapper/FreeImage.NET/cs/Library/Structs/FI1BIT.cs |    70 +
 Wrapper/FreeImage.NET/cs/Library/Structs/FI4BIT.cs |    70 +
 .../FreeImage.NET/cs/Library/Structs/FIBITMAP.cs   |   175 +
 .../FreeImage.NET/cs/Library/Structs/FICOMPLEX.cs  |   146 +
 .../cs/Library/Structs/FIICCPROFILE.cs             |   133 +
 .../FreeImage.NET/cs/Library/Structs/FIMEMORY.cs   |   170 +
 .../FreeImage.NET/cs/Library/Structs/FIMETADATA.cs |   178 +
 .../cs/Library/Structs/FIMULTIBITMAP.cs            |   170 +
 .../FreeImage.NET/cs/Library/Structs/FIRGB16.cs    |   267 +
 .../FreeImage.NET/cs/Library/Structs/FIRGBA16.cs   |   271 +
 .../FreeImage.NET/cs/Library/Structs/FIRGBAF.cs    |   276 +
 Wrapper/FreeImage.NET/cs/Library/Structs/FIRGBF.cs |   272 +
 .../FreeImage.NET/cs/Library/Structs/FIRational.cs |  1011 +
 Wrapper/FreeImage.NET/cs/Library/Structs/FITAG.cs  |   170 +
 .../cs/Library/Structs/FIURational.cs              |  1010 +
 .../cs/Library/Structs/FreeImageIO.cs              |    66 +
 Wrapper/FreeImage.NET/cs/Library/Structs/Plugin.cs |   132 +
 .../FreeImage.NET/cs/Library/Structs/RGBQUAD.cs    |   342 +
 .../FreeImage.NET/cs/Library/Structs/RGBTRIPLE.cs  |   295 +
 .../FreeImage.NET/cs/Library/Structs/fi_handle.cs  |   256 +
 Wrapper/FreeImage.NET/cs/Library/build.bat         |     7 +
 .../Sample 01 - Loading and saving/Program.cs      |   179 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 01 - Loading and saving.2005.csproj     |   105 +
 .../Sample 01 - Loading and saving.csproj          |   110 +
 .../Sample 01 - Loading and saving/Sample.jpg      |   Bin 0 -> 125662 bytes
 .../Sample 02 - Multipaged bitmaps/Program.cs      |   140 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 02 - Multipaged bitmaps.2005.csproj     |    97 +
 .../Sample 02 - Multipaged bitmaps.csproj          |   102 +
 .../Sample 02 - Multipaged bitmaps/multipaged.tif  |   Bin 0 -> 16380 bytes
 .../cs/Samples/Sample 03 - Allocating/Program.cs   |    74 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 03 - Allocating.2005.csproj             |    91 +
 .../Sample 03 - Allocating.csproj                  |    96 +
 .../MainForm.Designer.cs                           |   205 +
 .../MainForm.cs                                    |   120 +
 .../MainForm.resx                                  |   123 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 ...le 04 - Getting bitmap informations.2005.csproj |   104 +
 .../Sample 04 - Getting bitmap informations.csproj |   109 +
 .../Sample 05 - Working with pixels/Program.cs     |   213 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 05 - Working with pixels.2005.csproj    |   100 +
 .../Sample 05 - Working with pixels.csproj         |   105 +
 .../Sample 05 - Working with pixels/Sample.jpg     |   Bin 0 -> 22237 bytes
 .../Sample 05 - Working with pixels/Sample.tif     |   Bin 0 -> 24610 bytes
 .../Sample 06 - Converting/MainForm.Designer.cs    |   120 +
 .../cs/Samples/Sample 06 - Converting/MainForm.cs  |   177 +
 .../Samples/Sample 06 - Converting/MainForm.resx   |   120 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 06 - Converting.2005.csproj             |   109 +
 .../Sample 06 - Converting.csproj                  |   114 +
 .../cs/Samples/Sample 06 - Converting/Sample.jpg   |   Bin 0 -> 125662 bytes
 .../cs/Samples/Sample 07 - ICC Profiles/Program.cs |    73 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 07 - ICC Profiles.2005.csproj           |    96 +
 .../Sample 07 - ICC Profiles.csproj                |   101 +
 .../cs/Samples/Sample 07 - ICC Profiles/Sample.jpg |   Bin 0 -> 44606 bytes
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 08 - Creating a plugin.2005.csproj      |   110 +
 .../Sample 08 - Creating a plugin.csproj           |   115 +
 .../Sample 08 - Creating a plugin/Sample.jpg       |   Bin 0 -> 125662 bytes
 .../SampleForm.Designer.cs                         |   119 +
 .../Sample 08 - Creating a plugin/SampleForm.cs    |   217 +
 .../Sample 08 - Creating a plugin/SampleForm.resx  |   120 +
 .../SerializationPlugin.cs                         |   222 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 09 - Working with streams.2005.csproj   |   105 +
 .../Sample 09 - Working with streams.csproj        |   110 +
 .../SampleForm.Designer.cs                         |   115 +
 .../Sample 09 - Working with streams/SampleForm.cs |   147 +
 .../SampleForm.resx                                |   120 +
 .../Sample 10 - Metadata/MainForm.Designer.cs      |    87 +
 .../cs/Samples/Sample 10 - Metadata/MainForm.cs    |   105 +
 .../cs/Samples/Sample 10 - Metadata/MainForm.resx  |   120 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 .../Sample 10 - Metadata.2005.csproj               |   103 +
 .../Sample 10 - Metadata.csproj                    |   108 +
 .../MainForm.Designer.cs                           |   382 +
 .../MainForm.cs                                    |   412 +
 .../MainForm.resx                                  |   126 +
 .../MetaDataFrame.Designer.cs                      |    63 +
 .../MetaDataFrame.cs                               |    49 +
 .../MetaDataFrame.resx                             |   120 +
 .../Properties/AssemblyInfo.cs                     |    16 +
 ...1 - Using the FreeImageBitmap class.2005.csproj |   115 +
 ...ple 11 - Using the FreeImageBitmap class.csproj |   120 +
 .../cs/SourceFileMerger/FreeImage.cs.template      |   219 +
 .../FreeImage.NET/cs/SourceFileMerger/Program.cs   |   122 +
 .../cs/SourceFileMerger/Properties/AssemblyInfo.cs |    16 +
 .../SourceFileMerger/SourceFileMerger.2005.csproj  |    97 +
 .../cs/SourceFileMerger/SourceFileMerger.csproj    |   102 +
 Wrapper/FreeImage.NET/cs/UnitTest/FreeImage.cs     | 30584 +++++++++++++++++
 Wrapper/FreeImage.NET/cs/UnitTest/ImageManager.cs  |   156 +
 Wrapper/FreeImage.NET/cs/UnitTest/NUnit.txt        |    14 +
 .../cs/UnitTest/Properties/AssemblyInfo.cs         |    16 +
 .../FreeImage.NET/cs/UnitTest/UnitTest.2005.csproj |   105 +
 Wrapper/FreeImage.NET/cs/UnitTest/UnitTest.cs      |  5555 ++++
 Wrapper/FreeImage.NET/cs/UnitTest/UnitTest.csproj  |   110 +
 Wrapper/FreeImage.NET/cs/Whats_New.NET.txt         |   119 +
 Wrapper/FreeImage.NET/cs/clean.bat                 |    48 +
 Wrapper/FreeImage.NET/src/AssemblyInfo.cs          |    27 -
 Wrapper/FreeImage.NET/src/FreeImage.cs             |   930 -
 Wrapper/FreeImage.NET/src/build.bat                |     4 -
 Wrapper/FreeImage.NET/test/AssemblyInfo.cs         |    32 -
 Wrapper/FreeImage.NET/test/Form1.cs                |   119 -
 Wrapper/FreeImage.NET/test/Form1.resx              |    42 -
 .../FreeImage.NET/test/FreeImageTest.NET.csproj    |   114 -
 Wrapper/FreeImage.NET/test/FreeImageTest.NET.sln   |    21 -
 Wrapper/FreeImage.NET/test/Main.cs                 |   280 -
 Wrapper/FreeImagePlus/FreeImagePlus.2003.vcproj    |     2 +
 Wrapper/FreeImagePlus/FreeImagePlus.2005.sln       |    26 +-
 Wrapper/FreeImagePlus/FreeImagePlus.2005.vcproj    |   205 +
 Wrapper/FreeImagePlus/FreeImagePlus.2008.sln       |    19 +
 Wrapper/FreeImagePlus/FreeImagePlus.2008.vcproj    |   477 +
 Wrapper/FreeImagePlus/FreeImagePlus.h              |   234 +-
 Wrapper/FreeImagePlus/FreeImagePlus.rc             |    10 +-
 Wrapper/FreeImagePlus/WhatsNew_FIP.txt             |    47 +
 Wrapper/FreeImagePlus/clean.bat                    |     9 +
 Wrapper/FreeImagePlus/doc/FreeImagePlus.dox        |  1931 +-
 Wrapper/FreeImagePlus/doc/doxygen.log              |    27 -
 Wrapper/FreeImagePlus/doc/header.html              |     7 -
 Wrapper/FreeImagePlus/doc/index.html               |    43 +
 Wrapper/FreeImagePlus/doc/main.html                |    18 -
 Wrapper/FreeImagePlus/src/fipImage.cpp             |   181 +-
 Wrapper/FreeImagePlus/src/fipMemoryIO.cpp          |    19 +-
 Wrapper/FreeImagePlus/src/fipMultiPage.cpp         |    50 +-
 Wrapper/FreeImagePlus/src/fipTag.cpp               |     5 +-
 Wrapper/FreeImagePlus/src/fipWinImage.cpp          |    39 +-
 Wrapper/FreeImagePlus/test/fipTest.2003.vcproj     |     6 +
 Wrapper/FreeImagePlus/test/fipTest.2005.sln        |    20 +
 Wrapper/FreeImagePlus/test/fipTest.2005.vcproj     |   233 +-
 Wrapper/FreeImagePlus/test/fipTest.2008.sln        |    26 +
 Wrapper/FreeImagePlus/test/fipTest.2008.vcproj     |   519 +
 Wrapper/FreeImagePlus/test/fipTest.cpp             |    18 +-
 Wrapper/FreeImagePlus/test/fipTest.h               |    26 +
 Wrapper/FreeImagePlus/test/fipTestMPage.cpp        |     6 +
 Wrapper/FreeImagePlus/test/fipTestMPageMemory.cpp  |   276 +
 Wrapper/FreeImagePlus/test/fipTestMPageStream.cpp  |   222 +
 Wrapper/FreeImagePlus/test/fipTestMemIO.cpp        |     6 +
 Wrapper/FreeImagePlus/test/test.jpg                |   Bin 0 -> 44606 bytes
 Wrapper/FreeImagePlus/test/test.tif                |   Bin 0 -> 16380 bytes
 Wrapper/VB6/mfreeimage/MFreeImage.bas              |  5519 ++--
 Wrapper/VB6/mfreeimage/WhatsNew_VB.txt             |   127 +
 clean.bat                                          |    18 +-
 clean.sh                                           |    10 +-
 debian/changelog                                   |    21 +
 debian/compat                                      |     2 +-
 debian/control                                     |    15 +-
 debian/copyright                                   |     6 +-
 debian/freeimage-get-orig-source                   |    17 +-
 debian/patches/disable_embedded_libraries.patch    |   417 +
 debian/patches/fix_ftbfs_amd64.patch               |    35 +-
 debian/patches/makefile_modifications.patch        |   167 +-
 debian/patches/series                              |     1 +
 debian/rules                                       |   110 +-
 debian/source/format                               |     1 +
 extra.Debian/FreeImage3100.pdf                     |   Bin 1205460 -> 0 bytes
 extra.Debian/FreeImage3151.pdf                     |   Bin 0 -> 1004230 bytes
 extra.Debian/FreeImage380Chinese.pdf               | 19495 -----------
 fipMakefile.srcs                                   |     8 +-
 genfipsrclist.sh                                   |    10 +-
 gensrclist.sh                                      |    10 +-
 929 files changed, 338267 insertions(+), 176503 deletions(-)

diff --cc debian/changelog
index 3d6d055,0000000..cf0d029
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,86 -1,0 +1,107 @@@
++freeimage (3.15.1-1) unstable; urgency=low
++
++  * QA upload.
++  * New upstream release (closes: 649541, LP: #898825, #898845)
++    - Refreshed patches.
++      + Abuse dh-autoreconf to generate Makefile.srcs and fipMakefile.srcs
++        patches at build time
++    - Update debian/freeimage-get-orig-source for the new version.
++    - Add new build-dep libraw-dev.
++    - Update patch to disable embedded libraries to deal with API changes
++      in libpng, libmng, and libraw.
++    - Make sure we install symlinks for libfreeimageplus.
++    - Use (upstream-supported) CFLAGS instead of COMPILERFLAGS.
++  * Switch to source format 3.0 (quilt)
++  * Switch to dh(1) and debhelper compat 8
++  * Add missing misc:Depends.
++  * Include the upstream changelog.
++  * Update Debian standards version (no other changes needed).
++
++ -- Evan Broder <evan at ebroder.net>  Sun, 04 Dec 2011 21:46:11 -0800
++
 +freeimage (3.10.0-4) unstable; urgency=low
 +
 +  * Fix copy-pasto in tif_config.h.
 +
 + -- Julien Cristau <jcristau at debian.org>  Fri, 29 Oct 2010 22:39:26 +0200
 +
 +freeimage (3.10.0-3) unstable; urgency=low
 +
 +  * Don't use embedded copies of various libraries, add build-deps on their
 +    packaged versions (closes: #595560):
 +    - libjpeg 6b
 +    - libmng 1.0.9
 +    - libopenjpeg 1.2.0
 +    - libpng 1.2.23
 +      + CVE-2010-2249, CVE-2010-1205, CVE-2010-0205, CVE-2009-2042,
 +        CVE-2008-6218, CVE-2008-5907, CVE-2009-0040, CVE-2008-3964,
 +        CVE-2008-1382
 +    - openexr 1.6.1
 +      + CVE-2009-1720, CVE-2009-1721
 +    - zlib 1.2.3
 +  * The embedded libtiff copy is still used, because freeimage uses its
 +    internals and I couldn't figure out how to unentangle this.  Update the
 +    tiff copy to 3.9.4-5, though:
 +    CVE-2010-3087, CVE-2010-2483, CVE-2010-2482, CVE-2010-2481, CVE-2010-2443,
 +    CVE-2010-2233, CVE-2010-2067, CVE-2010-2065, CVE-2010-1411, CVE-2009-2347,
 +    CVE-2008-2327.
 +  * Add tiff copyright and license to debian/copyright (closes: #601002)
 +  * Link with -lm (closes: #558857).
 +  * Try to avoid arch-specific values in our copy of tif_config.h and
 +    tiffconf.h (closes: #601762)
 +  * Set LFS CFLAGS in Makefile.gnu.
 +  * Orphan package (closes: #595559).
 +
 + -- Julien Cristau <jcristau at debian.org>  Fri, 29 Oct 2010 14:46:46 +0200
 +
 +freeimage (3.10.0-2) unstable; urgency=low
 +
 +  * Fixed typo in short description of libfreeimage3-dbg.
 +    (Closes: #518647)
 +  * Adjusted patched to not need -p0 (Closes: #485251).
 +  * Made package priority optional.
 +  * Moved libfreeimage3-dbg package into debug section. 
 +  * Added debian/README.source.
 +  * Added watch file.
 +  * Added myself to Uploaders.
 +  * Updated Standards-Version.
 +
 + -- Michael Koch <konqueror at gmx.de>  Tue, 15 Sep 2009 20:12:53 +0200
 +
 +freeimage (3.10.0-1) unstable; urgency=low
 +
 +  * New upstream release. Closes: #471242
 +  * Added extra freeimage documentation in orig tarball.
 +  * Added get-orig-source target.
 +  * Added Homepage field in control file.
 +  * Removing some unnecessary stuff from rules file.
 +  * Adding some necessary build dependencies.
 +  * Adding some modifications to allow for configuring various compiler flags.
 +  * Fix FTBFS on amd64.
 +  * Adding debug package.
 +  * Added DM-Upload-Allowed: yes field.
 +  * Added Vcs entries.
 +
 + -- Andres Mejia <mcitadel at gmail.com>  Thu, 15 May 2008 03:18:00 -0400
 +
 +freeimage (3.9.3-3) unstable; urgency=low
 +
 +  * Removed the file FreeImage393.pdf for which sources are apparently
 +    not available.
 +  * Added copyright ownner to copyright file.
 +
 + -- Federico Di Gregorio <fog at debian.org>  Mon, 07 May 2007 15:35:21 +0200
 +
 +freeimage (3.9.3-2) unstable; urgency=low
 +
 +  * Now also build FreeImagePlus.
 +  * Changed C++ to C/C++ in debian/control.
 +
 + -- Federico Di Gregorio <fog at debian.org>  Sun, 22 Apr 2007 21:59:14 +0200
 +
 +freeimage (3.9.3-1) unstable; urgency=low
 +
 +  * Initial release (Closes: #419696)
 +
 + -- Federico Di Gregorio <fog at debian.org>  Sat, 21 Apr 2007 09:36:44 +0200
 +
diff --cc debian/compat
index 7ed6ff8,0000000..45a4fb7
mode 100644,000000..100644
--- a/debian/compat
+++ b/debian/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++8
diff --cc debian/control
index e43596e,0000000..3838b01
mode 100644,000000..100644
--- a/debian/control
+++ b/debian/control
@@@ -1,61 -1,0 +1,62 @@@
 +Source: freeimage
 +Priority: optional
 +Maintainer: Debian QA Group <packages at qa.debian.org>
 +Build-Depends:
-  debhelper (>= 5),
++ debhelper (>= 8),
++ dh-autoreconf,
 + tofrodos,
-  quilt,
 + libjpeg-dev,
 + libmng-dev,
 + libopenjpeg-dev,
 + libpng-dev,
 + libopenexr-dev,
++ libraw-dev,
++ liblcms2-dev,
 + zlib1g-dev,
 + pkg-config,
- Standards-Version: 3.8.3
++Standards-Version: 3.9.2
 +Section: libs
 +DM-Upload-Allowed: yes
 +Homepage: http://freeimage.sourceforge.net/
 +Vcs-Git: git://git.debian.org/git/collab-maint/freeimage.git
 +Vcs-Browser: http://git.debian.org/?p=collab-maint/freeimage.git
 +
 +Package: libfreeimage-dev
 +Section: libdevel
 +Architecture: any
- Depends: libfreeimage3 (= ${binary:Version})
++Depends: ${misc:Depends}, libfreeimage3 (= ${binary:Version})
 +Description: Support library for graphics image formats (development files)
 + FreeImage is an Open Source C/C++ library project for developers who would
 + like to support popular graphics image formats like PNG, BMP, JPEG, TIFF
 + and others as needed by today's multimedia applications. FreeImage is
 + easy to use, fast, multithreading safe, and cross-platform (works both
 + with Linux, 32 bit Windows and Mac OS X).
 + .
 + This package contains the headers and static libraries needed to develop
 + programs using FreeImage.
 +
 +Package: libfreeimage3
- Section: libs
 +Architecture: any
- Depends: ${shlibs:Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
 +Description: Support library for graphics image formats (library)
 + FreeImage is an Open Source C/C++ library project for developers who would
 + like to support popular graphics image formats like PNG, BMP, JPEG, TIFF
 + and others as needed by today's multimedia applications. FreeImage is
 + easy to use, fast, multithreading safe, and cross-platform (works both
 + with Linux, 32 bit Windows and Mac OS X).
 + .
 + This package contains the FreeImage library.
 +
 +Package: libfreeimage3-dbg
 +Section: debug
 +Priority: extra
 +Architecture: any
- Depends: libfreeimage3 (= ${binary:Version})
++Depends: ${misc:Depends}, libfreeimage3 (= ${binary:Version})
 +Description: Support library for graphics image formats (debugging symbols)
 + FreeImage is an Open Source C/C++ library project for developers who would
 + like to support popular graphics image formats like PNG, BMP, JPEG, TIFF
 + and others as needed by today's multimedia applications. FreeImage is
 + easy to use, fast, multithreading safe, and cross-platform (works both
 + with Linux, 32 bit Windows and Mac OS X).
 + .
 + This package contains the debugging symbols for the FreeImage library.
diff --cc debian/copyright
index dfa9145,0000000..39f56a2
mode 100644,000000..100644
--- a/debian/copyright
+++ b/debian/copyright
@@@ -1,234 -1,0 +1,234 @@@
 +This package was debianized by:
 +
 +    Federico Di Gregorio <fog at debian.org> on Sat, 21 Apr 2007 09:36:44 +0200.
 +
 +It was downloaded from:
 +
 +    http://freeimage.sourceforge.net/
 +
 +Upstream Author:
 +
 +    Hervé Drolon at drolon at infonie.fr
 +    Floris van den Berg at flvdberg at wxs.nl
 +
 +Copyright:
 +
 +    Copyright (C) 2003-2007 FreeImage Group
 +
 +    FreeImage is currently maintained by Harvé Drolon.
 +
 +    FreeImage is licensed under the GNU General Public License (GPL)
 +    and the FreeImage Public License (FIPL). You can choose the license
 +    that has the most advantages for you.
 +
 +License (FIPL):
 +
 +1. Definitions.
 +
 +1.1. "Contributor" means each entity that creates or contributes to the
 +creation of Modifications.
 +
 +1.2. "Contributor Version" means the combination of the Original Code, prior
 +Modifications used by a Contributor, and the Modifications made by that
 +particular Contributor.
 +
 +1.3. "Covered Code" means the Original Code or Modifications or the combination
 +of the Original Code and Modifications, in each case including portions
 +thereof.
 +
 +1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted
 +in the software development community for the electronic transfer of data.
 +
 +1.5. "Executable" means Covered Code in any form other than Source Code.
 +
 +1.6. "Initial Developer" means the individual or entity identified as the
 +Initial Developer in the Source Code notice required by Exhibit A.
 +
 +1.7. "Larger Work" means a work which combines Covered Code or portions thereof
 +with code not governed by the terms of this License.
 +
 +1.8. "License" means this document.
 +
 +1.9. "Modifications" means any addition to or deletion from the substance or
 +structure of either the Original Code or any previous Modifications. When
 +Covered Code is released as a series of files, a Modification is:
 +
 +A. Any addition to or deletion from the contents of a file containing Original
 +Code or previous Modifications.
 +
 +B. Any new file that contains any part of the Original Code or previous
 +Modifications.
 +
 +1.10. "Original Code" means Source Code of computer software code which is
 +described in the Source Code notice required by Exhibit A as Original Code,
 +and which, at the time of its release under this License is not already
 +Covered Code governed by this License.
 +
 +1.11. "Source Code" means the preferred form of the Covered Code for making
 +modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control
 +compilation and installation of an Executable, or a list of source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.
 +
 +1.12. "You" means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the
 +direction or management of such entity, whether by contract or otherwise, or (b) ownership of fifty percent (50%) or more of the outstanding shares or beneficial ownership of such entity.
 +
 +2. Source Code License.
 +
 +2.1. The Initial Developer Grant.
 +The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
 +
 +(a) to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, or as part of a Larger Work; and
 +
 +(b) under patents now or hereafter owned or controlled by Initial Developer, to make, have made, use and sell ("Utilize") the Original Code (or portions thereof), but solely to the extent that
 +any such patent is reasonably necessary to enable You to Utilize the Original Code (or portions thereof) and not to any greater extent that may be necessary to Utilize further Modifications or
 +combinations.
 +
 +2.2. Contributor Grant.
 +Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
 +
 +(a) to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code or as part of a Larger Work; and
 +
 +(b) under patents now or hereafter owned or controlled by Contributor, to Utilize the Contributor Version (or portions thereof), but solely to the extent that any such patent is reasonably necessary to enable You to Utilize the Contributor Version (or portions thereof), and not to any greater extent that
 +may be necessary to Utilize further Modifications or combinations.
 +
 +3. Distribution Obligations.
 +
 +3.1. Application of License.
 +The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or
 +restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.
 +
 +3.2. Availability of Source Code.
 +Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months afte [...]
 +
 +3.3. Description of Modifications.
 +You must cause all Covered Code to which you contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin o [...]
 +
 +3.4. Intellectual Property Matters
 +
 +(a) Third Party Claims.
 +If You have knowledge that a party claims an intellectual property right in particular functionality or code (or its utilization under this License), you must include a text file with the source code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If you obtain such knowledge after You make Your Modification available as described in Section 3.2, You shall promptly modify the LEGAL file [...]
 +available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.
 +
 +(b) Contributor APIs.
 +If Your Modification is an application programming interface and You own or control patents which are reasonably necessary to implement that API, you must also include this information in the LEGAL file.
 +
 +3.5. Required Notices.
 +You must duplicate the notice in Exhibit A in each file of the Source Code, and this License in any documentation for the Source Code, where You describe recipients' rights relating to Covered Code. If You created one or more Modification(s), You may add your name as a Contributor to the notice described in Exhibit A. If it is not possible to put such notice in a particular Source Code file due to its
 +structure, then you must include such notice in a location (such as a relevant directory file) where a user would be likely to look for such a notice. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or
 +liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of
 +warranty, support, indemnity or liability terms You offer.
 +
 +3.6. Distribution of Executable Versions.
 +You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You
 +describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code under a license of Your choice, which may contain terms different from this License,
 +provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemn [...]
 +
 +3.7. Larger Works.
 +You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
 +
 +4. Inability to Comply Due to Statute or Regulation.
 +
 +If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or reg [...]
 +
 +5. Application of this License.
 +
 +This License applies to code to which the Initial Developer has attached the notice in Exhibit A, and to related Covered Code.
 +
 +6. Versions of the License.
 +
 +6.1. New Versions.
 +Floris van den Berg may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.
 +
 +6.2. Effect of New Versions.
 +Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Floris van den Berg
 +No one other than Floris van den Berg has the right to modify the terms applicable to Covered Code created under this License.
 +
 +6.3. Derivative Works.
 +If you create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), you must (a) rename Your license so that the phrases "FreeImage", `FreeImage Public License", "FIPL", or any confusingly similar phrase do not appear anywhere in your license and (b) otherwise make it clear that your version of the license contains terms which differ from the FreeImage Public License. (Filling in the nam [...]
 +
 +7. DISCLAIMER OF WARRANTY.
 +
 +COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NE [...]
 +
 +8. TERMINATION.
 +
 +This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
 +
 +9. LIMITATION OF LIABILITY.
 +
 +UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMM [...]
 +EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
 +
 +10. U.S. GOVERNMENT END USERS.
 +
 +The Covered Code is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein.
 +
 +11. MISCELLANEOUS.
 +
 +This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by Dutch law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or re [...]
 +
 +12. RESPONSIBILITY FOR CLAIMS.
 +
 +Except in cases where another Contributor has failed to comply with Section 3.4, You are responsible for damages arising, directly or indirectly, out of Your utilization of rights under this License, based
 +on the number of copies of Covered Code you made available, the revenues you received from utilizing such rights, and other relevant factors. You agree to work with affected parties to distribute
 +responsibility on an equitable basis.
 +
 +EXHIBIT A.
 +
 +"The contents of this file are subject to the FreeImage Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://home.wxs.nl/~flvdberg/freeimage-license.txt
 +
 +Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
 +
 +License (GPL):
 +
 +   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'.
++Public License can be found in `/usr/share/common-licenses/GPL-2'.
 +
 +freeimage embeds a copy of libtiff, whose copyright and license are:
 +  Copyright (C) 1988-1997 Sam Leffler
 +  Copyright (C) 1991-1997 Silicon Graphics, Inc.
 +  Portions Copyright (C) 1985-1987, 1990 Regents of the University of California
 +  Portions Copyright (C) 1990, 1991 Digital Equipment Corporation
 +  Portions Copyright (C) 1990 Sun Microsystems, Inc.
 +  Portions Copyright (C) 1990, 1995 Frank D. Cringle
 +  Portions Copyright (C) 1996 BancTec AB
 +  Portions Copyright (C) 1996 Mike Johnson
 +  Portions Copyright (C) 1996 Pixar
 +  Portions Copyright (C) 1997 Greg Ward Larson
 +  Portions Copyright (C) 2000 Frank Warmerdam
 +
 +  Permission to use, copy, modify, distribute, and sell this software and
 +  its documentation for any purpose is hereby granted without fee, provided
 +  that (i) the above copyright notices and this permission notice appear in
 +  all copies of the software and related documentation, and (ii) the names of
 +  Sam Leffler and Silicon Graphics may not be used in any advertising or
 +  publicity relating to the software without the specific, prior written
 +  permission of Sam Leffler and Silicon Graphics.
 +  
 +  THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
 +  EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
 +  WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
 +  
 +  IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 +  ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 +  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 +  WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
 +  LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 +  OF THIS SOFTWARE.
 +
 +
- The Debian packaging is (C) 2007, Federico Di Gregorio <fog at debian.org> and
- is licensed under the GPL, see above.
++The Debian packaging is Copyright (C) 2007, Federico Di Gregorio
++<fog at debian.org> and is licensed under the GPL, see above.
diff --cc debian/freeimage-get-orig-source
index b712115,0000000..6c3874c
mode 100644,000000..100644
--- a/debian/freeimage-get-orig-source
+++ b/debian/freeimage-get-orig-source
@@@ -1,118 -1,0 +1,111 @@@
 +#! /bin/sh
 +
 +# This script is used to generate the freeimage orig tarball used for this
 +# package.
 +
 +# Some variables to make maintaining this script easier
- FREEIMAGE_VERSION="3.10.0"
++FREEIMAGE_VERSION="3.15.1"
 +FREEIMAGE_URL_DIR="http://downloads.sourceforge.net/freeimage"
- FREEIMAGE_TARBALL="FreeImage3100.zip"
- FREEIMAGE_TARBALL_CHECKSUM="2e57135e26bb487cc8e13ee7b7e0a595"
- FREEIMAGE_DOC="FreeImage3100.pdf"
- FREEIMAGE_DOC_CHECKSUM="8f93e322b92a267d5cc84d4d80b9a671"
- FREEIMAGE_CHINESE_DOC="FreeImage380Chinese.pdf"
- FREEIMAGE_CHINESE_DOC_CHECKSUM="8d9481a75b7b86eac8d642f8dc443cf7"
++FREEIMAGE_TARBALL="FreeImage3151.zip"
++FREEIMAGE_TARBALL_CHECKSUM="450d2ff278690b0d1d7d7d58fad083cc"
++FREEIMAGE_DOC="FreeImage3151.pdf"
++FREEIMAGE_DOC_CHECKSUM="49325c97ba1f557f5fa34e1c480082b5"
 +
 +USAGE="\n\
 +This script is used to generate the orig tarball used in building\n\
 +Debian packages for freeimage-$FREEIMAGE_VERSION.\n\
 +Usage: freeimage-get-orig-source [OPTION]\n\
 +\n\
 + -h, --help                 Display this help message.\n\
 + --keep-upstream-files      Keep downloaded files.\n\
 + --keep-orig-dir            Keep the generated orig directory.\n"
 +
 +while [ "$#" -gt "0" ]
 +do
 +    case "$1" in
 +        --keep-upstream-files)
 +            KEEP_UPSTREAM_FILES=1
 +            shift
 +            ;;
 +        --keep-orig-dir)
 +            KEEP_ORIG_DIR=1
 +            shift
 +            ;;
 +        -h|--help|*)
 +            echo >&2 "${USAGE}"
 +            exit 1
 +            ;;
 +    esac
 +done
 +
 +set -e
 +
 +# Function to download files. Takes two parameters, the directory name of the
 +# url to use, and the filename of the file.
 +download() {
 +    local url="$1/$2"
 +    if [ ! -f $2 ] ; then
 +        # Download the tarball
 +        wget $url
 +    fi
 +}
 +
 +# Function to verify the checksum. Takes two parameters, the file to compute the
 +# checksum for and the checksum it should be.
 +verify_checksum() {
 +    local checksum=`md5sum $1 | cut -d ' ' -f 1`
 +
 +    if [ $2 != $checksum ] ; then
 +        echo "Checksum verification failed. Checksum was $checksum
 +    Expected checksum $2"
 +        exit 1
 +    else
 +        echo "Checksum verified. Checksum is $2"
 +    fi
 +}
 +
 +# The rest is our main functions.
 +#Download the files
 +download $FREEIMAGE_URL_DIR $FREEIMAGE_TARBALL
 +download $FREEIMAGE_URL_DIR $FREEIMAGE_DOC
- download $FREEIMAGE_URL_DIR $FREEIMAGE_CHINESE_DOC
 +
 +# Verify the checksums
 +verify_checksum $FREEIMAGE_TARBALL $FREEIMAGE_TARBALL_CHECKSUM
 +verify_checksum $FREEIMAGE_DOC $FREEIMAGE_DOC_CHECKSUM
- verify_checksum $FREEIMAGE_CHINESE_DOC $FREEIMAGE_CHINESE_DOC_CHECKSUM
 +
 +# Unpack the upstream source
 +if [ ! -d FreeImage -a ! -d freeimage-$FREEIMAGE_VERSION ]; then
 +    echo "Unpacking upstream source."
 +    unzip -qq $FREEIMAGE_TARBALL
 +    mv FreeImage freeimage-$FREEIMAGE_VERSION
 +else
 +    echo -n "Please remove or move FreeImage and freeimage-$FREEIMAGE_VERSION "
 +    echo "directory."
 +    exit 1
 +fi
 +
 +# Move the extra documentation into the extracted directory and pack into a
 +# gzipped tarball
 +if [ ! -f freeimage-$FREEIMAGE_VERSION ]; then
 +    echo "Creating freeimage_$FREEIMAGE_VERSION orig tarball."
 +    [ -d freeimage-$FREEIMAGE_VERSION/extra.Debian ] || \
 +        mkdir -p freeimage-$FREEIMAGE_VERSION/extra.Debian
 +    cp -f $FREEIMAGE_DOC \
 +        freeimage-$FREEIMAGE_VERSION/extra.Debian/$FREEIMAGE_DOC
-     cp -f $FREEIMAGE_CHINESE_DOC \
-         freeimage-$FREEIMAGE_VERSION/extra.Debian/$FREEIMAGE_CHINESE_DOC
 +    tar -czf freeimage_$FREEIMAGE_VERSION.orig.tar.gz \
 +        freeimage-$FREEIMAGE_VERSION
 +else
 +    echo "Please remove or move freeimage_$FREEIMAGE_VERSION.orig.tar.gz."
 +    exit 1
 +fi
 +
 +# Perform cleanup
 +if [ -z "$KEEP_ORIG_DIR" ]; then
 +    echo "Removing extracted directory."
 +    rm -rf freeimage-$FREEIMAGE_VERSION
 +fi
 +if [ -z "$KEEP_UPSTREAM_FILES" ]; then
 +    echo "Removing upstream files."
 +    rm $FREEIMAGE_TARBALL
 +    rm $FREEIMAGE_DOC
-     rm $FREEIMAGE_CHINESE_DOC
 +fi
diff --cc debian/patches/disable_embedded_libraries.patch
index 0000000,0000000..fdb3fdf
new file mode 100644
--- /dev/null
+++ b/debian/patches/disable_embedded_libraries.patch
@@@ -1,0 -1,0 +1,417 @@@
++Description: Disable embedded libraries
++ freeimage normally builds with embedded copies of libjpeg, libpng,
++ libmng, libopenjpeg, libopenexr, zlib, libtiff.
++ .
++ Switch to using packaged versions for all of these except libtiff,
++ where freeimage digs deep into its internals.
++ .
++ This patch does not modify Makefile.srcs and fipMakefile.srcs - those
++ are patched as part of the patch build process.
++Origin: vendor
++Forwarded: no
++Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595560
++Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/freeimage/+bug/898825
++Author: Julien Cristau <jcristau at debian.org>
++Author: Evan Broder <evan at ebroder.net>
++Last-Update: 2011-12-04
++
++Index: freeimage/gensrclist.sh
++===================================================================
++--- freeimage.orig/gensrclist.sh	2011-12-04 11:58:25.253788363 -0800
+++++ freeimage/gensrclist.sh	2011-12-04 19:29:25.151410188 -0800
++@@ -1,6 +1,7 @@
++ #!/bin/sh
++ 
++-DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibJPEG Source/LibMNG Source/LibPNG Source/LibTIFF Source/ZLib Source/LibOpenJPEG Source/OpenEXR Source/OpenEXR/Half Source/OpenEXR/Iex Source/OpenEXR/IlmImf Source/OpenEXR/IlmThread Source/OpenEXR/Imath Source/LibRawLite Source/LibRawLite/dcraw Source/LibRawLite/internal Source/LibRawLite/libraw Source/LibRawLite/src"
+++DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibTIFF"
+++DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibTIFF"
++ 
++ echo "VER_MAJOR = 3" > Makefile.srcs
++ echo "VER_MINOR = 15.1" >> Makefile.srcs
++@@ -12,15 +13,17 @@
++ 		egrep 'RelativePath=.*\.(c|cpp)' $DIR/*.2008.vcproj | cut -d'"' -f2 | tr '\\' '/' | awk '{print "'$DIR'/"$0}' | tr '\r\n' '  ' | tr -s ' ' >> Makefile.srcs
++ 	fi
++ done
+++echo -n ' Source/LibJPEG/transupp.c' >> Makefile.srcs
++ echo >> Makefile.srcs
++ 
++ echo -n "INCLS = " >> Makefile.srcs
++-find . -name "*.h" -print | xargs echo >> Makefile.srcs
+++find . \( \( -name 'Lib*' -and -not -name 'LibTIFF' \) -or -name 'OpenEXR' -or -name 'ZLib' \) -prune -or -name '*.h' -print | sort | xargs echo -n >> Makefile.srcs
++ echo >> Makefile.srcs
++ 
++ echo -n "INCLUDE =" >> Makefile.srcs
++ for DIR in $DIRLIST; do
++ 	echo -n " -I$DIR" >> Makefile.srcs
++ done
+++echo ' $(shell pkg-config --cflags zlib OpenEXR libraw libpng)' >> Makefile.srcs
++ echo >> Makefile.srcs
++ 
++Index: freeimage/genfipsrclist.sh
++===================================================================
++--- freeimage.orig/genfipsrclist.sh	2011-12-04 11:58:25.273788364 -0800
+++++ freeimage/genfipsrclist.sh	2011-12-04 12:09:55.297812870 -0800
++@@ -1,6 +1,7 @@
++ #!/bin/sh
++ 
++-DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibJPEG Source/LibMNG Source/LibPNG Source/LibTIFF Source/ZLib Source/LibOpenJPEG Source/OpenEXR Source/OpenEXR/Half Source/OpenEXR/Iex Source/OpenEXR/IlmImf Source/OpenEXR/IlmThread Source/OpenEXR/Imath Source/LibRawLite Source/LibRawLite/dcraw Source/LibRawLite/internal Source/LibRawLite/libraw Source/LibRawLite/src Wrapper/FreeImagePlus"
+++DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibTIFF Wrapper/FreeImagePlus"
+++DIRLIST=". Source Source/Metadata Source/FreeImageToolkit Source/LibTIFF Wrapper/FreeImagePlus"
++ 
++ 
++ echo "VER_MAJOR = 3" > fipMakefile.srcs
++@@ -13,11 +14,13 @@
++ 		egrep 'RelativePath=.*\.(c|cpp)' $DIR/*.2008.vcproj | cut -d'"' -f2 | tr '\\' '/' | awk '{print "'$DIR'/"$0}' | tr '\r\n' '  ' | tr -s ' ' >> fipMakefile.srcs
++ 	fi
++ done
+++echo -n ' Source/LibJPEG/transupp.c' >> fipMakefile.srcs
++ echo >> fipMakefile.srcs
++ 
++ echo -n "INCLUDE =" >> fipMakefile.srcs
++ for DIR in $DIRLIST; do
++ 	echo -n " -I$DIR" >> fipMakefile.srcs
++ done
+++echo ' $(shell pkg-config --cflags zlib OpenEXR libraw libpng)' >> fipMakefile.srcs
++ echo >> fipMakefile.srcs
++ 
++Index: freeimage/Source/FreeImage/ZLibInterface.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/ZLibInterface.cpp	2011-12-04 11:58:25.313788366 -0800
+++++ freeimage/Source/FreeImage/ZLibInterface.cpp	2011-12-04 11:58:26.429788405 -0800
++@@ -19,10 +19,10 @@
++ // Use at your own risk!
++ // ==========================================================
++ 
++-#include "../ZLib/zlib.h"
+++#include <zlib.h>
++ #include "FreeImage.h"
++ #include "Utilities.h"
++-#include "../ZLib/zutil.h"	/* must be the last header because of error C3163 in VS2008 (_vsnprintf defined in stdio.h) */
+++//#include "../ZLib/zutil.h"	/* must be the last header because of error C3163 in VS2008 (_vsnprintf defined in stdio.h) */
++ 
++ /**
++ Compresses a source buffer into a target buffer, using the ZLib library. 
++@@ -115,7 +115,7 @@
++ 			return 0;
++         case Z_OK: {
++             // patch header, setup crc and length (stolen from mod_trace_output)
++-            BYTE *p = target + 8; *p++ = 2; *p = OS_CODE; // xflags, os_code
+++            BYTE *p = target + 8; *p++ = 2; *p = 0x03; // xflags, os_code
++  	        crc = crc32(crc, source, source_size);
++ 	        memcpy(target + 4 + dest_len, &crc, 4);
++ 	        memcpy(target + 8 + dest_len, &source_size, 4);
++Index: freeimage/Source/FreeImage/PluginJPEG.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginJPEG.cpp	2011-12-04 11:58:25.333788367 -0800
+++++ freeimage/Source/FreeImage/PluginJPEG.cpp	2011-12-04 11:58:26.429788405 -0800
++@@ -35,9 +35,10 @@
++ #undef FAR
++ #include <setjmp.h>
++ 
++-#include "../LibJPEG/jinclude.h"
++-#include "../LibJPEG/jpeglib.h"
++-#include "../LibJPEG/jerror.h"
+++#include <sys/types.h>
+++#include <stdio.h>
+++#include <jpeglib.h>
+++#include <jerror.h>
++ }
++ 
++ #include "FreeImage.h"
++@@ -165,7 +166,7 @@
++ 
++ 	dest->buffer = (JOCTET *)
++ 	  (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
++-				  OUTPUT_BUF_SIZE * SIZEOF(JOCTET));
+++				  OUTPUT_BUF_SIZE * sizeof(JOCTET));
++ 
++ 	dest->pub.next_output_byte = dest->buffer;
++ 	dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;
++@@ -354,12 +355,12 @@
++ 
++ 	if (cinfo->src == NULL) {
++ 		cinfo->src = (struct jpeg_source_mgr *) (*cinfo->mem->alloc_small)
++-			((j_common_ptr) cinfo, JPOOL_PERMANENT, SIZEOF(SourceManager));
+++			((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(SourceManager));
++ 
++ 		src = (freeimage_src_ptr) cinfo->src;
++ 
++ 		src->buffer = (JOCTET *) (*cinfo->mem->alloc_small)
++-			((j_common_ptr) cinfo, JPOOL_PERMANENT, INPUT_BUF_SIZE * SIZEOF(JOCTET));
+++			((j_common_ptr) cinfo, JPOOL_PERMANENT, INPUT_BUF_SIZE * sizeof(JOCTET));
++ 	}
++ 
++ 	// initialize the jpeg pointer struct with pointers to functions
++@@ -387,7 +388,7 @@
++ 
++ 	if (cinfo->dest == NULL) {
++ 		cinfo->dest = (struct jpeg_destination_mgr *)(*cinfo->mem->alloc_small)
++-			((j_common_ptr) cinfo, JPOOL_PERMANENT, SIZEOF(DestinationManager));
+++			((j_common_ptr) cinfo, JPOOL_PERMANENT, sizeof(DestinationManager));
++ 	}
++ 
++ 	dest = (freeimage_dst_ptr) cinfo->dest;
++Index: freeimage/Source/FreeImage/PluginEXR.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginEXR.cpp	2011-12-04 11:58:25.353788367 -0800
+++++ freeimage/Source/FreeImage/PluginEXR.cpp	2011-12-04 11:58:26.429788405 -0800
++@@ -22,16 +22,16 @@
++ 
++ #include "FreeImage.h"
++ #include "Utilities.h"
++-#include "../OpenEXR/IlmImf/ImfIO.h"
++-#include "../OpenEXR/Iex/Iex.h"
++-#include "../OpenEXR/IlmImf/ImfOutputFile.h"
++-#include "../OpenEXR/IlmImf/ImfInputFile.h"
++-#include "../OpenEXR/IlmImf/ImfRgbaFile.h"
++-#include "../OpenEXR/IlmImf/ImfChannelList.h"
++-#include "../OpenEXR/IlmImf/ImfRgba.h"
++-#include "../OpenEXR/IlmImf/ImfArray.h"
++-#include "../OpenEXR/IlmImf/ImfPreviewImage.h"
++-#include "../OpenEXR/Half/half.h"
+++#include <OpenEXR/ImfIO.h>
+++#include <OpenEXR/Iex.h>
+++#include <OpenEXR/ImfOutputFile.h>
+++#include <OpenEXR/ImfInputFile.h>
+++#include <OpenEXR/ImfRgbaFile.h>
+++#include <OpenEXR/ImfPreviewImage.h>
+++#include <OpenEXR/ImfChannelList.h>
+++#include <OpenEXR/ImfRgba.h>
+++#include <OpenEXR/ImfArray.h>
+++#include <OpenEXR/half.h>
++ 
++ 
++ // ==========================================================
++Index: freeimage/Source/FreeImage/PluginJ2K.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginJ2K.cpp	2011-12-04 11:58:25.377788367 -0800
+++++ freeimage/Source/FreeImage/PluginJ2K.cpp	2011-12-04 11:58:26.429788405 -0800
++@@ -21,7 +21,7 @@
++ 
++ #include "FreeImage.h"
++ #include "Utilities.h"
++-#include "../LibOpenJPEG/openjpeg.h"
+++#include <openjpeg.h>
++ 
++ // ==========================================================
++ // Plugin Interface
++Index: freeimage/Source/FreeImage/PluginPNG.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginPNG.cpp	2011-12-04 11:58:25.397788368 -0800
+++++ freeimage/Source/FreeImage/PluginPNG.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -37,8 +37,7 @@
++ 
++ // ----------------------------------------------------------
++ 
++-#include "../ZLib/zlib.h"
++-#include "../LibPNG/png.h"
+++#include <png.h>
++ 
++ // ----------------------------------------------------------
++ 
++@@ -102,7 +101,10 @@
++ 			tag = FreeImage_CreateTag();
++ 			if(!tag) return FALSE;
++ 
++-			DWORD tag_length = (DWORD) MAX(text_ptr[i].text_length, text_ptr[i].itxt_length);
+++			DWORD tag_length = text_ptr[i].text_length;
+++#ifdef PNG_iTXt_SUPPORTED
+++			tag_length = MAX(tag_length, text_ptr[i].itxt_length);
+++#endif
++ 
++ 			FreeImage_SetTagLength(tag, tag_length);
++ 			FreeImage_SetTagCount(tag, tag_length);
++@@ -145,13 +147,19 @@
++ 	if(mdhandle) {
++ 		do {
++ 			memset(&text_metadata, 0, sizeof(png_text));
+++#ifdef PNG_iTXt_SUPPORTED
++ 			text_metadata.compression = 1;							// iTXt, none
+++#else
+++			text_metadata.compression = -1;
+++#endif
++ 			text_metadata.key = (char*)FreeImage_GetTagKey(tag);	// keyword, 1-79 character description of "text"
++ 			text_metadata.text = (char*)FreeImage_GetTagValue(tag);	// comment, may be an empty string (ie "")
++ 			text_metadata.text_length = FreeImage_GetTagLength(tag);// length of the text string
+++#ifdef PNG_iTXt_SUPPORTED
++ 			text_metadata.itxt_length = FreeImage_GetTagLength(tag);// length of the itxt string
++ 			text_metadata.lang = 0;		 // language code, 0-79 characters or a NULL pointer
++ 			text_metadata.lang_key = 0;	 // keyword translated UTF-8 string, 0 or more chars or a NULL pointer
+++#endif
++ 
++ 			// set the tag 
++ 			png_set_text(png_ptr, info_ptr, &text_metadata, 1);
++@@ -167,13 +175,19 @@
++ 	FreeImage_GetMetadata(FIMD_XMP, dib, g_TagLib_XMPFieldName, &tag);
++ 	if(tag && FreeImage_GetTagLength(tag)) {
++ 		memset(&text_metadata, 0, sizeof(png_text));
+++#ifdef PNG_iTXt_SUPPORTED
++ 		text_metadata.compression = 1;							// iTXt, none
+++#else
+++		text_metadata.compression = -1;
+++#endif
++ 		text_metadata.key = g_png_xmp_keyword;					// keyword, 1-79 character description of "text"
++ 		text_metadata.text = (char*)FreeImage_GetTagValue(tag);	// comment, may be an empty string (ie "")
++ 		text_metadata.text_length = FreeImage_GetTagLength(tag);// length of the text string
+++#ifdef PNG_iTXt_SUPPORTED
++ 		text_metadata.itxt_length = FreeImage_GetTagLength(tag);// length of the itxt string
++ 		text_metadata.lang = 0;		 // language code, 0-79 characters or a NULL pointer
++ 		text_metadata.lang_key = 0;	 // keyword translated UTF-8 string, 0 or more chars or a NULL pointer
+++#endif
++ 
++ 		// set the tag 
++ 		png_set_text(png_ptr, info_ptr, &text_metadata, 1);
++@@ -554,7 +568,7 @@
++ 
++ 			if (png_get_valid(png_ptr, info_ptr, PNG_INFO_iCCP)) {
++ 				png_charp profile_name = NULL;
++-				png_bytep profile_data = NULL;
+++				png_charp profile_data = NULL;
++ 				png_uint_32 profile_length = 0;
++ 				int  compression_type;
++ 
++@@ -826,7 +840,7 @@
++ 
++ 			FIICCPROFILE *iccProfile = FreeImage_GetICCProfile(dib);
++ 			if (iccProfile->size && iccProfile->data) {
++-				png_set_iCCP(png_ptr, info_ptr, "Embedded Profile", 0, (png_const_bytep)iccProfile->data, iccProfile->size);
+++				png_set_iCCP(png_ptr, info_ptr, "Embedded Profile", 0, (png_charp)iccProfile->data, iccProfile->size);
++ 			}
++ 
++ 			// write metadata
++Index: freeimage/Source/FreeImage/J2KHelper.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/J2KHelper.cpp	2011-12-04 11:58:25.421788369 -0800
+++++ freeimage/Source/FreeImage/J2KHelper.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -21,7 +21,7 @@
++ 
++ #include "FreeImage.h"
++ #include "Utilities.h"
++-#include "../LibOpenJPEG/openjpeg.h"
+++#include <openjpeg.h>
++ 
++ /**
++ Divide an integer by a power of 2 and round upwards
++Index: freeimage/Source/FreeImage/PluginMNG.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginMNG.cpp	2011-12-04 11:58:25.441788370 -0800
+++++ freeimage/Source/FreeImage/PluginMNG.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -22,14 +22,7 @@
++ #include "FreeImage.h"
++ #include "Utilities.h"
++ 
++-#include "../LibMNG/libmng.h"
++-//#include "../LibMNG/libmng_data.h"
++-
++-// ==========================================================
++-// Plugin Interface
++-// ==========================================================
++-
++-static int s_format_id;
+++#include <libmng.h>
++ 
++ // ----------------------------------------------------------
++ //   Constants + headers
++@@ -41,6 +34,12 @@
++ 	fi_handle   file;	    // pointer to the file we're decoding
++ } mngstuff;
++ 
+++// ==========================================================
+++// Plugin Interface
+++// ==========================================================
+++
+++static int s_format_id;
+++
++ // ----------------------------------------------------------
++ //   Callbacks for the mng decoder
++ // ----------------------------------------------------------
++Index: freeimage/Source/FreeImage/PluginJP2.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginJP2.cpp	2011-12-04 11:58:25.465788371 -0800
+++++ freeimage/Source/FreeImage/PluginJP2.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -21,7 +21,7 @@
++ 
++ #include "FreeImage.h"
++ #include "Utilities.h"
++-#include "../LibOpenJPEG/openjpeg.h"
+++#include <openjpeg.h>
++ 
++ // ==========================================================
++ // Plugin Interface
++Index: freeimage/Source/FreeImage/PluginRAW.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginRAW.cpp	2011-12-04 11:58:25.489788371 -0800
+++++ freeimage/Source/FreeImage/PluginRAW.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -23,7 +23,7 @@
++ #include "Utilities.h"
++ #include "../Metadata/FreeImageTag.h"
++ 
++-#include "../LibRawLite/libraw/libraw.h"
+++#include <libraw/libraw.h>
++ 
++ // ==========================================================
++ // Plugin Interface
++@@ -115,6 +115,10 @@
++ 
++ 		return sscanf(buffer.c_str(), fmt, val);
++ 	}
+++	virtual void* make_jas_stream() {
+++		/* not implemented */
+++		return NULL;
+++	}
++ };
++ 
++ // ----------------------------------------------------------
++@@ -447,8 +451,6 @@
++ 
++ 		// (-w) Use camera white balance, if possible (otherwise, fallback to auto_wb)
++ 		RawProcessor.imgdata.params.use_camera_wb = 1;
++-		// RAW data filtration mode during data unpacking and postprocessing
++-		RawProcessor.imgdata.params.filtering_mode = LIBRAW_FILTERING_AUTOMATIC;
++ 		// (-h) outputs the image in 50% size
++ 		RawProcessor.imgdata.params.half_size = ((flags & RAW_HALFSIZE) == RAW_HALFSIZE) ? 1 : 0;
++ 
++Index: freeimage/Source/FreeImageToolkit/JPEGTransform.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImageToolkit/JPEGTransform.cpp	2011-12-04 11:58:25.517788373 -0800
+++++ freeimage/Source/FreeImageToolkit/JPEGTransform.cpp	2011-12-04 11:58:26.433788406 -0800
++@@ -25,9 +25,10 @@
++ #undef FAR
++ #include <setjmp.h>
++ 
++-#include "../LibJPEG/jinclude.h"
++-#include "../LibJPEG/jpeglib.h"
++-#include "../LibJPEG/jerror.h"
+++#include <sys/types.h>
+++#include <stdio.h>
+++#include <jpeglib.h>
+++#include <jerror.h>
++ #include "../LibJPEG/transupp.h"
++ }
++ 
++Index: freeimage/Makefile.fip
++===================================================================
++--- freeimage.orig/Makefile.fip	2011-12-04 11:58:25.209788361 -0800
+++++ freeimage/Makefile.fip	2011-12-04 19:27:18.935405706 -0800
++@@ -11,7 +11,7 @@
++ # Converts cr/lf to just lf
++ DOS2UNIX = dos2unix
++ 
++-LIBRARIES = -lstdc++
+++LIBRARIES = -lstdc++ -lmng -ljpeg -lopenjpeg $(shell pkg-config --libs zlib OpenEXR libraw libpng)
++ 
++ MODULES = $(SRCS:.c=.o)
++ MODULES := $(MODULES:.cpp=.o)
++Index: freeimage/Makefile.gnu
++===================================================================
++--- freeimage.orig/Makefile.gnu	2011-12-04 11:58:25.189788361 -0800
+++++ freeimage/Makefile.gnu	2011-12-04 19:26:51.691404738 -0800
++@@ -11,7 +11,7 @@
++ # Converts cr/lf to just lf
++ DOS2UNIX = dos2unix
++ 
++-LIBRARIES = -lstdc++
+++LIBRARIES = -lstdc++ -ljpeg -lmng -lopenjpeg $(shell pkg-config --libs zlib OpenEXR libraw libpng) -lm
++ 
++ MODULES = $(SRCS:.c=.o)
++ MODULES := $(MODULES:.cpp=.o)
diff --cc debian/patches/fix_ftbfs_amd64.patch
index 468b44e,0000000..b2f6b83
mode 100644,000000..100644
--- a/debian/patches/fix_ftbfs_amd64.patch
+++ b/debian/patches/fix_ftbfs_amd64.patch
@@@ -1,24 -1,0 +1,15 @@@
 +Patch that fixes several problems for building on amd64. Thanks Fedora guys.
 +=====================================================================
- --- freeimage/Source/FreeImage/PluginBMP.cpp~	2007-10-21 16:50:08.000000000 +0200
- +++ freeimage/Source/FreeImage/PluginBMP.cpp	2008-03-12 23:14:51.000000000 +0100
- @@ -189,6 +189,8 @@
-  #endif
-  }
-  
- +#define MIN(a, b) ( ((a) < (b))? (a):(b) )
- +
-  /**
-  Load image pixels for 4-bit RLE compressed dib
-  @param io FreeImage IO
- --- freeimage/Source/Metadata/Exif.cpp~	2007-07-17 03:28:26.000000000 +0200
- +++ freeimage/Source/Metadata/Exif.cpp	2008-03-13 19:19:07.000000000 +0100
- @@ -495,7 +495,7 @@
-  		}
-  
-  		// remember that we've visited this directory so that we don't visit it again later
- -		DWORD visited = (((DWORD)ifdp & 0xFFFF) << 16) | (DWORD)de;
- +		DWORD visited = (((DWORD)((long)ifdp) & 0xFFFF) << 16) | (DWORD)de;
-  		if(visitedIFD.find(visited) != visitedIFD.end()) {
-  			continue;
-  		} else {
++Index: freeimage/Source/FreeImage/PluginBMP.cpp
++===================================================================
++--- freeimage.orig/Source/FreeImage/PluginBMP.cpp	2011-12-03 21:40:26.000000000 -0800
+++++ freeimage/Source/FreeImage/PluginBMP.cpp	2011-12-03 21:40:30.988882105 -0800
++@@ -192,6 +192,8 @@
++ 	return TRUE;
++ }
++ 
+++#define MIN(a, b) ( ((a) < (b))? (a):(b) )
+++
++ /**
++ Load image pixels for 4-bit RLE compressed dib
++ @param io FreeImage IO
diff --cc debian/patches/makefile_modifications.patch
index 2f2bade,0000000..c6d5b9f
mode 100644,000000..100644
--- a/debian/patches/makefile_modifications.patch
+++ b/debian/patches/makefile_modifications.patch
@@@ -1,102 -1,0 +1,81 @@@
 +Some modificatoins to the makefiles to help in build Debian packages.
 +Also removed -s (strip) option so we can make debug package. With the compiler
 +options we're using by default, debugging should still be possible.
 +==========================================================================
 +Index: freeimage/Makefile.fip
 +===================================================================
- --- freeimage.orig/Makefile.fip
- +++ freeimage/Makefile.fip
- @@ -4,18 +4,21 @@
-  include fipMakefile.srcs
-  
-  # General configuration variables:
- -CC = gcc
- -CXX = g++
- +CC ?= gcc
- +CXX ?= g++
-  AR = ar
-  
- -INCDIR = /usr/include
- -INSTALLDIR = /usr/lib
- +# Include a configurable DESTDIR variable
- +DESTDIR ?= /
- +INCDIR = $(DESTDIR)usr/include
- +INSTALLDIR = $(DESTDIR)usr/lib
-  
-  # Converts cr/lf to just lf
-  DOS2UNIX = dos2unix
-  
- -COMPILERFLAGS = -O3 -fexceptions -fvisibility=hidden
- -LIBRARIES = -lstdc++
- +COMPILERFLAGS ?= -O3 -fexceptions -fvisibility=hidden
- +COMPILERFLAGS += $(shell getconf LFS_CFLAGS)
- +LIBRARIES = -lmng -lz -lpng -lm -ljpeg -lopenjpeg $(shell pkg-config --libs OpenEXR)
-  
-  MODULES = $(SRCS:.c=.o)
-  MODULES := $(MODULES:.cpp=.o)
- @@ -56,7 +58,7 @@
-  	$(AR) r $@ $(MODULES)
-  
-  $(SHAREDLIB): $(MODULES)
- -	$(CC) -s -shared -Wl,-soname,$(VERLIBNAME) -o $@ $(MODULES) $(LIBRARIES)
- +	$(CXX) -shared -Wl,-soname,$(VERLIBNAME) -Wl,-z,defs -o $@ $(MODULES) $(CXXFLAGS) $(LIBRARIES)
-  
-  install:
-  	install -m 644 -o root -g root $(HEADER) $(INCDIR)
- @@ -65,7 +67,6 @@
-  	install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
-  	ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
-  	ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
- -	ldconfig
-  
-  clean:
-  	rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
++--- freeimage.orig/Makefile.fip	2011-12-04 11:43:19.000000000 -0800
+++++ freeimage/Makefile.fip	2011-12-04 11:49:31.245769399 -0800
++@@ -15,10 +15,12 @@
++ 
++ MODULES = $(SRCS:.c=.o)
++ MODULES := $(MODULES:.cpp=.o)
++-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
++-CFLAGS += $(INCLUDE)
++-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
++-CXXFLAGS += $(INCLUDE)
+++CFLAGS ?= -O3 -fPIC
+++override CFLAGS += -fexceptions -fvisibility=hidden -DNO_LCMS
+++override CFLAGS += $(INCLUDE)
+++CXXFLAGS ?= -O3 -fPIC
+++override CXXFLAGS += -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
+++override CXXFLAGS += $(INCLUDE)
++ 
++ ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
++ 	CFLAGS += -fPIC
++@@ -59,7 +61,7 @@
++ 	$(AR) r $@ $(MODULES)
++ 
++ $(SHAREDLIB): $(MODULES)
++-	$(CC) -s -shared -Wl,-soname,$(VERLIBNAME) $(LDFLAGS) -o $@ $(MODULES) $(LIBRARIES)
+++	$(CXX) -shared -Wl,-soname,$(VERLIBNAME) -Wl,-z,defs $(LDFLAGS) -o $@ $(MODULES) $(CXXFLAGS) $(LIBRARIES)
++ 
++ install:
++ 	install -d $(INCDIR) $(INSTALLDIR)
++@@ -67,6 +69,8 @@
++ 	install -m 644 -o root -g root $(HEADERFIP) $(INCDIR)
++ 	install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
++ 	install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
+++	ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
+++	ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
++ 
++ clean:
++ 	rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
 +Index: freeimage/Makefile.gnu
 +===================================================================
- --- freeimage.orig/Makefile.gnu
- +++ freeimage/Makefile.gnu
- @@ -4,18 +4,21 @@
-  include Makefile.srcs
-  
-  # General configuration variables:
- -CC = gcc
- -CXX = g++
- +CC ?= gcc
- +CXX ?= g++
-  AR = ar
-  
- -INCDIR = /usr/include
- -INSTALLDIR = /usr/lib
- +# Include a configurable DESTDIR variable
- +DESTDIR ?= /
- +INCDIR = $(DESTDIR)usr/include
- +INSTALLDIR = $(DESTDIR)usr/lib
-  
-  # Converts cr/lf to just lf
-  DOS2UNIX = dos2unix
-  
- -COMPILERFLAGS = -O3 -fPIC -fexceptions -fvisibility=hidden
- -LIBRARIES = -lstdc++
- +COMPILERFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden
- +COMPILERFLAGS += $(shell getconf LFS_CFLAGS)
- +LIBRARIES = -ljpeg -lmng -lopenjpeg -lpng $(shell pkg-config --libs OpenEXR) -lz -lm
-  
-  MODULES = $(SRCS:.c=.o)
-  MODULES := $(MODULES:.cpp=.o)
- @@ -55,7 +57,7 @@
-  	$(AR) r $@ $(MODULES)
-  
-  $(SHAREDLIB): $(MODULES)
- -	$(CC) -s -shared -Wl,-soname,$(VERLIBNAME) -o $@ $(MODULES) $(LIBRARIES)
- +	$(CXX) -shared -Wl,-soname,$(VERLIBNAME) -Wl,-z,defs -o $@ $(MODULES) $(CXXFLAGS) $(LIBRARIES)
-  
-  install:
-  	install -m 644 -o root -g root $(HEADER) $(INCDIR)
- @@ -63,7 +65,6 @@
-  	install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
-  	ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
-  	ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)	
- -	ldconfig
-  
-  clean:
-  	rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
++--- freeimage.orig/Makefile.gnu	2011-12-04 11:44:21.000000000 -0800
+++++ freeimage/Makefile.gnu	2011-12-04 11:49:10.365768658 -0800
++@@ -15,10 +15,12 @@
++ 
++ MODULES = $(SRCS:.c=.o)
++ MODULES := $(MODULES:.cpp=.o)
++-CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
++-CFLAGS += $(INCLUDE)
++-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
++-CXXFLAGS += $(INCLUDE)
+++CFLAGS ?= -O3 -fPIC
+++override CFLAGS += -fexceptions -fvisibility=hidden -DNO_LCMS
+++override CFLAGS += $(INCLUDE)
+++CXXFLAGS ?= -O3 -fPIC
+++override CXXFLAGS += -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
+++override CXXFLAGS += $(INCLUDE)
++ 
++ ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
++ 	CFLAGS += -fPIC
++@@ -58,7 +60,7 @@
++ 	$(AR) r $@ $(MODULES)
++ 
++ $(SHAREDLIB): $(MODULES)
++-	$(CC) -s -shared -Wl,-soname,$(VERLIBNAME) $(LDFLAGS) -o $@ $(MODULES) $(LIBRARIES)
+++	$(CXX) -shared -Wl,-soname,$(VERLIBNAME) -Wl,-z,defs $(LDFLAGS) -o $@ $(MODULES) $(CXXFLAGS) $(LIBRARIES)
++ 
++ install:
++ 	install -d $(INCDIR) $(INSTALLDIR)
++@@ -67,7 +69,6 @@
++ 	install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
++ 	ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
++ 	ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)	
++-	ldconfig
++ 
++ clean:
++ 	rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
diff --cc debian/patches/series
index b645b12,0000000..c08a501
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,2 -1,0 +1,3 @@@
++disable_embedded_libraries.patch
 +fix_ftbfs_amd64.patch
 +makefile_modifications.patch
diff --cc debian/rules
index 165bd4d,0000000..6690407
mode 100755,000000..100755
--- a/debian/rules
+++ b/debian/rules
@@@ -1,100 -1,0 +1,44 @@@
 +#!/usr/bin/make -f
 +# -*- makefile -*-
 +
- # export DH_VERBOSE=1
++CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -fPIC
++CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) -fPIC
++LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 +
- # Used for setting the compiler
- export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
++%:
++	dh $@ --with=autoreconf
 +
- ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- 	DEB_OPTFLAGS += -O0 -fPIC -D_REENTRANT
- 	DEB_FIP_OPTFLAGS += -O0 -fPIC -D_REENTRANT
- else
- 	DEB_OPTFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden -D_REENTRANT
- 	DEB_FIP_OPTFLAGS += -O3 -fPIC -fexceptions -fvisibility=hidden -D_REENTRANT
- endif
++gen-src-list:
++	fromdos gensrclist.sh
++	fromdos genfipsrclist.sh
++	sh gensrclist.sh
++	sh genfipsrclist.sh
 +
- # Setting our own compiler flags
- DEB_COMPILERFLAGS ?= -Wall -g $(DEB_OPTFLAGS)
- DEB_FIP_COMPILERFLAGS ?= -Wall -g $(DEB_FIP_OPTFLAGS)
++override_dh_autoreconf:
++	dh_autoreconf $(MAKE) -- -f $(CURDIR)/debian/rules gen-src-list
 +
- fromdos: fromdos-stamp
- fromdos-stamp:
- 	dh_testdir
- 	fromdos -e Makefile.gnu
- 	fromdos -e Makefile.fip
- 	fromdos -e Source/FreeImage/PluginBMP.cpp
- 	fromdos -e Source/Metadata/Exif.cpp
++override_dh_auto_build:
++	$(MAKE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
++	$(MAKE) -f Makefile.fip CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
 +
- patch: fromdos patch-stamp
- patch-stamp:
- 	dh_testdir
- 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
- 	touch patch-stamp
- 
- build: patch build-stamp
- build-stamp:
- 	dh_testdir
- 	$(MAKE) COMPILERFLAGS="$(DEB_COMPILERFLAGS)" CC=$(DEB_BUILD_GNU_TYPE)-gcc \
- 		CXX=$(DEB_BUILD_GNU_TYPE)-g++
- 	$(MAKE) -f Makefile.fip COMPILERFLAGS="$(DEB_FIP_COMPILERFLAGS)" \
- 		CC=$(DEB_BUILD_GNU_TYPE)-gcc CXX=$(DEB_BUILD_GNU_TYPE)-g++
- 	touch build-stamp
++override_dh_auto_install:
++	mkdir -p debian/tmp/usr/include
++	mkdir -p debian/tmp/usr/lib
++	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
++	$(MAKE) -f Makefile.fip install DESTDIR=$(CURDIR)/debian/tmp
 +
- clean: clean-stamp unpatch todos
- clean-stamp:
- 	dh_testdir
- 	dh_testroot
- 	rm -f build-stamp
++override_dh_auto_clean:
 +	$(MAKE) clean
 +	$(MAKE) -f Makefile.fip clean
- 	dh_clean
- 
- unpatch:
- 	dh_testdir
- 	QUILT_PATCHES=debian/patches quilt pop -a || test $$? = 2
- 	rm -rf .pc/ patch-stamp
- 
- todos:
- 	dh_testdir
- 	todos -e Makefile.fip
- 	todos -e Makefile.gnu
- 	todos -e Source/FreeImage/PluginBMP.cpp
- 	todos -e Source/Metadata/Exif.cpp
 +
- install: build
- 	dh_testdir
- 	dh_testroot
- 	dh_clean -k
- 	mkdir -p debian/tmp/usr/include
- 	mkdir -p debian/tmp/usr/lib
- 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
- 	$(MAKE) -f Makefile.fip install DESTDIR=$(CURDIR)/debian/tmp/
++override_dh_installdocs:
++	dh_installdocs extra.Debian/*
 +
- # Build architecture-independent files here.
- binary-indep:
- # We have nothing to do by default.
++override_dh_installchangelogs:
++	dh_installchangelogs Whatsnew.txt
 +
- # Build architecture-dependent files here.
- binary-arch: build install
- 	dh_testdir
- 	dh_testroot
- 	dh_installchangelogs
- 	dh_installdocs extra.Debian/*
- 	dh_install
- 	dh_link
- 	dh_strip -plibfreeimage3 --dbg-package=libfreeimage3-dbg
- 	dh_compress
- 	dh_fixperms
- 	dh_makeshlibs -V
- 	dh_installdeb
- 	dh_shlibdeps
- 	dh_gencontrol
- 	dh_md5sums
- 	dh_builddeb
++override_dh_strip:
++	dh_strip --dbg-package=libfreeimage3-dbg
 +
 +get-orig-source:
 +	$(dir $_)freeimage-get-orig-source
- 
- binary: binary-indep binary-arch
- .PHONY: build clean binary-indep binary-arch binary install
diff --cc debian/source/format
index 0000000,0000000..163aaf8
new file mode 100644
--- /dev/null
+++ b/debian/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)

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



More information about the debian-science-commits mailing list