[ossim-plugins] 02/02: Initial Debian packaging.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sat May 28 01:58:09 UTC 2016


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

sebastic pushed a commit to branch master
in repository ossim-plugins.

commit e3eaeb441c8f096815665050740418e9fe6161ea
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat May 28 02:17:11 2016 +0200

    Initial Debian packaging.
---
 debian/README.source                   |   10 +
 debian/changelog                       |    5 +
 debian/compat                          |    1 +
 debian/control                         |   71 ++
 debian/copyright                       |  957 +++++++++++++++++
 debian/gbp.conf                        |   16 +
 debian/ossim-plugin-libraw.install     |    1 +
 debian/ossim-plugins.install           |    1 +
 debian/ossim-plugins.lintian-overrides |    3 +
 debian/patches/cmake.patch             | 1844 ++++++++++++++++++++++++++++++++
 debian/patches/series                  |    1 +
 debian/rules                           |   23 +
 debian/source/format                   |    1 +
 debian/upstream/metadata               |    6 +
 debian/watch                           |    7 +
 15 files changed, 2947 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..9769bf7
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,10 @@
+OSSIM Plugins for Debian
+------------------------
+
+The ossim_plugins subdirectory in the upstream tarball doesn't contain the
+CMake modules. This is included in the separate ossim_package_support
+subdirectory  which is excluded from the repacked upstream tarball.
+When the ossim-plugins package is updated to a new upstream release,
+the cmake patch needs to be updated to include the recent files from the
+CMakeModules directory.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..164b484
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ossim-plugins (1.8.20.3+ds-1) UNRELEASED; urgency=medium
+
+  * Initial release. (closes: #nnnnnn)
+
+ -- epifanio <epiesasha at gmail.com>  Sat, 28 May 2016 01:52:39 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d0a9423
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,71 @@
+Source: ossim-plugins
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: epifanio <epiesasha at gmail.com>
+Section: science
+Priority: extra
+Build-Depends: cmake (>= 2.8),
+               debhelper (>= 9),
+               libgeotiff-dev,
+               libjpeg-dev,
+               libopenthreads-dev,
+               libossim-dev (>= 1.8.20.3),
+               libpng-dev,
+               libtiff-dev
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/ossim-plugins.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-grass/ossim-plugins.git
+Homepage: http://www.ossim.org/
+
+Package: ossim-plugins
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ossim-plugin-libraw (= ${binary:Version})
+Description: OSSIM core plugins
+ Open Source Software Image Map (OSSIM) is a high performance engine for
+ remote sensing, image processing, geographical information systems and
+ photogrammetry. It has been actively developed since 1996.
+ .
+ Designed as a series of high performance software libraries, it is
+ written in C++ employing the latest techniques in object-oriented
+ software design.
+ .
+ The library provides advanced remote sensing, image processing, and
+ geo-spatial functionality. A quick summary of OSSIM functionality
+ includes ortho-rectification, precision terrain correction, rigorous
+ sensor models, very large mosaics, and cross sensor fusions, a wide
+ range of map projections and datums, and a large range of commercial
+ and government data formats. The architecture of the library supports
+ parallel processing with mpi (not enabled), a dynamic plugin architecture,
+ and dynamically connectable objects allowing rapid prototyping of custom
+ image processing chains.
+ .
+ This package contains the OSSIM core plugins.
+
+Package: ossim-plugin-libraw
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: OSSIM libraw plugin 
+ Open Source Software Image Map (OSSIM) is a high performance engine for
+ remote sensing, image processing, geographical information systems and
+ photogrammetry. It has been actively developed since 1996.
+ .
+ Designed as a series of high performance software libraries, it is
+ written in C++ employing the latest techniques in object-oriented
+ software design.
+ .
+ The library provides advanced remote sensing, image processing, and
+ geo-spatial functionality. A quick summary of OSSIM functionality
+ includes ortho-rectification, precision terrain correction, rigorous
+ sensor models, very large mosaics, and cross sensor fusions, a wide
+ range of map projections and datums, and a large range of commercial
+ and government data formats. The architecture of the library supports
+ parallel processing with mpi (not enabled), a dynamic plugin architecture,
+ and dynamically connectable objects allowing rapid prototyping of custom
+ image processing chains.
+ .
+ This package contains the OSSIM libraw plugin.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5752932
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,957 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: OSSIM Plugins
+Upstream-Contact: OSSIM Developers <ossim-developer at lists.sourceforge.net>
+Source: http://download.osgeo.org/ossim/source/
+ The upstream tarball is repacked to exclude all subdirectories other than
+ those for ossim-plugins.
+Files-Excluded: csmApi/*
+ csm_plugins/*
+ gsoc/*
+ libwms/*
+ oms/*
+ ossim/*
+ ossimGui/*
+ ossimPlanet/*
+ ossimPlanetQt/*
+ ossimPredator/*
+ ossim_package_support/*
+ ossim_qt4/*
+ ossimjni/*
+ planet_message/*
+ pqe/*
+
+Files: ossim_plugins/*
+Copyright:        Centre National d'Etudes Spatiales
+                  Centre for Remote Imaging, Sensing and Processing
+ 2005, 2008-2009, Garrett Potts
+            2005, David Burken
+       2000-2001, ImageLinks, Inc
+            1999, Frank Warmerdam
+License: Expat
+
+Files: ossim_plugins/contrib/ossimCFARFilter.cpp
+Copyright: 2006, Apogee Imaging International
+License: LGPL-2.1+
+
+Files: ossim_plugins/contrib/ossimComplexAbs.cpp
+ ossim_plugins/contrib/ossimSPOTNatural.cpp
+Copyright: 2006, Apogee Imaging International
+License: GPL-2+
+
+Files: ossim_plugins/libraw/LibRaw-*/libraw/*
+Copyright: 2008-2010, LibRaw LLC <info at libraw.org>
+License: LGPL-2.1+ or CDDL-1.0 or LibRaw
+
+Files: ossim_plugins/libraw/LibRaw-*/dcraw/dcraw.c
+Copyright: 1997-2009, Dave Coffin, <dcoffin at cybercom.net>
+Comment: http://cybercom.net/~dcoffin/dcraw/
+License: dcraw
+ No license is required to download and use dcraw.c.  However,
+ to lawfully redistribute dcraw, you must either (a) offer, at
+ no extra charge, full source code* for all executable files
+ containing RESTRICTED functions, (b) distribute this code under
+ the GPL Version 2 or later, (c) remove all RESTRICTED functions,
+ re-implement them, or copy them from an earlier, unrestricted
+ Revision of dcraw.c, or (d) purchase a license from the author.
+ .
+ The functions that process Foveon images have been RESTRICTED
+ since Revision 1.237.  All other code remains free for all uses.
+ .
+ *If you have not modified dcraw.c in any way, a link to my
+ homepage qualifies as "full source code".
+
+Files: ossim_plugins/libraw/LibRaw-*/internal/libraw_internal_funcs.h
+ ossim_plugins/libraw/LibRaw-*/internal/var_defines.h
+Copyright: 2008-2009, LibRaw LLC <info at libraw.org>
+License: GPL-2+
+
+Files: ossim_plugins/openjpeg/ossimOpjColor.cpp
+ ossim_plugins/openjpeg/ossimOpjColor.h
+Copyright: 2001-2003, David Janssens
+           2002-2003, Yannick Verschueren
+           2002-2014, Professor Benoit Macq
+           2002-2014, Universite catholique de Louvain (UCL), Belgium
+           2003-2007, Francois-Olivier Devaux
+           2003-2014, Antonin Descampe
+                2005, Herve Drolon, FreeImage Team
+License: BSD-2-clause
+
+Files: ossim_plugins/ossim/ossimPleiadesDimapSupportData.cpp
+ ossim_plugins/ossim/ossimPleiadesDimapSupportData.h
+ ossim_plugins/ossim/ossimPleiadesModel.cpp
+ ossim_plugins/ossim/ossimPleiadesModel.h
+ ossim_plugins/ossim/ossimSpot6DimapSupportData.cpp
+ ossim_plugins/ossim/ossimSpot6DimapSupportData.h
+ ossim_plugins/ossim/ossimSpot6Model.cpp
+ ossim_plugins/ossim/ossimSpot6Model.h
+Copyright: 2012, 2014, Centre National Etudes Spatiales
+License: LGPL-3+
+
+Files: debian/*
+Copyright: 2016, epifanio <epiesasha at gmail.com>
+License: GPL-3+
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+License: LGPL-3+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 3 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 Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public License
+ version 3 can be found in "/usr/share/common-licenses/LGPL-3".
+
+License: CDDL-1.0
+    COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
+    Version 1.0
+    .
+    1. Definitions.
+    .
+    1.1. "Contributor" means each individual or entity that
+    creates or contributes to the creation of Modifications.
+    .
+    1.2. "Contributor Version" means the combination of the
+    Original Software, prior Modifications used by a Contributor
+    (if any), and the Modifications made by that particular
+    Contributor.
+    .
+    1.3. "Covered Software" means (a) the Original Software, or
+    (b) Modifications, or (c) the combination of files
+    containing Original Software with files containing
+    Modifications, in each case including portions thereof.
+    .
+    1.4. "Executable" means the Covered Software in any form
+    other than Source Code.
+    .
+    1.5. "Initial Developer" means the individual or entity that
+    first makes Original Software available under this License.
+    .
+    1.6. "Larger Work" means a work which combines Covered
+    Software or portions thereof with code not governed by the
+    terms of this License.
+    .
+    1.7. "License" means this document.
+    .
+    1.8. "Licensable" means having the right to grant, to the
+    maximum extent possible, whether at the time of the initial
+    grant or subsequently acquired, any and all of the rights
+    conveyed herein.
+    .
+    1.9. "Modifications" means the Source Code and Executable
+    form of any of the following:
+    .
+    A. Any file that results from an addition to, deletion from
+    or modification of the contents of a file containing
+    Original Software or previous Modifications;
+    .
+    B. Any new file that contains any part of the Original
+    Software or previous Modification; or
+    .
+    C. Any new file that is contributed or otherwise made
+    available under the terms of this License.
+    .
+    1.10. "Original Software" means the Source Code and
+    Executable form of computer software code that is originally
+    released under this License.
+    .
+    1.11. "Patent Claims" means any patent claim(s), now owned
+    or hereafter acquired, including without limitation, method,
+    process, and apparatus claims, in any patent Licensable by
+    grantor.
+    .
+    1.12. "Source Code" means (a) the common form of computer
+    software code in which modifications are made and (b)
+    associated documentation included in or with such code.
+    .
+    1.13. "You" (or "Your") means an individual or a legal
+    entity exercising rights under, and complying with all of
+    the terms of, this License. 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 more than fifty percent (50%) of the outstanding shares
+    or beneficial ownership of such entity.
+    .
+    2. License Grants.
+    .
+    2.1. The Initial Developer Grant. Conditioned upon Your
+    compliance with Section 3.1 below and subject to third party
+    intellectual property claims, the Initial Developer hereby
+    grants You a world-wide, royalty-free, non-exclusive
+    license:
+    .
+    (a) under intellectual property rights (other than patent or
+    trademark) Licensable by Initial Developer, to use,
+    reproduce, modify, display, perform, sublicense and
+    distribute the Original Software (or portions thereof), with
+    or without Modifications, and/or as part of a Larger Work;
+    and
+    .
+    (b) under Patent Claims infringed by the making, using or
+    selling of Original Software, to make, have made, use,
+    practice, sell, and offer for sale, and/or otherwise dispose
+    of the Original Software (or portions thereof).
+    .
+    (c) The licenses granted in Sections 2.1(a) and (b) are
+    effective on the date Initial Developer first distributes or
+    otherwise makes the Original Software available to a third
+    party under the terms of this License.
+    .
+    (d) Notwithstanding Section 2.1(b) above, no patent license
+    is granted: (1) for code that You delete from the Original
+    Software, or (2) for infringements caused by: (i) the
+    modification of the Original Software, or (ii) the
+    combination of the Original Software with other software or
+    devices.
+    .
+    2.2. Contributor Grant. Conditioned upon Your compliance
+    with Section 3.1 below and subject to third party
+    intellectual property claims, each Contributor hereby grants
+    You a world-wide, royalty-free, non-exclusive license:
+    .
+    (a) under intellectual property rights (other than patent or
+    trademark) Licensable by Contributor 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 Software and/or as part of a
+    Larger Work; and
+    .
+    (b) under Patent Claims infringed by the making, using, or
+    selling of Modifications made by that Contributor either
+    alone and/or in combination with its Contributor Version (or
+    portions of such combination), to make, use, sell, offer for
+    sale, have made, and/or otherwise dispose of: (1)
+    Modifications made by that Contributor (or portions
+    thereof); and (2) the combination of Modifications made by
+    that Contributor with its Contributor Version (or portions
+    of such combination).
+    .
+    (c) The licenses granted in Sections 2.2(a) and 2.2(b) are
+    effective on the date Contributor first distributes or
+    otherwise makes the Modifications available to a third
+    party.
+    .
+    (d) Notwithstanding Section 2.2(b) above, no patent license
+    is granted: (1) for any code that Contributor has deleted
+    from the Contributor Version; (2) for infringements caused
+    by: (i) third party modifications of Contributor Version, or
+    (ii) the combination of Modifications made by that
+    Contributor with other software (except as part of the
+    Contributor Version) or other devices; or (3) under Patent
+    Claims infringed by Covered Software in the absence of
+    Modifications made by that Contributor.
+    .
+    3. Distribution Obligations.
+    .
+    3.1. Availability of Source Code.
+    .
+    Any Covered Software that You distribute or otherwise make
+    available in Executable form must also be made available in
+    Source Code form and that Source Code form must be
+    distributed only under the terms of this License. You must
+    include a copy of this License with every copy of the Source
+    Code form of the Covered Software You distribute or
+    otherwise make available. You must inform recipients of any
+    such Covered Software in Executable form as to how they can
+    obtain such Covered Software in Source Code form in a
+    reasonable manner on or through a medium customarily used
+    for software exchange.
+    .
+    3.2. Modifications.
+    .
+    The Modifications that You create or to which You contribute
+    are governed by the terms of this License. You represent
+    that You believe Your Modifications are Your original
+    creation(s) and/or You have sufficient rights to grant the
+    rights conveyed by this License.
+    .
+    3.3. Required Notices.
+    .
+    You must include a notice in each of Your Modifications that
+    identifies You as the Contributor of the Modification. You
+    may not remove or alter any copyright, patent or trademark
+    notices contained within the Covered Software, or any
+    notices of licensing or any descriptive text giving
+    attribution to any Contributor or the Initial Developer.
+    .
+    3.4. Application of Additional Terms.
+    .
+    You may not offer or impose any terms on any Covered
+    Software in Source Code form that alters or restricts the
+    applicable version of this License or the recipients' rights
+    hereunder. You may choose to offer, and to charge a fee for,
+    warranty, support, indemnity or liability obligations to one
+    or more recipients of Covered Software. 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 that 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.5. Distribution of Executable Versions.
+    .
+    You may distribute the Executable form of the Covered
+    Software under the terms of this License or under the terms
+    of 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 form does not attempt to limit or
+    alter the recipient's rights in the Source Code form from
+    the rights set forth in this License. If You distribute the
+    Covered Software in Executable form 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 Contributor. 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 any such terms You offer.
+    .
+    3.6. Larger Works.
+    .
+    You may create a Larger Work by combining Covered Software
+    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 Software.
+    .
+    4. Versions of the License.
+    .
+    4.1. New Versions.
+    .
+    Oracle Corp. is the initial license steward and may publish
+    revised and/or new versions of this License from time to
+    time. Each version will be given a distinguishing version
+    number. Except as provided in Section 4.3, no one other than
+    the license steward has the right to modify this License.
+    .
+    4.2. Effect of New Versions.
+    .
+    You may always continue to use, distribute or otherwise make
+    the Covered Software available under the terms of the
+    version of the License under which You originally received
+    the Covered Software. If the Initial Developer includes a
+    notice in the Original Software prohibiting it from being
+    distributed or otherwise made available under any subsequent
+    version of the License, You must distribute and make the
+    Covered Software available under the terms of the version of
+    the License under which You originally received the Covered
+    Software. Otherwise, You may also choose to use, distribute
+    or otherwise make the Covered Software available under the
+    terms of any subsequent version of the License published by
+    the license steward.
+    .
+    4.3. Modified Versions.
+    .
+    When You are an Initial Developer and You want to create a
+    new license for Your Original Software, You may create and
+    use a modified version of this License if You: (a) rename
+    the license and remove any references to the name of the
+    license steward (except to note that the license differs
+    from this License); and (b) otherwise make it clear that the
+    license contains terms which differ from this License.
+    .
+    5. DISCLAIMER OF WARRANTY.
+    .
+    COVERED SOFTWARE 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 SOFTWARE 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 SOFTWARE IS WITH
+    YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY
+    RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER
+    CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
+    REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
+    CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY
+    COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
+    DISCLAIMER.
+    .
+    6. TERMINATION.
+    .
+    6.1. 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. Provisions which, by their
+    nature, must remain in effect beyond the termination of this
+    License shall survive.
+    .
+    6.2. If You assert a patent infringement claim (excluding
+    declaratory judgment actions) against Initial Developer or a
+    Contributor (the Initial Developer or Contributor against
+    whom You assert such claim is referred to as "Participant")
+    alleging that the Participant Software (meaning the
+    Contributor Version where the Participant is a Contributor
+    or the Original Software where the Participant is the
+    Initial Developer) directly or indirectly infringes any
+    patent, then any and all rights granted directly or
+    indirectly to You by such Participant, the Initial Developer
+    (if the Initial Developer is not the Participant) and all
+    Contributors under Sections 2.1 and/or 2.2 of this License
+    shall, upon 60 days notice from Participant terminate
+    prospectively and automatically at the expiration of such 60
+    day notice period, unless if within such 60 day period You
+    withdraw Your claim with respect to the Participant Software
+    against such Participant either unilaterally or pursuant to
+    a written agreement with Participant.
+    .
+    6.3. In the event of termination under Sections 6.1 or 6.2
+    above, all end user licenses that have been validly granted
+    by You or any distributor hereunder prior to termination
+    (excluding licenses granted to You by any distributor) shall
+    survive termination.
+    .
+    7. LIMITATION OF LIABILITY.
+    .
+    UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER
+    TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL
+    YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY
+    DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF
+    SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT,
+    SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
+    CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST
+    PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE
+    OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
+    LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
+    POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY
+    SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+    RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
+    APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS
+    DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
+    CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY
+    NOT APPLY TO YOU.
+    .
+    8. U.S. GOVERNMENT END USERS.
+    .
+    The Covered Software is a "commercial item," as that term is
+    defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of
+    "commercial computer software" (as that term is defined at
+    48 C.F.R. 252.227-7014(a)(1)) 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 Software with only
+    those rights set forth herein. This U.S. Government Rights
+    clause is in lieu of, and supersedes, any other FAR, DFAR,
+    or other clause or provision that addresses Government
+    rights in computer software under this License.
+    .
+    9. 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 the law of the jurisdiction
+    specified in a notice contained within the Original Software
+    (except to the extent applicable law, if any, provides
+    otherwise), excluding such jurisdiction's conflict-of-law
+    provisions. Any litigation relating to this License shall be
+    subject to the jurisdiction of the courts located in the
+    jurisdiction and venue specified in a notice contained
+    within the Original Software, with the losing party
+    responsible for costs, including, without limitation, court
+    costs and reasonable attorneys' fees and expenses. The
+    application of the United Nations Convention on Contracts
+    for the International Sale of Goods is expressly excluded.
+    Any law or regulation which provides that the language of a
+    contract shall be construed against the drafter shall not
+    apply to this License. You agree that You alone are
+    responsible for compliance with the United States export
+    administration regulations (and the export control laws and
+    regulation of any other countries) when You use, distribute
+    or otherwise make available any Covered Software.
+    .
+    10. RESPONSIBILITY FOR CLAIMS.
+    .
+    As between Initial Developer and the Contributors, each
+    party is responsible for claims and damages arising,
+    directly or indirectly, out of its utilization of rights
+    under this License and You agree to work with Initial
+    Developer and Contributors to distribute such responsibility
+    on an equitable basis. Nothing herein is intended or shall
+    be deemed to constitute any admission of liability.
+
+License: LibRaw
+ LIBRAW COMMERCIAL SOFTWARE LICENSE AGREEMENT.
+ .
+ Last Revision: 27 March 2010
+ .
+ RECITALS.
+ .
+ R-1
+ This Libraw Commercial Software License Agreement (“License”) is a
+ legal agreement between you and LibRaw, LLC (“LibRaw”) for the use of
+ the Software, as defined below. "Licensee" or "You" refer to the
+ undersigned Person that is licensing the Software. LibRaw and Licensee
+ are sometimes referred to individually as a “Party” and collectively as
+ the “Parties”.
+ .
+ R-2
+ BY SIGNING BELOW, YOU ACKNOWLEDGE THAT YOU HAVE READ THIS LICENSE, THAT
+ YOU UNDERSTAND IT, AND THAT YOU AGREE TO BE BOUND BY ITS TERMS.
+ .
+ 1. DEFINITIONS.
+ (a) “Claims” is defined in Section 5(b) herein.
+ (b) “Commercial Purpose” means any use of the Software or any
+     Derivative Work, as part of, or in any way in connection with, a
+     product (including software) or service that will be sold, offered
+     for sale, licensed, leased, loaned, rented, Distributed or
+     otherwise made available commercially.
+ (c) “Control” means, with respect to an individual direct or indirect
+     control of that individual, and with respect to any other Person
+     direct or indirect control of more than fifty percent (50%) of the
+     voting power to directly manage such Person.
+ (d) “Copy” means to create one or more copies as defined in the
+     Copyright Act, 17 U.S.C. § 101.
+ (e) “Derivative Work” means any derivative work as defined in the
+     Copyright Act, 17 U.S.C. § 101, made from the Software including
+     without limitation, any translation, improvement, enhancement,
+     extension, incorporation, or other Modification of the Software.
+ (f) “Distribute” means to broadcast, publish, transfer, post, upload,
+     download or otherwise disseminate in any medium to any third party.
+ (g) “Documentation” means printed, electronic or online documentation
+     Distributed by LibRaw or provided by LibRaw to Licensees in
+     connection with the Software.
+ (h) “Modification” or “Modify” means the creation of or to create a
+     work derived from the Software that changes or alters any aspect of
+     the Software.
+ (i) “Person” means any individual, firm, association, partnership,
+     corporation, limited liability company, group, trust, governmental
+     agency or other authority, or other organization or entity of any
+     kind or nature.
+ (j) “Software” means the LibRaw decoder software, including the LibRaw
+     decoder source code, libraries, configuration and build scripts,
+     examples, interface definitions, associated media and printed
+     materials, and any associated electronic Documentation in
+     connection with the reading of RAW (untouched, "raw" pixel
+     information) files obtained from digital photo cameras.
+ (k) “Use” means to execute (i.e., run) the Software.
+ .
+ 2. GRANT OF LICENSE.
+ During the Term of this License and on the terms and subject to the
+ conditions of this License, LibRaw hereby grants to Licensee the
+ following non-exclusive, limited, non-transferable, non-sublicensable,
+ revocable, royalty-free, fully-paid license rights:
+ (a) License to Use.
+ LibRaw hereby grants to Licensee the right to Use the Software in
+ connection with Commercial Purposes.
+ (b) License to Copy.
+ LibRaw hereby grants to Licensee the right to Copy the Software as
+ Licensee requires for backup purposes or to create multiple instances
+ of Use for Commercial Purposes.
+ (c) License to Create Derivative Works.
+ LibRaw hereby grants to Licensee the right to create Derivative Works
+ for Commercial Purposes.
+ (d) License to Distribute Software.
+ LibRaw hereby grants to the Licensee the right to Distribute the
+ Software in object code form for use in Licensee’s Derivative Works for
+ Commercial Purposes.
+ .
+ 3. RESTRICTIONS.
+ (a) General.
+ Licensee may not use the Software in any manner not permitted by
+ Section 2 herein, except with LibRaw’s prior written consent. In
+ addition, Licensee will ensure that any of the Persons under its
+ Control who Use the Software do so only in compliance with the terms
+ of this License.
+ (b) Ownership.
+ Subject to Section 8 herein, the Software and Documentation are
+ protected by copyright laws and international copyright treaties, as
+ well as other intellectual property laws and treaties. The Software and
+ Documentation are licensed, not sold. LibRaw retains sole and exclusive
+ ownership of all right, title, and interest in and to the Software and
+ Documentation, and all copies thereof, subject only to the licenses
+ expressly granted to Licensee herein. This License does not provide
+ Licensee with title or ownership of the Software and Documentation, but
+ only a revocable license of limited use.
+ (c) Copyrights.
+ All title and copyrights in and to the Software and Documentation,
+ including but not limited to any images, photographs, databases,
+ animations, video, text and “applets” incorporated into the Software
+ and Documentation, and any copies thereof, are exclusively owned by
+ LibRaw or LibRaw’s licensors.
+ (d) Attribution.
+ In connection with Sections 2(a) through (d) above, Licensee agrees to
+ give appropriate credit and attribution to LibRaw as the author of the
+ Software. In addition, Licensee agrees not to remove, disable, or
+ circumvent any compliance or proprietary notices within the Software,
+ including without limitation copyright or other intellectual property
+ notices.
+ (e) U.S. Laws and Export Restriction.
+ Licensee acknowledges that the Software is subject to U.S. export laws
+ and regulations. Licensee in its performance of all of its obligations
+ hereunder will comply with all such applicable laws and regulations,
+ including, without limitation, export and import control laws and
+ regulations. The obligations of this Section shall expressly survive
+ the revocation of this or any other related agreement.
+ .
+ 4. REPRESENTATIONS AND WARRANTIES.
+ (a) Representations.
+ LibRaw represents and warrants that:
+    (a) it has all necessary power and authority to enter into this
+        License;
+    (b) it is the owner of and has the right to license the Software;
+    (c) to its knowledge, the Software contains no viruses or disabling
+        devices.
+ (b) No Warranties.
+ LICENSEE ACKNOWLEDGES AND AGREES THAT THE SOFTWARE IS PROVIDED BY
+ LIBRAW ON AN “AS IS” AND “AS AVAILABLE” BASIS WITHOUT WARRANTY OF ANY
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF: (i) MERCHANTABILITY OR (ii) FITNESS FOR A
+ PARTICULAR PURPOSE, OR (iii) NON-INFRINGEMENT. WITHOUT LIMITING THE
+ FOREGOING, LIBRAW MAKES NO WARRANTY THAT THE SOFTWARE: (A) WILL MEET
+ LICENSEE’S REQUIREMENTS; (B) WILL BE EFFECTIVE, ACCURATE, OR RELIABLE;
+ OR (C) WILL MEET LICENSEE’S EXPECTATIONS OR BE FREE FROM MISTAKES,
+ ERRORS, OR DEFECTS. LICENSEE IS SOLELY RESPONSIBLE FOR DETERMINING THE
+ APPROPRIATENESS OF USING THE SOFTWARE. LICENSEE ASSUMES ALL RISKS
+ ASSOCIATED WITH USE OF THE SOFTWARE, IN CLUDING, BUT NOT LIMITED TO,
+ THE RISKS OF PROGRAM ERRORS, DAMAGE TO OR LOSS OF DATA, PROGRAMS OR
+ EQUIPMENT AND UNAVAILABILITY OR INTERRUPTION OF OPERATIONS.
+ The obligations of this Section shall expressly survive the revocation
+ of this or any other related agreement.
+ .
+ 5. LIMITATION OF LIABILITY AND INDEMNIFICATION.
+ (a) General.
+ EXCEPT FOR CLAIMS BASED ON BREACHES OF CONFIDENTIALITY OR COPYRIGHT
+ INFRINGEMENT, NEITHER PARTY WILL BE LIABLE TO THE OTHER FOR ANY DIRECT,
+ CONSEQUENTIAL, INDIRECT, INCIDENTAL, SPECIAL OR PUNITIVE DAMAGES
+ ARISING OUT OF THIS LICENSE EVEN IF ADVISED IN ADVANCE OF THE
+ POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS APPLY TO ALL CLAIMS (as
+ defined below), INCLUDING BUT NOT LIMITED TO, BREACH OF CONTRACT,
+ BREACH OF WARRANTY, LIBRAW’S NEGLIGENCE, STRICT LIABILITY,
+ MISREPRESENTATION AND OTHER TORTS. NOTWITHSTANDING ANYTHING TO THE
+ CONTRARY IN SECTION 5(b) BELOW, LIBRAW WILL NOT BE LIABLE FOR THE LOSS
+ OF, OR DAMAGE TO, LICENSEE'S RECORDS OR DATA OR ANY DAMAGES CLAIMED BY
+ LICENSEE BASED ON A THIRD PARTY CLAIM. The obligations of this Section
+ shall expressly survive the revocation of this or any other related
+ agreement.
+ (b) Indemnification.
+ Licensee shall indemnify, defend and hold harmless LibRaw, its
+ officers, members, agents and employees from and against any claims,
+ demands, or causes of action whatsoever (collectively “Claims”) caused
+ by, or arising out of, or resulting from, Licensee’s Use or
+ Modification of the Software or any Derivative Work or the exercise or
+ practice of the License by Licensee, its subsidiaries or their
+ officers, employees, agents or representatives. LibRaw shall indemnify,
+ defend and hold harmless Licensee, its officers, members, agents and
+ employees from and against any Claims that the Software infringes any
+ third party's patent or copyright, provided that Licensee promptly
+ notifies LibRaw in writing of such Claim, LibRaw has sole control over
+ the defense of the Claim and/or any settlement negotiations, and
+ Licensee cooperates fully in the defense of the Claim. At its option,
+ LibRaw may, in lieu of defending any infringement Claim, obtain the
+ right for Licensee to continue using the Software or terminate this
+ License, including any licenses granted herein. The foregoing states
+ LibRaw’s entire obligation to Licensee for indemnification of third
+ party infringement Claims.
+ .
+ 6. TERM AND REVOCATION.
+ (a) General.
+ This License and Licensee's license rights granted hereunder are for a
+ term of three (3) years from the Effective Date (“Initial Term”).
+ Thereafter, this License may be renewed for a further period of one (1)
+ year by written agreement signed by both Parties (each a “Renewal
+ Term”). The Initial Term and any Renewal Term are collectively the
+ “Term”.
+ (b) Revocation with Cause.
+ LibRaw may, at any time by written notice to Licensee, revoke this
+ License as from the date of service of such notice whenever any of the
+ following events occurs:
+    (i) if Licensee commits a material breach of any provision hereof,
+        which is not remediable or, if remediable, is not remedied
+        within thirty (30) days after the receipt of LibRaw’s notice of
+        such breach;
+    (ii) if Licensee fails to strictly comply with the provisions of
+         Section 7 (Confidentiality);
+    (iii) if Licensee makes an assignment in violation of Section 9(b)
+          (Non-assignment);
+    (iv) if Licensee becomes insolvent or admits in writing its
+         inability to pay its debts as they mature, or makes an
+         assignment for the benefit of creditors; (v) if a petition
+         under any foreign, state, or United States bankruptcy act,
+         receivership statute, or the like, as they now exist, or as
+         they may be amended, is filed by Licensee; or (vi) if such
+         petition is filed by any third party, or an application for a
+         receiver is made by anyone against Licensee and such petition
+         or application is not resolved favorably within ninety (90)
+         days.
+ (c) Consequences and Obligations of Revocation.
+ If this License is revoked for any reason, then Licensee's rights under
+ this License will immediately terminate. Licensee agrees upon
+ revocation to cease any and all Use, Copying, Distributing and
+ Modifying of the Software and any Derivative Work, and further to
+ destroy all full or partial copies of the Software and any Derivative
+ Work in Licensee’s possession or under its Control. The obligations of
+ this Section shall expressly survive the revocation of this or any
+ other related agreement.
+ .
+ 7. CONFIDENTIALITY.
+ (a) General.
+ Either Party or its employees or agents may, in the course of
+ performing their responsibilities under this License, be exposed to or
+ acquire information, which is proprietary or confidential to the other
+ Party or to third parties to whom that other Party owes a duty of
+ confidentiality. Any and all non-public information of any form
+ obtained by a Party or its employees or agents while performing this
+ License shall be deemed to be confidential and proprietary information.
+ The receiving Party shall hold such information in strict confidence
+ and not copy, record, reproduce (using any medium), sell, assign,
+ license,market, transfer or otherwise dispose of, give or disclose such
+ information to third parties (except to third parties who are bound to
+ the receiving Party by a like obligation of confidentiality and who
+ have a need to access the confidential information for purposes of this
+ License) or use such information for any purposes whatsoever other than
+ in the performance of this License and will advise each of its
+ employees and agents who may be exposed to such proprietary and
+ confidential information of their obligations to keep such information
+ confidential. Licensee acknowledges and agrees that any breach of this
+ Section 7 will constitute a material breach of the License entitling
+ LibRaw to terminate this License under Section 6(b) herein. The
+ obligations of this Section shall expressly survive the revocation of
+ this or any other related agreement.
+ (b) Exceptions.
+ For the avoidance of doubt, proprietary and confidential information
+ shall not include information which is (i) in or becomes part of the
+ public domain other than by disclosure by the receiving Party in
+ violation of this License; (ii) demonstrably known to the receiving
+ Party previously, (iii) independently developed by the receiving Party
+ outside of this License, or (iv) rightfully obtained by the receiving
+ Party from third parties. This provision shall expressly survive
+ termination of this License
+ .
+ 8. INTELLECTUAL PROPERTY RIGHTS.
+ (a) Trade Secrets.
+ The Software constitutes valuable and confidential trade secrets of
+ LibRaw and is proprietary to LibRaw. All applicable copyrights, trade
+ secrets, trademarks, patents and other intellectual and proprietary
+ rights in and to the Software and all copies thereof are and shall
+ remain the property of LibRaw. Except as expressly stated herein, this
+ License does not grant Licensee any rights in any LibRaw patents,
+ copyrights, trade secrets, trademarks, trade names, service marks or
+ other intellectual and proprietary rights. All aspects of the Software,
+ including without limitation, all designs, engineering details,
+ algorithms, programs, methods of processing, specific design and
+ structure of individual programs and their interaction, and the
+ programming techniques, whether patentable or copyrightable, employed
+ therein are and shall remain the sole and exclusive property of LibRaw.
+ IT IS EXPRESSLY UNDERSTOOD THAT NO TITLE TO OR OWNERSHIP OF THE
+ SOFTWARE, OR ANY PART THEREOF, IS HEREBY TRANSFERRED TO LICENSEE OR ANY
+ LICENSEE SUBLICENSEE.
+ (b) The License herein granted by LibRaw to Licensee shall include the
+     right to use the trademarks and/or service marks of LibRaw
+     (collectively, the "Marks"); provided, however, that Licensee shall
+     be entitled to use such Marks only in connection with the marketing
+     of the Software and Licensee shall make no other use of the Marks.
+     Subject to the license rights herein granted by LibRaw to Licensee
+     to use such Marks in connection with the marketing of the Software
+     hereunder, the Marks are and shall remain the sole and exclusive
+     property of LibRaw. Upon the termination of this License, Licensee
+     shall cease all use of the Marks. Licensee shall not at any time
+     during or after the Term of this License (i) cla im any right,
+     title or interest in or to any Marks, or (ii) undertake to
+     copyright, trademark, trade name or apply for a patent with respect
+     to the Software or any portion thereof. Licensee recognizes that
+     all or a part of the Software may be copyrighted, trademarked or
+     patented by LibRaw and agrees that any such act shall not cause or
+     be construed as causing the Software or any portion thereof to be
+     in the public domain. Licensee agrees that it will not remove from
+     copies of the Software, or any component thereof, any form of
+     copyright or other proprietary notice appearing on the Software or
+     any component thereof, nor make any representation that Licensee
+     owns any rights to any copyright or proprietary information which
+     is part of the Software.
+ .
+ 9. GENERAL.
+ (a) Independent Contractors.
+ In performing this License, the Parties act and will act at all times
+ as independent contractors, and nothing contained in this License will
+ be construed or implied to create an agency, partnership or employer
+ and employee relationship between the Parties. Except as expressly set
+ forth in this License, at no time will either Party make commitments or
+ incur any charges or expenses for, or in the name of, the other Party.
+ (b) Assignment; Delegation.
+ Licensee may not assign any of its rights or delegate any of its
+ duties hereunder without the prior written consent of Licensor.
+ Except as permitted by the foregoing, any attempted assignment or
+ delegation will be null, void and of no effect.
+ (c) Waiver.
+ No waiver under this License will be valid or binding unless set forth
+ in writing and duly executed by the Party against whom enforcement of
+ such waiver is sought. Any such waiver will constitute a waiver only
+ with respect to the specific matter described therein and will in no
+ way impair the rights of the Party granting such waiver in any other
+ respect orat any other time. Any delay or forbearance by either Party
+ in exercising any right hereunder will not be deemed a waiver of that
+ right.
+ (d) Governing Law.
+ This License shall be governed and construed in accordance with the
+ laws of the State of Maryland without regard to the conflicts of laws
+ or principles thereof. Any Claim related to this License or between the
+ Parties must be brought exclusively in the Circuit Court sitting in
+ Montgomery County, Maryland or the U.S. District Court for the District
+ of Maryland, and the Parties irrevocably submit and consent to such
+ jurisdiction and venue and waive any right they may have to seek any
+ change of jurisdiction or venue. The obligations of this Section shall
+ expressly survive the revocation of this or any other related
+ agreement.
+ (e) Counterparts.
+ This License may be executed in any number of counterparts, each of
+ which when so executed will be deemed to be an original and all of
+ which when taken together will constitute one agreement.
+ (f) Headings; Interpretation.
+ The headings in this License are inserted merely for the purpose of
+ convenience and will not affect the meaning or interpretation of this
+ License. This License will be construed fairly according to its terms,
+ without regard to the identity of the drafter of any provision in this
+ License.
+ (g) Entire Agreement.
+ This License constitutes the entire agreement and understanding between
+ the Parties as to the subject matter hereof and supersedes all prior
+ discussions between the Parties, and neither Party shall be bound by
+ any conditions, definitions, warranties, understandings or
+ representations with respect to such subject matter other than as
+ expressly provided herein. This License may not be modified or amended
+ or supplemented except in writing executed by the duly authorized
+ representatives of both Parties. If any provision of this License is
+ declared to be invalid or unenforceable, such invalid or unenforceable
+ provision, shall be deemed struck from this License, but only in the
+ jurisdiction in which such provision was declared invalid or
+ unenforceable, and the enforceability of the remaining provisions of
+ this License shall not in any way be affected or impaired thereby. This
+ License shall be binding upon and inure to the benefit of the Parties
+ hereto and their respective successors and permitted assigns, and shall
+ not confer any rights or remedies upon any Person not a party hereto.
+ The obligations of this Section shall expressly survive the revocation
+ of this or any other related agreement.
+ (h) Construction.
+ This License will also supersede all terms of any unsigned or
+ “shrink-wrap” license including in any package, media or electronic
+ version of the Software and any such Software will be licensed solely
+ under the terms of this License. When executed and dated by both
+ Parties, any order forms that reference this License and its Effective
+ Date will be incorporated in this License by reference.
+ (i) Language.
+ Where the text requires, words in the singular will be deemed to
+ include the plural and vice-versa, and words of any gender will be
+ deemed to include all genders.
+ (j) Promotion.
+ Licensee hereby authorizes LibRaw during the Term to use Licensee’s
+ company name on LibRaw’s Website and in other promotional marketing
+ materials in connection with LibRaw’s marketing and promotion efforts.
+ .
+ IN WITNESS WHEREOF, each Party has executed this License and represents
+ and warrants that its execution has been duly authorized.
+ .
+ LIBRAW, LLC
+ By:    ____________________
+ Name:  ____________________
+ Title: ____________________
+ .
+ LICENSEE
+ ___________________________
+ By:    ____________________
+ Name:  ____________________
+ Title: ___________________
+
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/ossim-plugin-libraw.install b/debian/ossim-plugin-libraw.install
new file mode 100644
index 0000000..14ddef3
--- /dev/null
+++ b/debian/ossim-plugin-libraw.install
@@ -0,0 +1 @@
+usr/lib/ossim/plugins/libossimlibraw_plugin.so
diff --git a/debian/ossim-plugins.install b/debian/ossim-plugins.install
new file mode 100644
index 0000000..5fbd00f
--- /dev/null
+++ b/debian/ossim-plugins.install
@@ -0,0 +1 @@
+usr/lib/ossim/plugins/libossim_plugin.so
diff --git a/debian/ossim-plugins.lintian-overrides b/debian/ossim-plugins.lintian-overrides
new file mode 100644
index 0000000..7816b1e
--- /dev/null
+++ b/debian/ossim-plugins.lintian-overrides
@@ -0,0 +1,3 @@
+# False positive, string not included in the source.
+ossim-plugins: spelling-error-in-binary usr/lib/ossim/plugins/libossim_plugin.so TeH The
+
diff --git a/debian/patches/cmake.patch b/debian/patches/cmake.patch
new file mode 100644
index 0000000..3036895
--- /dev/null
+++ b/debian/patches/cmake.patch
@@ -0,0 +1,1844 @@
+Description: Added cmake support files.
+ This patch needs to be updated for every new OSSIM release to include the
+ CMakeModules from the ossim_package_support subdirectory in the upstream
+ tarball.
+Author: Francesco Paolo Lovergine <frankie at debian.org>
+Forwarded: not-needed
+
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindCPPUNIT.cmake
+@@ -0,0 +1,43 @@
++# - Find CPPUNIT
++# Find the native CPPUNIT includes and library
++# This module defines
++#  CPPUNIT_INCLUDE_DIR, where to find jpeglib.h, etc.
++#  CPPUNIT_LIBRARIES, the libraries needed to use CPPUNIT.
++#  CPPUNIT_FOUND, If false, do not try to use CPPUNIT.
++# also defined, but not for general use are
++#  CPPUNIT_LIBRARY, where to find the CPPUNIT library.
++
++#=============================================================================
++# Copyright 2001-2009 Kitware, Inc.
++#
++# Distributed under the OSI-approved BSD License (the "License");
++# see accompanying file Copyright.txt for details.
++#
++# This software is distributed WITHOUT ANY WARRANTY; without even the
++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++# See the License for more information.
++#=============================================================================
++# (To distributed this file outside of CMake, substitute the full
++#  License text for the above reference.)
++
++FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h)
++
++SET(CPPUNIT_NAMES ${CPPUNIT_NAMES} cppunit libcppunit)
++FIND_LIBRARY(CPPUNIT_LIBRARY NAMES ${CPPUNIT_NAMES} )
++
++# handle the QUIETLY and REQUIRED arguments and set CPPUNIT_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR)
++
++IF(CPPUNIT_FOUND)
++  SET(CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARY})
++ENDIF(CPPUNIT_FOUND)
++
++# Deprecated declarations.
++SET (NATIVE_CPPUNIT_INCLUDE_PATH ${CPPUNIT_INCLUDE_DIR} )
++IF(CPPUNIT_LIBRARY)
++  GET_FILENAME_COMPONENT (NATIVE_CPPUNIT_LIB_PATH ${CPPUNIT_LIBRARY} PATH)
++ENDIF(CPPUNIT_LIBRARY)
++
++MARK_AS_ADVANCED(CPPUNIT_LIBRARY CPPUNIT_INCLUDE_DIR )
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindFreetype.cmake
+@@ -0,0 +1,95 @@
++# - Locate FreeType library
++# This module defines
++#  FREETYPE_LIBRARIES, the library to link against
++#  FREETYPE_FOUND, if false, do not try to link to FREETYPE
++#  FREETYPE_INCLUDE_DIRS, where to find headers.
++#  This is the concatenation of the paths:
++#  FREETYPE_INCLUDE_DIR_ft2build
++#  FREETYPE_INCLUDE_DIR_freetype2
++#
++# $FREETYPE_DIR is an environment variable that would
++# correspond to the ./configure --prefix=$FREETYPE_DIR
++# used in building FREETYPE.
++
++#=============================================================================
++# Copyright 2007-2009 Kitware, Inc.
++#
++# Distributed under the OSI-approved BSD License (the "License");
++# see accompanying file Copyright.txt for details.
++#
++# This software is distributed WITHOUT ANY WARRANTY; without even the
++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++# See the License for more information.
++#=============================================================================
++# (To distributed this file outside of CMake, substitute the full
++#  License text for the above reference.)
++
++# Created by Eric Wing. 
++# Modifications by Alexander Neundorf.
++# This file has been renamed to "FindFreetype.cmake" instead of the correct
++# "FindFreeType.cmake" in order to be compatible with the one from KDE4, Alex.
++
++# Ugh, FreeType seems to use some #include trickery which 
++# makes this harder than it should be. It looks like they
++# put ft2build.h in a common/easier-to-find location which
++# then contains a #include to a more specific header in a 
++# more specific location (#include <freetype/config/ftheader.h>).
++# Then from there, they need to set a bunch of #define's 
++# so you can do something like:
++# #include FT_FREETYPE_H
++# Unfortunately, using CMake's mechanisms like INCLUDE_DIRECTORIES()
++# wants explicit full paths and this trickery doesn't work too well.
++# I'm going to attempt to cut out the middleman and hope 
++# everything still works.
++FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h 
++  HINTS
++  $ENV{FREETYPE_DIR}
++  PATH_SUFFIXES include
++  PATHS
++  /usr/local/X11R6/include
++  /usr/local/X11/include
++  /usr/X11/include
++  /sw/include
++  /opt/local/include
++  /usr/freeware/include
++)
++
++FIND_PATH(FREETYPE_INCLUDE_DIR_freetype2 freetype/config/ftheader.h 
++  HINTS
++  $ENV{FREETYPE_DIR}/include/freetype2
++  PATHS
++  /usr/local/X11R6/include
++  /usr/local/X11/include
++  /usr/X11/include
++  /sw/include
++  /opt/local/include
++  /usr/freeware/include
++  PATH_SUFFIXES freetype2
++)
++
++FIND_LIBRARY(FREETYPE_LIBRARY
++  NAMES freetype libfreetype freetype219 freetype239
++  HINTS
++  $ENV{FREETYPE_DIR}
++  PATH_SUFFIXES lib64 lib
++  PATHS
++  /usr/local/X11R6
++  /usr/local/X11
++  /usr/X11
++  /sw
++  /usr/freeware
++)
++
++# set the user variables
++IF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
++  SET(FREETYPE_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR_ft2build};${FREETYPE_INCLUDE_DIR_freetype2}")
++ENDIF(FREETYPE_INCLUDE_DIR_ft2build AND FREETYPE_INCLUDE_DIR_freetype2)
++SET(FREETYPE_LIBRARIES "${FREETYPE_LIBRARY}")
++
++# handle the QUIETLY and REQUIRED arguments and set FREETYPE_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(Freetype  DEFAULT_MSG  FREETYPE_LIBRARY  FREETYPE_INCLUDE_DIRS)
++
++
++MARK_AS_ADVANCED(FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR_freetype2 FREETYPE_INCLUDE_DIR_ft2build)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindGEOS.cmake
+@@ -0,0 +1,84 @@
++#---
++# File: FindGEOS.cmake
++#
++# Find the native GEOS(Geometry Engine - Open Source) includes and libraries.
++#
++# This module defines:
++#
++# GEOS_INCLUDE_DIR, where to find geos.h, etc.
++# GEOS_LIBRARY, libraries to link against to use GEOS.  Currently there are
++# two looked for, geos and geos_c libraries.
++# GEOS_FOUND, True if found, false if one of the above are not found.
++# 
++# For ossim, typically geos will be system installed which should be found; 
++# or found in the ossim 3rd party dependencies directory from a geos build 
++# and install.  If the latter it will rely on CMAKE_INCLUDE_PATH and 
++# CMAKE_LIBRARY_PATH having the path to the party dependencies directory.
++# 
++# NOTE: 
++# This script is specialized for ossim, e.g. looking in /usr/local/ossim.
++#
++# $Id: FindGEOS.cmake 23086 2015-01-20 16:20:12Z rashadkm $
++#---
++
++#---
++# Find include path:
++# Note: Ubuntu 14.04+ did not have geos.h (not included in any ossim src). 
++# Instead looking for Geometry.h
++#---
++
++find_path( GEOS_INCLUDE_DIR geos/geom/Geometry.h
++           PATHS 
++           ${CMAKE_INSTALL_PREFIX}/include
++           ${GEOS_DIR}/include
++           /usr/include
++           /usr/local/include
++           /usr/local/ossim/include )
++
++# Find GEOS library:
++find_library( GEOS_LIB NAMES geos 
++              PATHS
++              ${CMAKE_INSTALL_PREFIX}/lib
++              ${GEOS_DIR}/lib
++              /usr/lib64 
++              /usr/lib
++              /usr/local/lib
++              /usr/local/ossim/lib )
++
++# Find GEOS C library:
++find_library( GEOS_C_LIB NAMES geos_c 
++              PATHS 
++              ${CMAKE_INSTALL_PREFIX}/lib
++              ${GEOS_DIR}/lib
++              /usr/lib64 
++              /usr/lib 
++              /usr/local/lib
++              /usr/local/ossim/lib )
++
++# Set the GEOS_LIBRARY:
++if( GEOS_LIB AND GEOS_C_LIB )
++   set( GEOS_LIBRARY ${GEOS_LIB} ${GEOS_C_LIB} CACHE STRING INTERNAL )
++endif(GEOS_LIB AND GEOS_C_LIB )
++
++#---
++# This function sets GEOS_FOUND if variables are valid.
++#--- 
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args( GEOS DEFAULT_MSG 
++                                   GEOS_LIBRARY 
++                                   GEOS_INCLUDE_DIR )
++
++if( GEOS_FOUND )
++   if( NOT GEOS_FIND_QUIETLY )
++      message( STATUS "Found GEOS..." )
++   endif( NOT GEOS_FIND_QUIETLY )
++else( GEOS_FOUND )
++   if( NOT GEOS_FIND_QUIETLY )
++      message( WARNING "Could not find GEOS" )
++   endif( NOT GEOS_FIND_QUIETLY )
++endif( GEOS_FOUND )
++
++if( NOT GEOS_FIND_QUIETLY )
++   message( STATUS "GEOS_INCLUDE_DIR=${GEOS_INCLUDE_DIR}" )
++   message( STATUS "GEOS_LIBRARY=${GEOS_LIBRARY}" )
++endif( NOT GEOS_FIND_QUIETLY )
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindGEOTIFF.cmake
+@@ -0,0 +1,36 @@
++# - Find geotiff library
++# Find the native geotiff includes and library
++# This module defines
++#  GEOTIFF_INCLUDE_DIR, where to find tiff.h, etc.
++#  GEOTIFF_LIBRARIES, libraries to link against to use GEOTIFF.
++#  GEOTIFF_FOUND, If false, do not try to use GEOTIFF.
++# also defined, but not for general use are
++#  GEOTIFF_LIBRARY, where to find the GEOTIFF library.
++
++FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h 
++          PATHS 
++          ${CMAKE_INSTALL_PREFIX}/include
++          /usr/include/geotiff 
++          /usr/include/libgeotiff 
++          /usr/local/include/libgeotiff 
++          /usr/local/include/geotiff)
++
++SET(GEOTIFF_NAMES ${GEOTIFF_NAMES} geotiff_i geotiff libgeotiff_i libgeotiff)
++FIND_LIBRARY(GEOTIFF_LIBRARY 
++             NAMES ${GEOTIFF_NAMES}
++             PATHS 
++             ${CMAKE_INSTALL_PREFIX}/lib 
++             /usr/local/lib 
++             /usr/lib 
++             /usr/lib/x86_64-linux-gnu)
++
++# handle the QUIETLY and REQUIRED arguments and set GEOTIFF_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(GEOTIFF  DEFAULT_MSG  GEOTIFF_LIBRARY  GEOTIFF_INCLUDE_DIR)
++
++IF(GEOTIFF_FOUND)
++  SET( GEOTIFF_LIBRARIES ${GEOTIFF_LIBRARY} )
++ENDIF(GEOTIFF_FOUND)
++
++MARK_AS_ADVANCED(GEOTIFF_INCLUDE_DIR GEOTIFF_LIBRARY)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindJPEG.cmake
+@@ -0,0 +1,55 @@
++# - Find JPEG
++# Find the native JPEG includes and library
++# This module defines
++#  JPEG_INCLUDE_DIR, where to find jpeglib.h, etc.
++#  JPEG_LIBRARIES, the libraries needed to use JPEG.
++#  JPEG_FOUND, If false, do not try to use JPEG.
++# also defined, but not for general use are
++#  JPEG_LIBRARY, where to find the JPEG library.
++
++#=============================================================================
++# Copyright 2001-2009 Kitware, Inc.
++#
++# Distributed under the OSI-approved BSD License (the "License");
++# see accompanying file Copyright.txt for details.
++#
++# This software is distributed WITHOUT ANY WARRANTY; without even the
++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++# See the License for more information.
++#=============================================================================
++# (To distributed this file outside of CMake, substitute the full
++#  License text for the above reference.)
++
++FIND_PATH(JPEG_INCLUDE_DIR jpeglib.h
++           PATHS
++           ${CMAKE_INSTALL_PREFIX}/include
++           /usr/local/include
++           /usr/include )
++
++SET(JPEG_NAMES ${JPEG_NAMES} jpeg libjpeg)
++
++# Added x86_64-linux-gnu path for Ubuntu install
++FIND_LIBRARY(JPEG_LIBRARY
++             NAMES ${JPEG_NAMES}
++             PATHS
++             ${CMAKE_INSTALL_PREFIX}/include
++             /usr/local/lib
++             /usr/lib
++             /usr/lib/x86_64-linux-gnu)
++
++# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(JPEG DEFAULT_MSG JPEG_LIBRARY JPEG_INCLUDE_DIR)
++
++IF(JPEG_FOUND)
++  SET(JPEG_LIBRARIES ${JPEG_LIBRARY})
++ENDIF(JPEG_FOUND)
++
++# Deprecated declarations.
++SET (NATIVE_JPEG_INCLUDE_PATH ${JPEG_INCLUDE_DIR} )
++IF(JPEG_LIBRARY)
++  GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH)
++ENDIF(JPEG_LIBRARY)
++
++MARK_AS_ADVANCED(JPEG_LIBRARY JPEG_INCLUDE_DIR )
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindMiniZip.cmake
+@@ -0,0 +1,26 @@
++# - Find minizip
++# Find the native MINIZIP includes and library
++#
++#  MINIZIP_INCLUDE_DIRS - where to find minizip's zip.h, etc.
++#  MINIZIP_LIBRARIES    - List of libraries when using minizip.
++#  MINIZIP_FOUND        - True if minizip found.
++
++IF (MINIZIP_INCLUDE_DIR)
++  # Already in cache, be silent
++  SET(MINIZIP_FIND_QUIETLY TRUE)
++ENDIF (MINIZIP_INCLUDE_DIR)
++
++FIND_PATH(MINIZIP_INCLUDE_DIR minizip/zip.h)
++
++SET(MINIZIP_NAMES minizip )
++FIND_LIBRARY(MINIZIP_LIBRARY NAMES ${MINIZIP_NAMES} )
++MARK_AS_ADVANCED( MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR )
++
++# Per-recommendation
++SET(MINIZIP_INCLUDE_DIRS "${MINIZIP_INCLUDE_DIR}")
++SET(MINIZIP_LIBRARIES    "${MINIZIP_LIBRARY}")
++
++# handle the QUIETLY and REQUIRED arguments and set MINIZIP_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(MINIZIP DEFAULT_MSG MINIZIP_LIBRARIES MINIZIP_INCLUDE_DIRS)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindRegex.cmake
+@@ -0,0 +1,64 @@
++#                                               -*- cmake -*-
++#
++#  FindRegex.cmake: Try to find Regex
++#
++#  Copyright (C) 2005-2013 EDF-EADS-Phimeca
++#
++#  This library is free software: you can redistribute it and/or modify
++#  it under the terms of the GNU Lesser General Public License as published by
++#  the Free Software Foundation, either version 3 of the License, or
++#  (at your option) any later version.
++#
++#  This library is distributed in the hope that it will be useful,
++#  but WITHOUT ANY WARRANTY; without even the implied warranty of
++#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++#  GNU Lesser General Public License for more details.
++#
++#  You should have received a copy of the GNU Lesser General Public
++#  along with this library.  If not, see <http://www.gnu.org/licenses/>.
++#
++#  @author dutka
++#  @date   2010-02-04 16:44:49 +0100 (Thu, 04 Feb 2010)
++#
++#
++# - Try to find Regex
++# Once done this will define
++#
++#  REGEX_FOUND - System has Regex
++#  REGEX_INCLUDE_DIR - The Regex include directory
++#  REGEX_LIBRARIES - The libraries needed to use Regex
++#  REGEX_DEFINITIONS - Compiler switches required for using Regex
++
++IF (REGEX_INCLUDE_DIR AND REGEX_LIBRARIES)
++   # in cache already
++   SET(Regex_FIND_QUIETLY TRUE)
++ENDIF (REGEX_INCLUDE_DIR AND REGEX_LIBRARIES)
++
++#IF (NOT WIN32)
++#   # use pkg-config to get the directories and then use these values
++#   # in the FIND_PATH() and FIND_LIBRARY() calls
++#   FIND_PACKAGE(PkgConfig)
++#   PKG_CHECK_MODULES(PC_REGEX regex)
++#   SET(REGEX_DEFINITIONS ${PC_REGEX_CFLAGS_OTHER})
++#ENDIF (NOT WIN32)
++
++FIND_PATH(REGEX_INCLUDE_DIR regex.h
++   HINTS
++   ${REGEX_INCLUDEDIR}
++   ${PC_LIBXML_INCLUDE_DIRS}
++   PATH_SUFFIXES regex
++   )
++
++FIND_LIBRARY(REGEX_LIBRARIES NAMES c regex
++   HINTS
++   ${PC_REGEX_LIBDIR}
++   ${PC_REGEX_LIBRARY_DIRS}
++   )
++
++INCLUDE(FindPackageHandleStandardArgs)
++
++# handle the QUIETLY and REQUIRED arguments and set REGEX_FOUND to TRUE if 
++# all listed variables are TRUE
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(Regex DEFAULT_MSG REGEX_LIBRARIES REGEX_INCLUDE_DIR)
++
++MARK_AS_ADVANCED(REGEX_INCLUDE_DIR REGEX_LIBRARIES)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindStlPort.cmake
+@@ -0,0 +1,26 @@
++#---
++# $Id: FindStlPort.cmake 21190 2012-06-29 19:54:24Z dburken $
++#
++# Find the stlport includes and library
++# 
++# This module defines:
++#  STLPORT_INCLUDE_DIR, where to find iostream, string, etc.
++#  STLPORT_LIBRARIES, libraries to link against to use StlPort.
++#  STLPORT_FOUND, If false, do not try to use STLPORT.
++#---
++
++FIND_PATH(STLPORT_INCLUDE_DIR iostream PATHS C:/STLport-5.2.1/stlport D:/STLport-5.2.1/stlport)
++
++SET(STLPORT_NAMES ${STLPORT_NAMES} stlport5.2.lib)
++FIND_LIBRARY(STLPORT_LIBRARY NAMES ${STLPORT_NAMES} )
++
++# handle the QUIETLY and REQUIRED arguments and set STLPORT_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(STLPORT  DEFAULT_MSG  STLPORT_LIBRARY  STLPORT_INCLUDE_DIR)
++
++IF(STLPORT_FOUND)
++  SET( STLPORT_LIBRARIES ${STLPORT_LIBRARY} )
++ENDIF(STLPORT_FOUND)
++
++MARK_AS_ADVANCED(STLPORT_INCLUDE_DIR STLPORT_LIBRARY)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindSubversion.cmake
+@@ -0,0 +1,148 @@
++# - Extract information from a subversion working copy
++# The module defines the following variables:
++#  Subversion_SVN_EXECUTABLE - path to svn command line client
++#  Subversion_VERSION_SVN - version of svn command line client
++#  Subversion_FOUND - true if the command line client was found
++#  SUBVERSION_FOUND - same as Subversion_FOUND, set for compatiblity reasons
++#
++# The minimum required version of Subversion can be specified using the
++# standard syntax, e.g. FIND_PACKAGE(Subversion 1.4)
++#
++# If the command line client executable is found two macros are defined:
++#  Subversion_WC_INFO(<dir> <var-prefix>)
++#  Subversion_WC_LOG(<dir> <var-prefix>)
++# Subversion_WC_INFO extracts information of a subversion working copy at
++# a given location. This macro defines the following variables:
++#  <var-prefix>_WC_URL - url of the repository (at <dir>)
++#  <var-prefix>_WC_ROOT - root url of the repository
++#  <var-prefix>_WC_REVISION - current revision
++#  <var-prefix>_WC_LAST_CHANGED_AUTHOR - author of last commit
++#  <var-prefix>_WC_LAST_CHANGED_DATE - date of last commit
++#  <var-prefix>_WC_LAST_CHANGED_REV - revision of last commit
++#  <var-prefix>_WC_INFO - output of command `svn info <dir>'
++# Subversion_WC_LOG retrieves the log message of the base revision of a
++# subversion working copy at a given location. This macro defines the
++# variable:
++#  <var-prefix>_LAST_CHANGED_LOG - last log of base revision
++# Example usage:
++#  FIND_PACKAGE(Subversion)
++#  IF(SUBVERSION_FOUND)
++#    Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)
++#    MESSAGE("Current revision is ${Project_WC_REVISION}")
++#    Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)
++#    MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}")
++#  ENDIF(SUBVERSION_FOUND)
++#
++# History (yyyymmdd):
++# 20121002 - Modified to "continue on" if svn is not found. (drb) 
++#
++#=============================================================================
++# Copyright 2006-2009 Kitware, Inc.
++# Copyright 2006 Tristan Carel
++#
++# Distributed under the OSI-approved BSD License (the "License");
++# see accompanying file Copyright.txt for details.
++#
++# This software is distributed WITHOUT ANY WARRANTY; without even the
++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++# See the License for more information.
++#=============================================================================
++# (To distribute this file outside of CMake, substitute the full
++#  License text for the above reference.)
++
++FIND_PROGRAM(Subversion_SVN_EXECUTABLE svn
++  DOC "subversion command line client")
++MARK_AS_ADVANCED(Subversion_SVN_EXECUTABLE)
++
++IF(Subversion_SVN_EXECUTABLE)
++  # the subversion commands should be executed with the C locale, otherwise
++  # the message (which are parsed) may be translated, Alex
++  SET(_Subversion_SAVED_LC_ALL "$ENV{LC_ALL}")
++  SET(ENV{LC_ALL} C)
++
++  EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} --version
++    OUTPUT_VARIABLE Subversion_VERSION_SVN
++    OUTPUT_STRIP_TRAILING_WHITESPACE)
++
++  # restore the previous LC_ALL
++  SET(ENV{LC_ALL} ${_Subversion_SAVED_LC_ALL})
++
++  STRING(REGEX REPLACE "^(.*\n)?svn, version ([.0-9]+).*"
++    "\\2" Subversion_VERSION_SVN "${Subversion_VERSION_SVN}")
++
++  MACRO(Subversion_WC_INFO dir prefix)
++    # the subversion commands should be executed with the C locale, otherwise
++    # the message (which are parsed) may be translated, Alex
++    SET(_Subversion_SAVED_LC_ALL "$ENV{LC_ALL}")
++    SET(ENV{LC_ALL} C)
++
++    EXECUTE_PROCESS(COMMAND ${Subversion_SVN_EXECUTABLE} info ${dir}
++      OUTPUT_VARIABLE ${prefix}_WC_INFO
++      ERROR_VARIABLE Subversion_svn_info_error
++      RESULT_VARIABLE Subversion_svn_info_result
++      OUTPUT_STRIP_TRAILING_WHITESPACE)
++
++    IF(NOT ${Subversion_svn_info_result} EQUAL 0)
++      MESSAGE(WARNING "Command \"${Subversion_SVN_EXECUTABLE} info ${dir}\" failed with output:\n${Subversion_svn_info_error}")
++    ELSE(NOT ${Subversion_svn_info_result} EQUAL 0)
++
++      STRING(REGEX REPLACE "^(.*\n)?URL: ([^\n]+).*"
++        "\\2" ${prefix}_WC_URL "${${prefix}_WC_INFO}")
++      STRING(REGEX REPLACE "^(.*\n)?Repository Root: ([^\n]+).*"
++        "\\2" ${prefix}_WC_ROOT "${${prefix}_WC_INFO}")
++      STRING(REGEX REPLACE "^(.*\n)?Revision: ([^\n]+).*"
++        "\\2" ${prefix}_WC_REVISION "${${prefix}_WC_INFO}")
++      STRING(REGEX REPLACE "^(.*\n)?Last Changed Author: ([^\n]+).*"
++        "\\2" ${prefix}_WC_LAST_CHANGED_AUTHOR "${${prefix}_WC_INFO}")
++      STRING(REGEX REPLACE "^(.*\n)?Last Changed Rev: ([^\n]+).*"
++        "\\2" ${prefix}_WC_LAST_CHANGED_REV "${${prefix}_WC_INFO}")
++      STRING(REGEX REPLACE "^(.*\n)?Last Changed Date: ([^\n]+).*"
++        "\\2" ${prefix}_WC_LAST_CHANGED_DATE "${${prefix}_WC_INFO}")
++
++    ENDIF(NOT ${Subversion_svn_info_result} EQUAL 0)
++
++    # restore the previous LC_ALL
++    SET(ENV{LC_ALL} ${_Subversion_SAVED_LC_ALL})
++
++  ENDMACRO(Subversion_WC_INFO)
++
++  MACRO(Subversion_WC_LOG dir prefix)
++    # This macro can block if the certificate is not signed:
++    # svn ask you to accept the certificate and wait for your answer
++    # This macro requires a svn server network access (Internet most of the time)
++    # and can also be slow since it access the svn server
++    EXECUTE_PROCESS(COMMAND
++      ${Subversion_SVN_EXECUTABLE} --non-interactive log -r BASE ${dir}
++      OUTPUT_VARIABLE ${prefix}_LAST_CHANGED_LOG
++      ERROR_VARIABLE Subversion_svn_log_error
++      RESULT_VARIABLE Subversion_svn_log_result
++      OUTPUT_STRIP_TRAILING_WHITESPACE)
++
++    IF(NOT ${Subversion_svn_log_result} EQUAL 0)
++      MESSAGE(SEND_ERROR "Command \"${Subversion_SVN_EXECUTABLE} log -r BASE ${dir}\" failed with output:\n${Subversion_svn_log_error}")
++    ENDIF(NOT ${Subversion_svn_log_result} EQUAL 0)
++  ENDMACRO(Subversion_WC_LOG)
++
++ENDIF(Subversion_SVN_EXECUTABLE)
++
++#---
++# This function sets GEOS_FOUND if variables are valid.
++#--- 	
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args( SUBVERSION DEFAULT_MSG
++                                   Subversion_SVN_EXECUTABLE 
++                                   Subversion_VERSION_SVN )
++
++if( SUBVERSION_FOUND )
++   if( NOT SUBVERSION_FIND_QUIETLY )
++      message( STATUS "Found SUBVERSION..." )
++   endif( NOT SUBVERSION_FIND_QUIETLY )
++else( SUBVERSION_FOUND )
++   if( NOT SUBVERSION_FIND_QUIETLY )
++      message( WARNING "Could not find SUBVERSION" )
++   endif( NOT SUBVERSION_FIND_QUIETLY )
++endif( SUBVERSION_FOUND )
++
++if( NOT SUBVERSION_FIND_QUIETLY )
++   message( STATUS "Subversion_VERSION_SVN=${Subversion_VERSION_SVN}" )
++endif( NOT SUBVERSION_FIND_QUIETLY )
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/FindTIFF.cmake
+@@ -0,0 +1,52 @@
++# - Find TIFF library
++# Find the native TIFF includes and library
++# This module defines
++#  TIFF_INCLUDE_DIR, where to find tiff.h, etc.
++#  TIFF_LIBRARIES, libraries to link against to use TIFF.
++#  TIFF_FOUND, If false, do not try to use TIFF.
++# also defined, but not for general use are
++#  TIFF_LIBRARY, where to find the TIFF library.
++
++#=============================================================================
++# Copyright 2002-2009 Kitware, Inc.
++#
++# Distributed under the OSI-approved BSD License (the "License");
++# see accompanying file Copyright.txt for details.
++#
++# This software is distributed WITHOUT ANY WARRANTY; without even the
++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++# See the License for more information.
++#=============================================================================
++# (To distribute this file outside of CMake, substitute the full
++#  License text for the above reference.)
++
++FIND_PATH(TIFF_INCLUDE_DIR tiff.h
++          PATHS 
++          ${CMAKE_INSTALL_PREFIX}/include
++          /usr/local/include 
++          /usr/local/include/tiff
++          /usr/include/
++          /usr/include/tiff)
++
++
++SET(TIFF_NAMES ${TIFF_NAMES} tiff libtiff_i libtiff tiff3 libtiff3)
++
++# Added x86_64-linux-gnu path for Ubuntu install
++FIND_LIBRARY(TIFF_LIBRARY 
++             NAMES ${TIFF_NAMES} 
++             PATHS 
++             ${CMAKE_INSTALL_PREFIX}/lib
++             /usr/local/lib
++             /usr/lib 
++             /usr/lib/x86_64-linux-gnu)
++
++# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if 
++# all listed variables are TRUE
++INCLUDE(FindPackageHandleStandardArgs)
++FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF  DEFAULT_MSG  TIFF_LIBRARY  TIFF_INCLUDE_DIR)
++
++IF(TIFF_FOUND)
++  SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
++ENDIF(TIFF_FOUND)
++
++MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/Findossim.cmake
+@@ -0,0 +1,68 @@
++#---
++# File: FindOSSIM.cmake
++#
++# Find OSSIM(Open Source Software Image Map) includes and libraries.
++#
++# This module defines:
++# 
++#  OSSIM_INCLUDE_DIR, Where to find ossimVersion.h, etc.
++#  OSSIM_LIBRARIES, Libraries to link against to use OSSIM.
++#  OSSIM_FOUND,  True if found, false if one of the above are not found.
++# also defined, but not for general use are
++#  OSSIM_LIBRARY, where to find the OSSIM library.
++#---
++
++#---
++# Find include path:
++#---
++set(CMAKE_FIND_FRAMEWORK "LAST")
++find_path(OSSIM_INCLUDE_DIR ossim/ossimVersion.h ossimVersion.h
++   PATHS
++      $ENV{OSSIM_DEV_HOME}/ossim/include
++      $ENV{OSSIM_DEV_HOME}/ossim/latest/include
++      $ENV{OSSIM_INSTALL_PREFIX}/include
++      $ENV{OSSIM_DEV_HOME}/ossim
++      $ENV{OSSIM_INSTALL_PREFIX}
++   PATH_SUFFIXES 
++      include
++      lib
++)
++
++set(OSSIM_NAMES ${OSSIM_NAMES} ossim libossim)
++find_library(OSSIM_LIBRARY NAMES ${OSSIM_NAMES}
++   PATHS
++      $ENV{OSSIM_INSTALL_PREFIX}/lib${LIBSUFFIX}
++      $ENV{OSSIM_BUILD_DIR}/build_ossim/lib${LIBSUFFIX}
++      $ENV{OSSIM_BUILD_DIR}/lib${LIBSUFFIX}
++      $ENV{OSSIM_DEV_HOME}/build/build_ossim/lib${LIBSUFFIX}
++      $ENV{OSSIM_DEV_HOME}/build/lib${LIBSUFFIX}
++      $ENV{OSSIM_DEV_HOME}/ossim/lib${LIBSUFFIX}
++      $ENV{OSSIM_INSTALL_PREFIX}
++   PATH_SUFFIXES 
++      lib
++      Frameworks
++)
++
++#---
++# This function sets OSSIM_FOUND if variables are valid.
++#--- 
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args( OSSIM DEFAULT_MSG 
++                                   OSSIM_LIBRARY 
++                                   OSSIM_INCLUDE_DIR )
++
++if(OSSIM_FOUND)
++   set( OSSIM_LIBRARIES ${OSSIM_LIBRARY} )
++   set( OSSIM_INCLUDES  ${OSSIM_INCLUDE_DIR} )
++else( OSSIM_FOUND )
++   if( NOT OSSIM_FIND_QUIETLY )
++      message( WARNING "Could not find OSSIM" )
++   endif( NOT OSSIM_FIND_QUIETLY )
++endif(OSSIM_FOUND)
++
++if( NOT OSSIM_FIND_QUIETLY )
++   message( STATUS "OSSIM_INCLUDE_DIR=${OSSIM_INCLUDE_DIR}" )
++   message( STATUS "OSSIM_LIBRARY=${OSSIM_LIBRARY}" )
++endif( NOT OSSIM_FIND_QUIETLY )
++
++MARK_AS_ADVANCED(OSSIM_INCLUDES OSSIM_INCLUDE_DIR OSSIM_LIBRARY)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimCPack.cmake
+@@ -0,0 +1,156 @@
++# This script sets up packaging targets for each "COMPONENT" as specified in INSTALL commands
++#
++# for each component a CPackConfig-<component>.cmake is generated in the build tree
++# and a target is added to call cpack for it (e.g. package_ossim
++# A target for generating a package with everything that gets INSTALLED is generated (package_ossim-all)
++# A target for making all of the above packages is generated (package_ALL)
++#
++# package filenames are created on the form <package>-<platform>-<arch>[-<compiler>]-<build_type>[-static].tgz
++# ...where compiler optionally set using a cmake gui (OSSIM_CPACK_COMPILER). This script tries to guess compiler version for msvc generators
++# ...build_type matches CMAKE_BUILD_TYPE for all generators but the msvc ones
++
++# resolve architecture. The reason i "change" i686 to i386 is that debian packages
++# require i386 so this is for the future
++IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
++    SET(SYSTEM_ARCH "i386")
++ELSE()
++    SET(SYSTEM_ARCH ${CMAKE_SYSTEM_PROCESSOR})
++ENDIF()
++
++# set a default system name - use CMake setting (Linux|Windows|...)
++SET(SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
++#message(STATUS "CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
++#message(STATUS "CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}")
++
++# for msvc the SYSTEM_NAME is set win32/64 instead of "Windows"
++IF(MSVC)
++    IF(CMAKE_CL_64)
++        SET(SYSTEM_NAME "win64")
++    ELSE()
++        SET(SYSTEM_NAME "win32")
++    ENDIF()
++ENDIF()
++# Guess the compiler (is this desired for other platforms than windows?)
++IF(NOT DEFINED OSSIM_CPACK_COMPILER)
++    INCLUDE(OssimDetermineCompiler)
++ENDIF()
++
++# expose the compiler setting to the user
++SET(OSSIM_CPACK_COMPILER "${OSSIM_COMPILER}" CACHE STRING "This ia short string (vc90, vc80sp1, gcc-4.3, ...) describing your compiler. The string is used for creating package filenames")
++
++IF(OSSIM_CPACK_COMPILER)
++  SET(OSSIM_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH}-${OSSIM_CPACK_COMPILER})
++ELSE()
++  SET(OSSIM_CPACK_SYSTEM_SPEC_STRING ${SYSTEM_NAME}-${SYSTEM_ARCH})
++ENDIF()
++
++
++## variables that apply to all packages
++SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${OSSIM_VERSION}")
++
++IF(NOT CPACK_GENERATOR)
++   # these goes for all platforms. Setting these stops the CPack.cmake script from generating options about other package compression formats (.z .tz, etc.)
++   IF(WIN32)
++       SET(CPACK_GENERATOR "ZIP")
++       SET(CPACK_SOURCE_GENERATOR "ZIP")
++   ELSEIF(APPLE)
++#       SET(CPACK_GENERATOR "PackageMaker")
++#       SET(CPACK_SOURCE_GENERATOR "PackageMaker")
++       SET(CPACK_GENERATOR "TGZ")
++       SET(CPACK_SOURCE_GENERATOR "TGZ")
++   ELSE()
++       SET(CPACK_GENERATOR "TGZ")
++       SET(CPACK_SOURCE_GENERATOR "TGZ")
++   ENDIF()
++ENDIF(NOT CPACK_GENERATOR)
++
++# for ms visual studio we use it's internally defined variable to get the configuration (debug,release, ...) 
++IF(MSVC_IDE)
++    SET(OSSIM_CPACK_CONFIGURATION "$(OutDir)")
++    SET(PACKAGE_TARGET_PREFIX "Package ")
++ELSE()
++    # on un*x an empty CMAKE_BUILD_TYPE means release
++    IF(CMAKE_BUILD_TYPE)
++        SET(OSSIM_CPACK_CONFIGURATION ${CMAKE_BUILD_TYPE})
++    ELSE()
++        SET(OSSIM_CPACK_CONFIGURATION "Release")
++    ENDIF()
++    SET(PACKAGE_TARGET_PREFIX "package_")
++ENDIF()
++
++# Get all defined components
++GET_CMAKE_PROPERTY(CPACK_COMPONENTS_ALL COMPONENTS)
++IF(NOT CPACK_COMPONENTS_ALL)
++  # cmake 2.6.0 don't supply the COMPONENTS property.
++  # I set it manually to be the packages that can always be packaged
++  MESSAGE("When building packages please consider using cmake version 2.6.1 or above")
++  SET(CPACK_COMPONENTS_ALL ossim)
++ENDIF()
++
++# Create a target that will be used to generate all packages defined below
++SET(PACKAGE_ALL_TARGETNAME "${PACKAGE_TARGET_PREFIX}ALL")
++ADD_CUSTOM_TARGET(${PACKAGE_ALL_TARGETNAME})
++
++MACRO(GENERATE_PACKAGING_TARGET package_name)
++    SET(CPACK_PACKAGE_NAME ${package_name})
++
++    # the doc packages don't need a system-arch specification
++    IF(${package} MATCHES -doc)
++        SET(OSSIM_PACKAGE_FILE_NAME ${package_name}-${OSSIM_VERSION})
++    ELSE()
++        SET(OSSIM_PACKAGE_FILE_NAME ${package_name}-${OSSIM_VERSION}-${OSSIM_CPACK_SYSTEM_SPEC_STRING}-${OSSIM_CPACK_CONFIGURATION})
++        IF(NOT BUILD_SHARED_LIBS)
++            SET(OSSIM_PACKAGE_FILE_NAME ${OSSIM_PACKAGE_FILE_NAME}-static)
++        ENDIF()
++    ENDIF()
++
++    CONFIGURE_FILE("${${PROJECT_NAME}_SOURCE_DIR}/CMakeModules/OssimCPackConfig.cmake.in" "${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake" IMMEDIATE)
++
++    SET(PACKAGE_TARGETNAME "${PACKAGE_TARGET_PREFIX}${package_name}")
++
++    # This is naive and will probably need fixing eventually
++    IF(MSVC)
++        SET(MOVE_COMMAND "move")
++    ELSE()
++        SET(MOVE_COMMAND "mv")
++    ENDIF()
++    
++    IF(NOT ACHIVE_EXT)
++       # Set in and out archive filenames. Windows = zip, others = tgz
++       IF(WIN32)
++          SET(ARCHIVE_EXT "zip")
++       ELSEIF(APPLE)
++#           SET(ARCHIVE_EXT "dmg")
++           SET(ARCHIVE_EXT "tar.gz")
++      ELSE()
++           SET(ARCHIVE_EXT "tar.gz")
++       ENDIF()
++    ENDIF(NOT ACHIVE_EXT)
++
++    # Create a target that creates the current package
++    # and rename the package to give it proper filename
++    ADD_CUSTOM_TARGET(${PACKAGE_TARGETNAME})
++    ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_TARGETNAME}
++        COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSSIM_CPACK_CONFIGURATION} --config ${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake
++        COMMAND "${MOVE_COMMAND}" "${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" "${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}"
++        COMMAND ${CMAKE_COMMAND} -E echo "renamed ${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT} -> ${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}"
++        COMMENT "Run CPack packaging for ${package_name}..."
++    )
++    # Add the exact same custom command to the all package generating target. 
++    # I can't use add_dependencies to do this because it would allow parallel building of packages so am going brute here
++    ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_ALL_TARGETNAME}
++        COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSSIM_CPACK_CONFIGURATION} --config ${${PROJECT_NAME}_BINARY_DIR}/CPackConfig-${package_name}.cmake
++        COMMAND "${MOVE_COMMAND}" "${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}" "${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}"
++        COMMAND ${CMAKE_COMMAND} -E echo "renamed ${CPACK_PACKAGE_FILE_NAME}.${ARCHIVE_EXT} -> ${OSSIM_PACKAGE_FILE_NAME}.${ARCHIVE_EXT}"
++    )
++ENDMACRO(GENERATE_PACKAGING_TARGET)
++
++# Create configs and targets for a package including all components
++SET(OSSIM_CPACK_COMPONENT ALL)
++GENERATE_PACKAGING_TARGET(ossim-all)
++
++# Create configs and targets for each component
++FOREACH(package ${CPACK_COMPONENTS_ALL})
++    SET(OSSIM_CPACK_COMPONENT ${package})
++    GENERATE_PACKAGING_TARGET(${package})
++ENDFOREACH()
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimCPackConfig.cmake.in
+@@ -0,0 +1,73 @@
++# This file will be configured to contain variables for CPack. These variables
++# should be set in the CMake list file of the project before CPack module is
++# included. Example variables are:
++#   CPACK_GENERATOR                     - Generator used to create package
++#   CPACK_INSTALL_CMAKE_PROJECTS        - For each project (path, name, component)
++#   CPACK_CMAKE_GENERATOR               - CMake Generator used for the projects
++#   CPACK_INSTALL_COMMANDS              - Extra commands to install components
++#   CPACK_INSTALL_DIRECTORIES           - Extra directories to install
++#   CPACK_PACKAGE_DESCRIPTION_FILE      - Description file for the package
++#   CPACK_PACKAGE_DESCRIPTION_SUMMARY   - Summary of the package
++#   CPACK_PACKAGE_EXECUTABLES           - List of pairs of executables and labels
++#   CPACK_PACKAGE_FILE_NAME             - Name of the package generated
++#   CPACK_PACKAGE_ICON                  - Icon used for the package
++#   CPACK_PACKAGE_INSTALL_DIRECTORY     - Name of directory for the installer
++#   CPACK_PACKAGE_NAME                  - Package project name
++#   CPACK_PACKAGE_VENDOR                - Package project vendor
++#   CPACK_PACKAGE_VERSION               - Package project version
++#   CPACK_PACKAGE_VERSION_MAJOR         - Package project version (major)
++#   CPACK_PACKAGE_VERSION_MINOR         - Package project version (minor)
++#   CPACK_PACKAGE_VERSION_PATCH         - Package project version (patch)
++
++# There are certain generator specific ones
++
++# NSIS Generator:
++#   CPACK_PACKAGE_INSTALL_REGISTRY_KEY  - Name of the registry key for the installer
++#   CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra commands used during uninstall
++#   CPACK_NSIS_EXTRA_INSTALL_COMMANDS   - Extra commands used during install
++
++
++SET(CPACK_BINARY_BUNDLE "${CPACK_BINARY_BUNDLE}")
++SET(CPACK_BINARY_CYGWIN "${CPACK_BINARY_CYGWIN}")
++SET(CPACK_BINARY_DEB "${CPACK_BINARY_DEB}")
++SET(CPACK_BINARY_NSIS "${CPACK_BINARY_NSIS}")
++SET(CPACK_BINARY_OSXX11 "${CPACK_BINARY_OSXX11}")
++SET(CPACK_BINARY_PACKAGEMAKER "${CPACK_BINARY_PACKAGEMAKER}")
++SET(CPACK_BINARY_RPM "${CPACK_BINARY_RPM}")
++SET(CPACK_BINARY_STGZ "${CPACK_BINARY_STGZ}")
++SET(CPACK_BINARY_TBZ2 "${CPACK_BINARY_TBZ2}")
++SET(CPACK_BINARY_TGZ "${CPACK_BINARY_TGZ}")
++SET(CPACK_BINARY_TZ "${CPACK_BINARY_TZ}")
++SET(CPACK_BINARY_ZIP "${CPACK_BINARY_ZIP}")
++SET(CPACK_CMAKE_GENERATOR "${CMAKE_GENERATOR}")
++SET(CPACK_COMPONENTS_ALL "${CPACK_COMPONENTS_ALL}")
++SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
++SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
++SET(CPACK_GENERATOR "${CPACK_GENERATOR}")
++SET(CPACK_INSTALL_CMAKE_PROJECTS "${${PROJECT_NAME}_BINARY_DIR};ossim;${OSSIM_CPACK_COMPONENT};/")
++SET(CPACK_INSTALL_PREFIX "${CPACK_INSTALL_PREFIX}")
++SET(CPACK_MODULE_PATH "${${PROJECT_NAME}_SOURCE_DIR}/CMakeModules;")
++SET(CPACK_NSIS_DISPLAY_NAME "${CMAKE_PROJECT_NAME} ${OSSIM_VERSION}")
++SET(CPACK_NSIS_INSTALLER_ICON_CODE "")
++SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
++SET(CPACK_OUTPUT_CONFIG_FILE "${PROJECT_BINARY_DIR}/CPackConfig-${OSSIM_CPACK_COMPONENT}.cmake")
++SET(CPACK_PACKAGE_DEFAULT_LOCATION "/")
++SET(CPACK_PACKAGE_DESCRIPTION_FILE "${${PROJECT_NAME}_SOURCE_DIR}/README.txt")
++SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OSSIM is an open source high performance sensor modeling and image processing library")
++SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}")
++SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
++SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CMAKE_PROJECT_NAME}-${OSSIM_VERSION}")
++SET(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
++SET(CPACK_PACKAGE_RELOCATABLE "true")
++SET(CPACK_PACKAGE_VENDOR "OSSIM")
++SET(CPACK_PACKAGE_VERSION "${OSSIM_VERSION}")
++SET(CPACK_PACKAGE_VERSION_MAJOR "${OSSIM_MAJOR_VERSION}")
++SET(CPACK_PACKAGE_VERSION_MINOR "${OSSIM_MINOR_VERSION}")
++SET(CPACK_PACKAGE_VERSION_PATCH "${OSSIM_PATCH_VERSION}")
++SET(CPACK_RESOURCE_FILE_LICENSE "${${PROJECT_NAME}_SOURCE_DIR}/LICENSE.txt")
++SET(CPACK_RESOURCE_FILE_README "${${PROJECT_NAME}_SOURCE_DIR}/README.txt")
++SET(CPACK_RESOURCE_FILE_WELCOME "${${PROJECT_NAME}_SOURCE_DIR}/NEWS.txt")
++SET(CPACK_SET_DESTDIR "OFF")
++SET(CPACK_STRIP_FILES "ON")
++SET(CPACK_RPM_PACKAGE_DEBUG "1")
++SET(CPACK_OSX_PACKAGE_VERSION "10.6")
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimCommonVariables.cmake
+@@ -0,0 +1,258 @@
++##################################################################################
++# This currently sets up the options for the WARNING FLAGS for the compiler we are generating for.
++# Currently only have gnu
++##################################################################################
++MACRO(OSSIM_ADD_COMMON_LIBRARY_FLAGS)
++   OPTION(OSSIM_COMPILE_WITH_FULL_WARNING "OSSIM developers : Compilation with FULL warning (use only for ossim developers)." OFF)
++   MARK_AS_ADVANCED(OSSIM_COMPILE_WITH_FULL_WARNING)
++   
++   IF(OSSIM_COMPILE_WITH_FULL_WARNING)
++     IF(CMAKE_COMPILER_IS_GNUCXX)
++       SET(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -Wall -Wunused  -Wunused-function  -Wunused-label  -Wunused-parameter -Wunused-value -Wunused-variable -Wuninitialized -Wsign-compare -Wparentheses -Wunknown-pragmas -Wswitch" CACHE STRING "List of compilation parameters.")
++     ENDIF(CMAKE_COMPILER_IS_GNUCXX)
++   ENDIF(OSSIM_COMPILE_WITH_FULL_WARNING)
++
++   IF(WIN32)
++      #---
++      # This option is to enable the /MP to compile multiple source files by using 
++      # multiple processes.
++      #---
++      OPTION(WIN32_USE_MP "Set to ON to build OSSIM with the /MP option (Visual Studio 2005 and above)." OFF)
++      MARK_AS_ADVANCED(WIN32_USE_MP)
++      IF(WIN32_USE_MP)
++         SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
++      ENDIF(WIN32_USE_MP)
++     
++      set(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -DNOMINMAX -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE") 
++ 
++      set(DEBUG_BUILD OFF)
++      IF(CMAKE_BUILD_TYPE)
++         string ( COMPARE EQUAL ${CMAKE_BUILD_TYPE} "Debug" DEBUG_BUILD )
++      ENDIF(CMAKE_BUILD_TYPE)
++     
++      ###
++      # Currently must set /FORCE:MULTIPLE for Visual Studio 2010. 29 October 2010 - drb
++      ###
++  
++      IF(MSVC)
++         message("MSVC_VERSION: ${MSVC_VERSION}")
++
++         if( (${MSVC_VERSION} EQUAL 1600) OR (${MSVC_VERSION} EQUAL 1700) )
++            if (DEBUG_BUILD)
++               SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /NODEFAULTLIB:MSVCRT /FORCE:MULTIPLE /MANIFEST:NO")
++               SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO")
++
++            else ( )
++               SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO")
++               SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE /MANIFEST:NO")
++            endif (DEBUG_BUILD)
++
++            SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD /FORCE:MULTIPLE")
++         else( )
++            SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMTD")
++         endif( (${MSVC_VERSION} EQUAL 1600) OR (${MSVC_VERSION} EQUAL 1700) )
++      ENDIF(MSVC)
++   ENDIF(WIN32)
++   
++   OPTION(OSSIM_ADD_FPIC "Compilation with FPIC flag if static library.  The default is on since we have plugins that need to be shared." ON)
++   MARK_AS_ADVANCED(OSSIM_ADD_FPIC)
++   IF(OSSIM_ADD_FPIC)
++       IF(UNIX AND NOT BUILD_SHARED_LIBS)
++          STRING(REGEX MATCH "fPIC" REG_MATCHED "${OSSIM_COMMON_COMPILER_FLAGS}")
++          if(NOT REG_MATCHED)
++             set(OSSIM_COMMON_COMPILER_FLAGS "${OSSIM_COMMON_COMPILER_FLAGS} -fPIC")
++          endif(NOT REG_MATCHED)
++       ENDIF(UNIX AND NOT BUILD_SHARED_LIBS)
++   ENDIF(OSSIM_ADD_FPIC)
++
++   MARK_AS_ADVANCED(OSSIM_COMMON_COMPILER_FLAGS)
++ENDMACRO(OSSIM_ADD_COMMON_LIBRARY_FLAGS)
++
++MACRO(OSSIM_ADD_COMMON_SETTINGS)
++   ###################################################################################
++   # Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4
++   # and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support.
++   # These are just defaults/recommendations, but how we want to build
++   # out of the box. But the user needs to be able to change these options.
++   # So we must only set the values the first time CMake is run, or we
++   # will overwrite any changes the user sets.
++   # FORCE is used because the options are not reflected in the UI otherwise.
++   # Seems like a good place to add version specific compiler flags too.
++   ###################################################################################
++   IF(APPLE)
++        # use, i.e. don't skip the full RPATH for the build tree
++        SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
++
++        # when building, don't use the install RPATH already
++        # (but later on when installing)
++        SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) 
++
++        SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}")
++
++        # add the automatically determined parts of the RPATH
++        # which point to directories outside the build tree to the install RPATH
++        SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
++
++
++        # the RPATH to be used when installing, but only if it's not a system directory
++        LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}" isSystemDir)
++
++        IF("${isSystemDir}" STREQUAL "-1")
++           SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}")
++        ENDIF("${isSystemDir}" STREQUAL "-1")
++
++        SET(TEMP_CMAKE_OSX_ARCHITECTURES "")
++        SET(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}")
++        # This is really fragile, but CMake doesn't provide the OS system
++        # version information we need. (Darwin versions can be changed
++        # independently of OS X versions.)
++        # It does look like CMake handles the CMAKE_OSX_SYSROOT automatically.
++        IF(EXISTS /Developer/SDKs/MacOSX10.6.sdk)
++            SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;x86_64")
++            IF(NOT ("${CMAKE_CXX_FLAGS}" MATCHES "mmacosx-version-min"))
++               SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.")
++            ENDIF()
++        ELSEIF(EXISTS /Developer/SDKs/MacOSX10.5.sdk)
++            # 64-bit compiles are not supported with Carbon. We should enable 
++            SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;x86_64")
++            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.")
++        ELSEIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
++            SET(TEMP_CMAKE_OSX_ARCHITECTURES "i386;ppc")
++            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types.")
++        ELSE()
++            # No Universal Binary support
++            # Should break down further to set the -mmacosx-version-min,
++            # but the SDK detection is too unreliable here.
++        ENDIF()
++        IF(NOT CMAKE_OSX_ARCHITECTURES)
++           SET(CMAKE_OSX_ARCHITECTURES "${TEMP_CMAKE_OSX_ARCHITECTURES}" CACHE STRING "Build architectures for OSX" FORCE)
++        ENDIF()
++        OPTION(OSSIM_BUILD_APPLICATION_BUNDLES "Enable the building of applications and examples as OSX Bundles" OFF)
++        
++       MARK_AS_ADVANCED(CMAKE_OSX_ARCHITECTURES)
++       MARK_AS_ADVANCED(CMAKE_CXX_FLAGS)
++       MARK_AS_ADVANCED(CMAKE_OSX_SYSROOT)
++       MARK_AS_ADVANCED(OSSIM_BUILD_APPLICATION_BUNDLES)
++   ENDIF(APPLE)
++
++  SET(MAKE_APPENDS_BUILD_TYPE "NO")
++  IF(CMAKE_GENERATOR)
++     STRING(TOUPPER ${CMAKE_GENERATOR} CMAKE_GENERATOR_TEST_UPPER)
++     STRING(COMPARE EQUAL "${CMAKE_GENERATOR_TEST_UPPER}" "XCODE" CMAKE_GENERATOR_TEST)
++     IF(CMAKE_GENERATOR_TEST)
++          SET(MAKE_APPENDS_BUILD_TYPE "YES")
++     ELSE()
++          STRING(COMPARE NOTEQUAL "." "${CMAKE_CFG_INTDIR}" CMAKE_GENERATOR_TEST)
++          IF(CMAKE_GENERATOR_TEST)
++             SET(MAKE_APPENDS_BUILD_TYPE "YES")
++          ENDIF()
++     ENDIF()
++  ENDIF(CMAKE_GENERATOR)
++   OSSIM_ADD_COMMON_LIBRARY_FLAGS()
++
++   # Dynamic vs Static Linking
++   OPTION(BUILD_SHARED_LIBS "Set to ON to build OSSIM for dynamic linking.  Use OFF for static." ON)
++   OPTION(BUILD_OSSIM_FRAMEWORKS "Set to ON to build OSSIM for framework if BUILD_SHARED_LIBS is on.  Use OFF for dylib if BUILD_SHARED_LIBS is on." ON)
++   IF(BUILD_SHARED_LIBS)
++       SET(OSSIM_USER_DEFINED_DYNAMIC_OR_STATIC "SHARED")
++   ELSE ()
++       SET(OSSIM_USER_DEFINED_DYNAMIC_OR_STATIC "STATIC")
++   ENDIF()
++
++#   IF(NOT OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY)  
++#      SET(OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY ${${PROJECT_NAME}_SOURCE_DIR}/lib)
++#   ENDIF(NOT OSSIM_LIBRARY_BUILD_OUTPUT_DIRECTORY)  
++#   IF(NOT OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY)  
++#      SET(OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY ${${PROJECT_NAME}_SOURCE_DIR}/bin)
++#   ENDIF(NOT OSSIM_RUNTIME_BUILD_OUTPUT_DIRECTORY)  
++
++   IF(MAKE_APPENDS_BUILD_TYPE)
++      SET(BUILD_FRAMEWORK_DIR "")
++      SET(BUILD_RUNTIME_DIR   "")
++      SET(BUILD_LIBRARY_DIR   "")
++      SET(BUILD_ARCHIVE_DIR   "")
++      SET(BUILD_INCLUDE_DIR   "include")
++   ELSE()
++      IF(NOT DEFINED BUILD_FRAMEWORK_DIR)
++         SET(BUILD_FRAMEWORK_DIR "${CMAKE_BUILD_TYPE}")
++      ENDIF()
++      IF(NOT DEFINED BUILD_RUNTIME_DIR)
++         SET(BUILD_RUNTIME_DIR   "${CMAKE_BUILD_TYPE}")
++      ENDIF()
++      IF(NOT DEFINED BUILD_LIBRARY_DIR)  
++         SET(BUILD_LIBRARY_DIR   "${CMAKE_BUILD_TYPE}")
++      ENDIF()
++      IF(NOT DEFINED BUILD_ARCHIVE_DIR)
++         SET(BUILD_ARCHIVE_DIR   "${CMAKE_BUILD_TYPE}")
++      ENDIF()
++      IF(NOT DEFINED BUILD_INCLUDE_DIR)
++         SET(BUILD_INCLUDE_DIR   "include")
++      ENDIF()
++   ENDIF()
++
++   SET(INSTALL_FRAMEWORK_DIR "Frameworks")
++   SET(INSTALL_RUNTIME_DIR   "bin")
++   SET(INSTALL_INCLUDE_DIR   "include")
++
++   # Libraries and archives go to lib or lib64.
++   get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)       
++   if(LIB64)
++      set(LIBSUFFIX 64)
++   else()
++      set(LIBSUFFIX "")
++   endif()   
++   set(INSTALL_LIBRARY_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries")
++   set(INSTALL_ARCHIVE_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for archive")
++   mark_as_advanced(LIBSUFFIX)
++   mark_as_advanced(INSTALL_LIBRARY_DIR)
++   mark_as_advanced(INSTALL_ARCHIVE_DIR)
++   
++   IF(WIN32)
++       IF(NOT DEFINED CMAKE_DEBUG_POSTFIX)
++          SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Debug variable used to add the postfix to dll's and exe's.  Defaults to 'd' on WIN32 builds and empty on all other platforms" FORCE)
++       ENDIF()
++   ENDIF()
++   IF(NOT CMAKE_BUILD_TYPE)
++     SET(CMAKE_BUILD_TYPE Release)
++   ENDIF(NOT CMAKE_BUILD_TYPE)
++
++   # force some variables that could be defined in the command line to be written to cache
++   SET( CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH
++     "Where to install ${PROJECT_NAME}" FORCE )
++   SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
++     "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE )
++   SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" CACHE PATH
++     "Path to custom CMake Modules" FORCE )
++   SET( INSTALL_DOC "${INSTALL_DOC}" CACHE BOOL
++     "Set to OFF to skip build/install Documentation" FORCE )
++
++   IF(NOT OSSIM_DEV_HOME)
++      SET(OSSIM_DEV_HOME "$ENV{OSSIM_DEV_HOME}")
++      GET_FILENAME_COMPONENT(OSSIM_DEV_HOME "${OSSIM_DEV_HOME}" ABSOLUTE)
++   ENDIF(NOT OSSIM_DEV_HOME)
++   IF(NOT CMAKE_INSTALL_PREFIX)
++      SET(CMAKE_INSTALL_PREFIX "$ENV{OSSIM_INSTALL_PREFIX}")
++       GET_FILENAME_COMPONENT(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)   
++   ENDIF(NOT CMAKE_INSTALL_PREFIX)
++   IF(NOT OSSIM_DEPENDENCIES)
++      SET(OSSIM_DEPENDENCIES "$ENV{OSSIM_DEPENDENCIES}")
++      GET_FILENAME_COMPONENT(OSSIM_DEPENDENCIES "${OSSIM_DEPENDENCIES}" ABSOLUTE)   
++   ENDIF(NOT OSSIM_DEPENDENCIES)
++ 
++   #################################### ADd some common options for all modules to use ###################################
++   OPTION(BUILD_OSSIMC "Set to ON to build the ossim c api interfaces.  Use OFF to skip this module." OFF)
++   OPTION(BUILD_OSSIMPREDATOR "Set to ON to build the Predator video decoding library.  Use OFF to skip this module." ON)
++   OPTION(BUILD_OSSIMPLANET "Set to ON to build the 3-D visualization module.  Use OFF to skip this module." ON)
++   OPTION(BUILD_OSSIMPLANETQT "Set to ON to build the 3-D visualization Qt GUI module.  Use OFF to skip this module." ON)
++   OPTION(BUILD_OSSIMQT4 "Set to ON to build the 2-D Qt4 GUI." ON)
++   OPTION(BUILD_OSSIMGUI "Set to ON to build the new ossimGui library and geocell application." ON)
++   OPTION(BUILD_CSMAPI "Set to ON to build the csm api library." ON)
++   OPTION(BUILD_OMS "Set to ON to build the oms api library." ON)
++   OPTION(BUILD_WMS "Set to ON to build the wms api library." ON)
++
++
++ENDMACRO(OSSIM_ADD_COMMON_SETTINGS)
++
++
++OSSIM_ADD_COMMON_SETTINGS()
++
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimDetermineCompiler.cmake
+@@ -0,0 +1,77 @@
++# - If Visual Studio is being used, this script sets the variable OSG_COMPILER
++# The principal reason for this is due to MSVC 8.0 SP0 vs SP1 builds.
++#
++# Variable:
++#   OSG_COMPILER
++# 
++
++# Not currently used...
++#IF(CMAKE_COMPILER_IS_GNUCXX)
++#    EXEC_PROGRAM(
++#        ${CMAKE_CXX_COMPILER}  
++#        ARGS     ${CMAKE_CXX_COMPILER_ARG1} -dumpversion 
++#        OUTPUT_VARIABLE gcc_compiler_version
++#    )
++#    #MESSAGE("GCC Version: ${gcc_compiler_version}")
++
++IF(MSVC60)
++    SET(OSG_COMPILER "vc60")
++ELSEIF(MSVC70)
++    SET(OSG_COMPILER "vc70")
++ELSEIF(MSVC71)
++    SET(OSG_COMPILER "vc71")
++ELSEIF(MSVC80)
++    SET(OSG_COMPILER "vc80")
++ELSEIF(MSVC90)
++    SET(OSG_COMPILER "vc90")
++ELSEIF(MSVC100)
++    SET(OSG_COMPILER "vc100")
++ENDIF()
++
++MESSAGE("OSG_COMPILER ${OSG_COMPILER}")
++
++IF(MSVC80)
++    MESSAGE(STATUS "Checking if compiler has service pack 1 installed...")
++    FILE(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx" "int main() {return 0;}\n")
++
++    TRY_COMPILE(_TRY_RESULT
++        ${CMAKE_BINARY_DIR}
++        ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx
++        CMAKE_FLAGS -D CMAKE_VERBOSE_MAKEFILE=ON
++        OUTPUT_VARIABLE OUTPUT
++        )
++
++    IF(_TRY_RESULT)
++        # parse for exact compiler version
++        STRING(REGEX MATCH "Compiler Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vc_compiler_version "${OUTPUT}")
++        IF(vc_compiler_version)
++            #MESSAGE("${vc_compiler_version}")
++            STRING(REGEX MATCHALL "[0-9]+" CL_VERSION_LIST "${vc_compiler_version}")
++            LIST(GET CL_VERSION_LIST 0 CL_MAJOR_VERSION)
++            LIST(GET CL_VERSION_LIST 1 CL_MINOR_VERSION)
++            LIST(GET CL_VERSION_LIST 2 CL_PATCH_VERSION)
++            LIST(GET CL_VERSION_LIST 3 CL_EXTRA_VERSION)
++        ENDIF(vc_compiler_version)
++
++        # Standard vc80 is 14.00.50727.42, sp1 14.00.50727.762, sp2?
++        # Standard vc90 is 9.0.30729.1, sp1 ?
++        IF(CL_EXTRA_VERSION EQUAL 762)
++            SET(OSG_COMPILER "vc80sp1")
++        ELSE(CL_EXTRA_VERSION EQUAL 762)
++            SET(OSG_COMPILER "vc80")
++        ENDIF(CL_EXTRA_VERSION EQUAL 762)
++
++        # parse for exact visual studio version
++        #IF(MSVC_IDE)
++        # string(REGEX MATCH "Visual Studio Version [0-9]+.[0-9]+.[0-9]+.[0-9]+" vs_version "${OUTPUT}")
++        # IF(vs_version)
++        # MESSAGE("${vs_version}")
++        # string(REGEX MATCHALL "[0-9]+" VS_VERSION_LIST "${vs_version}")
++        # list(GET VS_VERSION_LIST 0 VS_MAJOR_VERSION)
++        # list(GET VS_VERSION_LIST 1 VS_MINOR_VERSION)
++        # list(GET VS_VERSION_LIST 2 VS_PATCH_VERSION)
++        # list(GET VS_VERSION_LIST 3 VS_EXTRA_VERSION)
++        # ENDIF(vs_version)
++        #ENDIF(MSVC_IDE)
++    ENDIF(_TRY_RESULT)
++ENDIF(MSVC80)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimQt4Macros.cmake
+@@ -0,0 +1,24 @@
++include(Qt4Macros)
++MACRO (OSSIM_QT4_WRAP_UI outfiles)
++
++  if(CMAKE_VERSION VERSION_LESS 2.8.12)
++    QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN})
++  else()
++    QT4_EXTRACT_OPTIONS(ui_files ui_options "" ${ARGN})
++  endif()
++  FOREACH (it ${ui_files})
++    GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
++    GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
++    IF(UI_DESTINATION_DIR)
++      SET(outfile ${UI_DESTINATION_DIR}/ui_${outfile}.h)
++    ELSE(UI_DESTINATION_DIR)
++      SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
++    ENDIF(UI_DESTINATION_DIR)
++    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
++      COMMAND ${QT_UIC_EXECUTABLE}
++      ARGS ${ui_options} -o ${outfile} ${infile}
++      MAIN_DEPENDENCY ${infile})
++    SET(${outfiles} ${${outfiles}} ${outfile})
++  ENDFOREACH (it)
++
++ENDMACRO (OSSIM_QT4_WRAP_UI)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimQt5Macros.cmake
+@@ -0,0 +1,19 @@
++include(Qt5Macros)
++MACRO (OSSIM_QT_WRAP_UI outfiles)
++  QT5_EXTRACT_OPTIONS(ui_files ui_options ${ARGN})
++  FOREACH (it ${ui_files})
++    GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
++    GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
++    IF(UI_DESTINATION_DIR)
++      SET(outfile ${UI_DESTINATION_DIR}/ui_${outfile}.h)
++    ELSE(UI_DESTINATION_DIR)
++      SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
++    ENDIF(UI_DESTINATION_DIR)
++    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
++      COMMAND ${QT_UIC_EXECUTABLE}
++      ARGS ${ui_options} -o ${outfile} ${infile}
++      MAIN_DEPENDENCY ${infile})
++    SET(${outfiles} ${${outfiles}} ${outfile})
++  ENDFOREACH (it)
++
++ENDMACRO (OSSIM_QT_WRAP_UI)
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimUtilities.cmake
+@@ -0,0 +1,359 @@
++#################################################################################
++# This was taken from the http://www.cmake.org/Wiki/CMakeMacroParseArguments
++#################################################################################
++MACRO(OSSIM_PARSE_ARGUMENTS prefix arg_names option_names)
++  SET(DEFAULT_ARGS)
++  FOREACH(arg_name ${arg_names})    
++    SET(${prefix}_${arg_name})
++  ENDFOREACH(arg_name)
++  FOREACH(option ${option_names})
++    SET(${prefix}_${option} FALSE)
++  ENDFOREACH(option)
++
++  SET(current_arg_name DEFAULT_ARGS)
++  SET(current_arg_list)
++  FOREACH(arg ${ARGN})            
++    SET(larg_names ${arg_names})    
++    LIST(FIND larg_names "${arg}" is_arg_name)                   
++    IF (is_arg_name GREATER -1)
++      SET(${prefix}_${current_arg_name} ${current_arg_list})
++      SET(current_arg_name ${arg})
++      SET(current_arg_list)
++    ELSE (is_arg_name GREATER -1)
++      SET(loption_names ${option_names})    
++      LIST(FIND loption_names "${arg}" is_option)            
++      IF (is_option GREATER -1)
++	     SET(${prefix}_${arg} TRUE)
++      ELSE (is_option GREATER -1)
++	     SET(current_arg_list ${current_arg_list} ${arg})
++      ENDIF (is_option GREATER -1)
++    ENDIF (is_arg_name GREATER -1)
++  ENDFOREACH(arg)
++  SET(${prefix}_${current_arg_name} ${current_arg_list})
++ENDMACRO(OSSIM_PARSE_ARGUMENTS)
++
++##############################################################################################
++# This was taken from http://www.cmake.org/Wiki/CMakeMacroListOperations#CAR_and_CDR
++##############################################################################################
++MACRO(OSSIM_CAR var)
++  SET(${var} ${ARGV1})
++ENDMACRO(OSSIM_CAR)
++
++#############################################################################################
++# This was taken from http://www.cmake.org/Wiki/CMakeMacroListOperations#CAR_and_CDR
++#############################################################################################
++MACRO(OSSIM_CDR var junk)
++  SET(${var} ${ARGN})
++ENDMACRO(OSSIM_CDR)
++
++#################################################################################
++#  MACRO: TODAYS_DATE
++#  
++#  DESCRIPTION:
++#      MACRO FOR GETTING THE DATE AND TIME INFORMATION
++#################################################################################
++MACRO (TODAYS_DATE RESULT)
++  string(TIMESTAMP  ${RESULT} "%Y%m%d" UTC)
++ENDMACRO (TODAYS_DATE)
++
++#################################################################################
++#  MACRO: GET_SVN_REVISION
++#  
++#  DESCRIPTION:
++#      MACRO FOR GETTING THE SVN revision for this build
++#################################################################################
++MACRO (GET_SVN_REVISION)
++   FIND_PACKAGE(Subversion)
++   IF(SUBVERSION_FOUND)
++      Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)
++      # MESSAGE("Current revision is ${Project_WC_REVISION}")
++      # Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)
++      # MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}")
++   ENDIF()
++ENDMACRO(GET_SVN_REVISION)
++
++MACRO(LINK_EXTERNAL TRGTNAME)
++    FOREACH(LINKLIB ${ARGN})
++        TARGET_LINK_LIBRARIES(${TRGTNAME} "${LINKLIB}" )
++    ENDFOREACH(LINKLIB)
++ENDMACRO(LINK_EXTERNAL TRGTNAME)
++
++MACRO(LINK_INTERNAL TRGTNAME)
++    IF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
++        TARGET_LINK_LIBRARIES(${TRGTNAME} ${ARGN})
++    ELSE(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
++        FOREACH(LINKLIB ${ARGN})
++            IF(MSVC AND OSSIM_MSVC_VERSIONED_DLL)
++                #when using versioned names, the .dll name differ from .lib name, there is a problem with that:
++                #CMake 2.4.7, at least seem to use PREFIX instead of IMPORT_PREFIX  for computing linkage info to use into projects,
++                # so we full path name to specify linkage, this prevent automatic inferencing of dependencies, so we add explicit depemdencies
++                #to library targets used
++                TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_RELEASE_POSTFIX}.lib" debug "${OUTPUT_LIBDIR}/${LINKLIB}${CMAKE_DEBUG_POSTFIX}.lib")
++                ADD_DEPENDENCIES(${TRGTNAME} ${LINKLIB})
++            ELSE(MSVC AND OSSIM_MSVC_VERSIONED_DLL)
++                TARGET_LINK_LIBRARIES(${TRGTNAME} optimized "${LINKLIB}${CMAKE_RELEASE_POSTFIX}" debug "${LINKLIB}${CMAKE_DEBUG_POSTFIX}")
++            ENDIF(MSVC AND OSSIM_MSVC_VERSIONED_DLL)
++        ENDFOREACH(LINKLIB)
++    ENDIF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
++ENDMACRO(LINK_INTERNAL TRGTNAME)
++
++######################################################################
++#
++# This set up the libraries to link to, it assumes there are two variable: one common for a group of examples or plugins
++# kept in the variable TARGET_COMMON_LIBRARIES and an example or plugin specific kept in TARGET_ADDED_LIBRARIES 
++# they are combined in a single list checked for unicity 
++# the suffix ${CMAKE_DEBUG_POSTFIX} is used for differentiating optimized and debug
++#
++# a second variable TARGET_EXTERNAL_LIBRARIES hold the list of  libraries not differentiated between debug and optimized 
++##################################################################################
++MACRO(SETUP_LINK_LIBRARIES)
++    SET(TARGET_LIBRARIES ${TARGET_COMMON_LIBRARIES})
++
++    FOREACH(LINKLIB ${TARGET_ADDED_LIBRARIES})
++      SET(TO_INSERT TRUE)
++      FOREACH (value ${TARGET_COMMON_LIBRARIES})
++            IF (${value} STREQUAL ${LINKLIB})
++                  SET(TO_INSERT FALSE)
++            ENDIF (${value} STREQUAL ${LINKLIB})
++        ENDFOREACH (value ${TARGET_COMMON_LIBRARIES})
++      IF(TO_INSERT)
++          LIST(APPEND TARGET_LIBRARIES ${LINKLIB})
++      ENDIF(TO_INSERT)
++    ENDFOREACH(LINKLIB)
++
++    LINK_INTERNAL(${TARGET_TARGETNAME} ${TARGET_LIBRARIES})
++    TARGET_LINK_LIBRARIES(${TARGET_TARGETNAME} ${TARGET_EXTERNAL_LIBRARIES})
++    IF(TARGET_LIBRARIES_VARS)
++        LINK_WITH_VARIABLES(${TARGET_TARGETNAME} ${TARGET_LIBRARIES_VARS})
++    ENDIF(TARGET_LIBRARIES_VARS)
++ENDMACRO(SETUP_LINK_LIBRARIES)
++
++
++MACRO(OSSIM_SETUP_APPLICATION)
++   OSSIM_PARSE_ARGUMENTS(APPLICATION
++			"COMPONENT_NAME;SOURCE_FILES;HEADERS;TARGET_NAME;TARGET_LABEL" 
++                        "COMMAND_LINE;INSTALL;REQUIRE_WINMAIN_FLAG" 
++                        ${ARGN})
++   OSSIM_CAR(APPLICATION_NAME "${APPLICATION_DEFAULT_ARGS}")
++   OSSIM_CDR(APPLICATION_SOURCES "${APPLICATION_DEFAULT_ARGS}")
++   SET(TARGET_NAME ${APPLICATION_NAME})
++   SET(TARGET_TARGETNAME "${TARGET_DEFAULT_PREFIX}${APPLICATION_NAME}")
++   IF(APPLICATION_TARGET_NAME)
++      set(TARGET_TARGETNAME "${APPLICATION_TARGET_NAME}")
++   ENDIF(APPLICATION_TARGET_NAME)
++
++   SET(TARGET_LABEL "${TARGET_DEFAULT_LABEL_PREFIX} ${APPLICATION_NAME}")
++   IF(APPLICATION_TARGET_LABEL)
++      SET(TARGET_LABEL "${APPLICATION_TARGET_LABEL}")
++   ENDIF(APPLICATION_TARGET_LABEL)
++
++   IF(APPLICATION_COMMAND_LINE)
++        ADD_EXECUTABLE(${TARGET_TARGETNAME} ${APPLICATION_SOURCE_FILES} ${APPLICATION_HEADERS})
++        
++    ELSE(APPLICATION_COMMAND_LINE)
++        IF(APPLE)
++            # SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}")
++            # Short Version is the "marketing version". It is the version
++            # the user sees in an information panel.
++            SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}")
++            # Bundle version is the version the OS looks at.
++            SET(MACOSX_BUNDLE_BUNDLE_VERSION "${OSSIM_MAJOR_VERSION}.${OSSIM_MINOR_VERSION}.${OSSIM_PATCH_VERSION}")
++            SET(MACOSX_BUNDLE_GUI_IDENTIFIER "org.ossim.${TARGET_TARGETNAME}" )
++            SET(MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_TARGETNAME}" )
++            # SET(MACOSX_BUNDLE_ICON_FILE "myicon.icns")
++            # SET(MACOSX_BUNDLE_COPYRIGHT "")
++            # SET(MACOSX_BUNDLE_INFO_STRING "Info string, localized?")
++        ENDIF(APPLE)
++
++        IF(WIN32)
++            IF (APPLICATION_REQUIRE_WINMAIN_FLAG)
++                SET(PLATFORM_SPECIFIC_CONTROL WIN32)
++            ENDIF (APPLICATION_REQUIRE_WINMAIN_FLAG)
++        ENDIF(WIN32)
++
++        IF(APPLE)
++            IF(OSSIM_BUILD_APPLICATION_BUNDLES)
++                SET(PLATFORM_SPECIFIC_CONTROL MACOSX_BUNDLE)
++            ENDIF(OSSIM_BUILD_APPLICATION_BUNDLES)
++        ENDIF(APPLE)
++
++        ADD_EXECUTABLE(${TARGET_TARGETNAME} ${PLATFORM_SPECIFIC_CONTROL} ${APPLICATION_SOURCE_FILES} ${APPLICATION_HEADERS})
++        
++    ENDIF(APPLICATION_COMMAND_LINE)
++
++
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL}")
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME})
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES DEBUG_OUTPUT_NAME "${TARGET_NAME}${CMAKE_DEBUG_POSTFIX}")
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELEASE_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELEASE_POSTFIX}")
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES RELWITHDEBINFO_OUTPUT_NAME "${TARGET_NAME}${CMAKE_RELWITHDEBINFO_POSTFIX}")
++    SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES MINSIZEREL_OUTPUT_NAME "${TARGET_NAME}${CMAKE_MINSIZEREL_POSTFIX}")
++   if(APPLE)
++        IF(BUILD_OSSIM_FRAMEWORKS)
++          SET_TARGET_PROPERTIES(${TARGET_TARGETNAME}  PROPERTIES 
++                             BUILD_WITH_INSTALL_RPATH ON )
++
++        ENDIF(BUILD_OSSIM_FRAMEWORKS)
++   ENDIF(APPLE)
++
++    IF(MSVC_IDE AND OSSIM_MSVC_VERSIONED_DLL)
++            SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../")    
++    ENDIF(MSVC_IDE AND OSSIM_MSVC_VERSIONED_DLL)
++    
++
++    SETUP_LINK_LIBRARIES() 
++
++    IF(APPLICATION_INSTALL)  
++        IF(APPLE) 
++            INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} BUNDLE DESTINATION ${INSTALL_RUNTIME_DIR} COMPONENT ${APPLICATION_COMPONENT_NAME})
++        ELSE(APPLE)
++            INSTALL(TARGETS ${TARGET_TARGETNAME} RUNTIME DESTINATION ${INSTALL_RUNTIME_DIR} ${INSTALL_COMPONENT_INFO} COMPONENT ${APPLICATION_COMPONENT_NAME})
++        ENDIF(APPLE)
++    ENDIF(APPLICATION_INSTALL)
++
++   SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES 
++                              RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_RUNTIME_DIR}")    
++
++      
++ENDMACRO(OSSIM_SETUP_APPLICATION)
++
++#####################################################################################################
++# MACRO: OSSIM_LINK_LIBRARY
++#
++# Example: 
++#     OSSIM_LINK_LIBRARY(ossim 
++#                        COMPONENT_NAME ossim 
++#                        SOURCE_FILES foo.cpp 
++#                        HEADERS foo.h 
++#                        TYPE SHARED
++#                        LIBRARIES <list of libraries to link against>
++#                        INSTALL_LIB
++#                        INSTALL_HEADERS)
++#
++#    The INSTALL_LIB says to add a default install command for the library by default it will setup the following
++#           install(TARGETS ossim
++#               FRAMEWORK           DESTINATION         ${INSTALL_FRAMEWORK_DIR}
++#               RUNTIME             DESTINATION         ${INSTALL_RUNTIME_DIR}
++#               LIBRARY             DESTINATION         ${INSTALL_LIBRARY_DIR}
++#               ARCHIVE             DESTINATION         ${INSTALL_ARCHIVE_DIR}
++#               PUBLIC_HEADER       DESTINATION         ${INSTALL_INCLUDE_DIR} 
++#               COMPONENT ossim)
++#
++#   The INSTALL_HEADERS will do a default header installation if the option is passed in
++#        install(FILES <list of headers> DESTINATION "include/ossim" COMPONENT ossim)
++#####################################################################################################
++MACRO(OSSIM_LINK_LIBRARY)
++   # The SO_VERSION and VERSION are here for override purpose only so other libraries with their own 
++   # versioning scheme can use the sum linking
++   #
++   OSSIM_PARSE_ARGUMENTS(LINK
++			"COMPONENT_NAME;SOURCE_FILES;HEADERS;TYPE;LIBRARIES;ADDITIONAL_COMPILE_FLAGS;SOVERSION;VERSION;PUBLIC_HEADERS"
++                        "INSTALL_LIB;INSTALL_HEADERS;VERSION_SYMLINKS" 
++                        ${ARGN})
++   OSSIM_CAR(LINK_NAME "${LINK_DEFAULT_ARGS}")
++   OSSIM_CDR(LINK_SOURCES "${LINK_DEFAULT_ARGS}")
++   ADD_DEFINITIONS("${OSSIM_COMMON_COMPILER_FLAGS}")
++   ADD_LIBRARY(${LINK_NAME}
++               ${LINK_TYPE}
++               ${LINK_HEADERS}
++               ${LINK_SOURCE_FILES})
++   IF(NOT LINK_PUBLIC_HEADERS)
++      SET(LINK_PUBLIC_HEADERS ${LINK_HEADERS})
++   ENDIF()
++   IF(LINK_ADDITIONAL_COMPILE_FLAGS)
++      SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES
++                            COMPILE_FLAGS ${LINK_ADDITIONAL_COMPILE_FLAGS})
++   ENDIF(LINK_ADDITIONAL_COMPILE_FLAGS)
++   if(APPLE)
++      IF(BUILD_SHARED_LIBS)
++#        SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
++#        SET(CMAKE_INSTALL_RPATH "${OSSIM_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}")
++        IF(BUILD_OSSIM_FRAMEWORKS)
++          SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                             FRAMEWORK TRUE
++                             BUILD_WITH_INSTALL_RPATH ON 
++                             INSTALL_NAME_DIR @rpath/Frameworks)
++        ELSE(BUILD_OSSIM_FRAMEWORKS)
++          SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                             FRAMEWORK FALSE
++                             BUILD_WITH_INSTALL_RPATH ON 
++                             INSTALL_NAME_DIR @rpath/lib)
++        ENDIF(BUILD_OSSIM_FRAMEWORKS)
++      ELSE(BUILD_SHARED_LIBRARY)
++          SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                                FRAMEWORK FALSE)
++      ENDIF(BUILD_SHARED_LIBS)
++   ENDIF(APPLE)
++   IF(UNIX AND BUILD_SHARED_LIBS AND NOT APPLE)   
++      IF(LINK_VERSION_SYMLINKS)
++         IF(NOT LINK_SOVERSION)
++             set(LINK_SOVERSION "${OSSIM_SOVERSION}")
++         ENDIF(NOT LINK_SOVERSION)
++         IF(NOT LINK_VERSION)
++             set(LINK_VERSION "${OSSIM_VERSION}")
++         ENDIF(NOT LINK_VERSION)
++      # ADD_CUSTOM_TARGET( lib DEPENDS ${LINK_NAME} )
++      # change lib_target properties
++         SET_TARGET_PROPERTIES( ${LINK_NAME} PROPERTIES
++                                    # create *nix style library versions + symbolic links
++                                   VERSION ${LINK_VERSION}
++                                   SOVERSION ${LINK_SOVERSION}
++                                  # allow creating static and shared libs without conflicts
++                                  CLEAN_DIRECT_OUTPUT 1
++                                  # avoid conflicts between library and binary target names
++                                  OUTPUT_NAME ${LINK_NAME} )
++      ENDIF(LINK_VERSION_SYMLINKS)
++   ENDIF(UNIX AND BUILD_SHARED_LIBS AND NOT APPLE)
++   SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                              RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_RUNTIME_DIR}")    
++   IF(APPLE AND BUILD_OSSIM_FRAMEWORKS)
++     SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                              LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_FRAMEWORK_DIR}")    
++   ELSE(APPLE AND BUILD_OSSIM_FRAMEWORKS)
++     SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                              LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_LIBRARY_DIR}")    
++   ENDIF(APPLE AND BUILD_OSSIM_FRAMEWORKS)
++   SET_TARGET_PROPERTIES(${LINK_NAME} PROPERTIES 
++                              ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUILD_LIBRARY_DIR}")    
++
++   TARGET_LINK_LIBRARIES(${LINK_NAME} ${LINK_LIBRARIES} ${${LINK_NAME}_EXTRA_LIBS})
++
++   IF(LINK_INSTALL_LIB)
++        IF(LINK_INSTALL_HEADERS)
++           SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PUBLIC_HEADER "${LINK_PUBLIC_HEADERS}")
++           install(TARGETS ${LINK_NAME}
++                   FRAMEWORK           DESTINATION         ${INSTALL_FRAMEWORK_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   RUNTIME             DESTINATION         ${INSTALL_RUNTIME_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   LIBRARY             DESTINATION         ${INSTALL_LIBRARY_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   ARCHIVE             DESTINATION         ${INSTALL_ARCHIVE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev
++                   PUBLIC_HEADER       DESTINATION         ${INSTALL_INCLUDE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev)
++        ELSE(LINK_INSTALL_HEADERS)
++           install(TARGETS ${LINK_NAME}
++                   FRAMEWORK           DESTINATION         ${INSTALL_FRAMEWORK_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   RUNTIME             DESTINATION         ${INSTALL_RUNTIME_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   LIBRARY             DESTINATION         ${INSTALL_LIBRARY_DIR} COMPONENT ${LINK_COMPONENT_NAME}
++                   ARCHIVE             DESTINATION         ${INSTALL_ARCHIVE_DIR} COMPONENT ${LINK_COMPONENT_NAME}-dev)
++        ENDIF(LINK_INSTALL_HEADERS)
++    ENDIF(LINK_INSTALL_LIB)
++ENDMACRO(OSSIM_LINK_LIBRARY)
++
++MACRO(OSSIM_ADD_COMMON_MAKE_UNINSTALL)
++#   get_target_property(TEST_UNINSTALL uninstall CREATED)
++#   IF(NOT TEST_UNINSTALL)
++      #-----------------------------------------------------------------------------
++      ### uninstall target
++      #-----------------------------------------------------------------------------
++      SET(OSSIM_CMAKE_UNINSTALL_CONFIG "${PROJECT_SOURCE_DIR}/CMakeModules/cmake_uninstall.cmake.in")
++      IF(EXISTS ${OSSIM_CMAKE_UNINSTALL_CONFIG})
++         CONFIGURE_FILE(
++           "${OSSIM_CMAKE_UNINSTALL_CONFIG}"
++           "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
++           IMMEDIATE @ONLY)
++         ADD_CUSTOM_TARGET(uninstall
++           "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
++           )
++      set_target_properties(uninstall PROPERTIES CREATED 1)
++      ENDIF(EXISTS ${OSSIM_CMAKE_UNINSTALL_CONFIG})
++#   ENDIF(NOT TEST_UNINSTALL)
++ENDMACRO(OSSIM_ADD_COMMON_MAKE_UNINSTALL)
++
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/OssimVersion.cmake
+@@ -0,0 +1,6 @@
++SET(OSSIM_MAJOR_VERSION_NUMBER "1")
++SET(OSSIM_MINOR_VERSION_NUMBER "8")
++SET(OSSIM_PATCH_VERSION_NUMBER "20")
++SET(OSSIM_RELEASE_NUMBER "1")
++SET(OSSIM_VERSION "${OSSIM_MAJOR_VERSION_NUMBER}.${OSSIM_MINOR_VERSION_NUMBER}.${OSSIM_PATCH_VERSION_NUMBER}" )
++SET(OSSIM_SOVERSION "${OSSIM_MAJOR_VERSION_NUMBER}" )
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/Qt5Macros.cmake
+@@ -0,0 +1,83 @@
++# This file is included by FindQt5.cmake, don't include it directly.
++
++# Copyright (C) 2001-2009 Kitware, Inc.
++# Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
++# Copyright (C) 2011 Nokia Corporation
++#
++# Redistribution and use is allowed according to the terms of the BSD license.
++# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
++
++macro (QT5_EXTRACT_OPTIONS _qt5_files _qt5_options)
++  set(${_qt5_files})
++  set(${_qt5_options})
++  set(_QT5_DOING_OPTIONS FALSE)
++  foreach(_currentArg ${ARGN})
++    if ("${_currentArg}" STREQUAL "OPTIONS")
++      set(_QT5_DOING_OPTIONS TRUE)
++    else ()
++      if(_QT5_DOING_OPTIONS)
++        list(APPEND ${_qt5_options} "${_currentArg}")
++      else()
++        list(APPEND ${_qt5_files} "${_currentArg}")
++      endif()
++    endif ()
++  endforeach()
++endmacro ()
++
++
++MACRO (QT5_GET_MOC_FLAGS _moc_flags)
++  SET(${_moc_flags})
++  GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES)
++
++  FOREACH(_current ${_inc_DIRS})
++    IF("${_current}" MATCHES "\\.framework/?$")
++      STRING(REGEX REPLACE "/[^/]+\\.framework" "" framework_path "${_current}")
++      SET(${_moc_flags} ${${_moc_flags}} "-F${framework_path}")
++    ELSE("${_current}" MATCHES "\\.framework/?$")
++      SET(${_moc_flags} ${${_moc_flags}} "-I${_current}")
++    ENDIF("${_current}" MATCHES "\\.framework/?$")
++  ENDFOREACH(_current ${_inc_DIRS})
++
++  GET_DIRECTORY_PROPERTY(_defines COMPILE_DEFINITIONS)
++  FOREACH(_current ${_defines})
++    SET(${_moc_flags} ${${_moc_flags}} "-D${_current}")
++  ENDFOREACH(_current ${_defines})
++
++  IF(Q_WS_WIN)
++    SET(${_moc_flags} ${${_moc_flags}} -DWIN32)
++  ENDIF(Q_WS_WIN)
++
++ENDMACRO (QT5_GET_MOC_FLAGS)
++
++# helper macro to set up a moc rule
++MACRO (QT5_CREATE_MOC_COMMAND infile outfile moc_flags moc_options)
++  # For Windows, create a parameters file to work around command line length limit
++  IF (WIN32)
++    # Pass the parameters in a file.  Set the working directory to
++    # be that containing the parameters file and reference it by
++    # just the file name.  This is necessary because the moc tool on
++    # MinGW builds does not seem to handle spaces in the path to the
++    # file given with the @ syntax.
++    GET_FILENAME_COMPONENT(_moc_outfile_name "${outfile}" NAME)
++    GET_FILENAME_COMPONENT(_moc_outfile_dir "${outfile}" PATH)
++    IF(_moc_outfile_dir)
++      SET(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir})
++    ENDIF(_moc_outfile_dir)
++    SET (_moc_parameters_file ${outfile}_parameters)
++    SET (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}")
++    STRING (REPLACE ";" "\n" _moc_parameters "${_moc_parameters}")
++    FILE (WRITE ${_moc_parameters_file} "${_moc_parameters}")
++    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
++                       COMMAND ${QT_MOC_EXECUTABLE} @${_moc_outfile_name}_parameters
++                       DEPENDS ${infile}
++                       ${_moc_working_dir}
++                       VERBATIM)
++  ELSE (WIN32)
++    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
++                       COMMAND ${QT_MOC_EXECUTABLE}
++                       ARGS ${moc_flags} ${moc_options} -o ${outfile} ${infile}
++                       DEPENDS ${infile})
++  ENDIF (WIN32)
++ENDMACRO (QT5_CREATE_MOC_COMMAND)
++
++
+--- /dev/null
++++ b/ossim_plugins/CMakeModules/cmake_uninstall.cmake.in
+@@ -0,0 +1,22 @@
++IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
++    MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
++ENDIF()
++
++FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
++STRING(REGEX REPLACE "\n" ";" files "${files}")
++
++FOREACH(file ${files})
++    MESSAGE(STATUS "Uninstalling \"${file}\"")
++    IF(EXISTS "${file}")
++        EXEC_PROGRAM(
++            "@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
++            OUTPUT_VARIABLE rm_out
++            RETURN_VALUE rm_retval
++            )
++        IF(NOT "${rm_retval}" STREQUAL 0)
++            MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
++        ENDIF()
++    ELSE()
++        MESSAGE(STATUS "File \"${file}\" does not exist.")
++    ENDIF()
++ENDFOREACH()
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..09ee5a3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cmake.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..24826ce
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+	dh $@ --buildsystem cmake \
+	      --sourcedirectory=$(CURDIR)/ossim_plugins \
+	      --builddirectory=$(CURDIR)/debian/build \
+	      --parallel
+
+CMAKE_OPTS = \
+       -DCMAKE_BUILD_TYPE=Release \
+       -DCMAKE_INSTALL_PREFIX=/usr \
+       -DCMAKE_MODULE_PATH=$(CURDIR)/ossim_plugins/CMakeModules \
+       -DBUILD_SHARED_LIBS=ON
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(CMAKE_OPTS)
+
+override_dh_install:
+	dh_install --list-missing
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..7c1911a
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/ossimlabs/ossim-plugins/issues
+Bug-Submit: https://github.com/ossimlabs/ossim-plugins/issues/new
+Name: OSSIM Plugins
+Repository: https://github.com/ossimlabs/ossim-plugins.git
+Repository-Browse: https://github.com/ossimlabs/ossim-plugins
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a7ec577
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/;s/-/./g,\
+filenamemangle=s/ossim[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/ossim-plugins-$1.$2/,\
+repacksuffix=+ds \
+http://download.osgeo.org/ossim/source/ossim-(\d\S+)/ossim-(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ossim-plugins.git



More information about the Pkg-grass-devel mailing list