Skip to content

Commit

Permalink
Merge branch 'feature/license_clarification' into develop
Browse files Browse the repository at this point in the history
In theory, we should be up to date on all license information.  It
should be included in the manual, the installation, and the installers.
  • Loading branch information
josyoun committed Jun 2, 2016
2 parents f006cb5 + 89b0819 commit 99b0ac5
Show file tree
Hide file tree
Showing 18 changed files with 1,880 additions and 54 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ project(Optizelle)
# 3.1.3 is what the current bug fix is, so that looks good enough.
cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)

# Put together the complete license
add_subdirectory(licenses)

# Install the authors file
install(FILES AUTHORS.txt DESTINATION share/optizelle)

# Set the CPack options
set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_VENDOR "OptimoJoe")
Expand All @@ -15,7 +21,7 @@ set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "5")
set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_BINARY_DIR}" "${CMAKE_SOURCE_DIR}/.git")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Optizelle")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_BINARY_DIR}/licenses/LICENSE.txt")
set(CPACK_WIX_UPGRADE_GUID "9FB8001A-10E0-4FD1-9DC7-4B5415D6676E")
set(CPACK_WIX_PATCH_FILE "${CMAKE_SOURCE_DIR}/src/CMake/WiX/patch.xml")
set(CPACK_WIX_EXTENSIONS "WixUtilExtension")
Expand Down
37 changes: 37 additions & 0 deletions licenses/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Combine all the license information into a single file
project(licenses)

# Concatenates two files
function(cat in out)
file(READ ${in} contents)
file(APPEND ${out} "${contents}")
endfunction()

# Includes a license into the overall license
set(out "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt")
file(REMOVE ${out})
function(add_license package interface text)
file(APPEND ${out} "-~-~${package} (${interface})-~-~\n")
cat(${text} ${out})
file(APPEND ${out} "\n")
endfunction()

# Combine all the licenses
add_license("Optizelle" "all interfaces" optizelle.txt)
add_license("JsonCpp" "all interfaces" jsoncpp.txt)
add_license("BLAS/LAPACK" "all interfaces when building default BLAS/LAPACK"
blas_lapack.txt)
add_license("CMake" "all interfaces" cmake.txt)
add_license("WiX" "all interfaces when building Windows installer" wix.txt)
add_license("GCC" "All interfaces when using GCC. Note, we do *not* modify the compiler. See the GCC Runtime Library Exception." gcc.txt)
add_license("GCC" "all interfaces when using GCC" gcc_runtime.txt)
add_license("TeX Live" "documentation when using TeX Live for pdflatex"
texlive.txt)
add_license("Python" "Python interface" python.txt)
add_license("NumPy" "Python interface" numpy.txt)
add_license("MATLAB" "MATLAB interface" matlab.txt)
add_license("JSONlab" "MATLAB and/or Octave interface" jsonlab.txt)
add_license("Octave" "Octave interface" octave.txt)

# Install the license
install(FILES ${out} DESTINATION share/optizelle)
48 changes: 48 additions & 0 deletions licenses/blas_lapack.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Copyright (c) 1992-2011 The University of Tennessee and The University
of Tennessee Research Foundation. All rights
reserved.
Copyright (c) 2000-2011 The University of California Berkeley. All
rights reserved.
Copyright (c) 2006-2012 The University of Colorado Denver. All rights
reserved.

$COPYRIGHT$

Additional copyrights may follow

$HEADER$

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer listed
in this license in the documentation and/or other materials
provided with the distribution.

- Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

The copyright holders provide no reassurances that the source code
provided does not infringe any patent, copyright, or any other
intellectual property rights of third parties. The copyright holders
disclaim any liability to any recipient for claims brought against
recipient by any third party for infringement of that parties
intellectual property rights.

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.
57 changes: 57 additions & 0 deletions licenses/cmake.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
CMake - Cross Platform Makefile Generator
Copyright 2000-2016 Kitware, Inc.
Copyright 2000-2011 Insight Software Consortium
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

* Neither the names of Kitware, Inc., the Insight Software Consortium,
nor the names of their contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER 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.

------------------------------------------------------------------------------

The above copyright and license notice applies to distributions of
CMake in source and binary form. Some source files contain additional
notices of original copyright by their contributors; see each source
for details. Third-party software packages supplied with CMake under
compatible licenses provide their own copyright notices documented in
corresponding subdirectories.

------------------------------------------------------------------------------

CMake was initially developed by Kitware with the following sponsorship:

* National Library of Medicine at the National Institutes of Health
as part of the Insight Segmentation and Registration Toolkit (ITK).

* US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
Visualization Initiative.

* National Alliance for Medical Image Computing (NAMIC) is funded by the
National Institutes of Health through the NIH Roadmap for Medical Research,
Grant U54 EB005149.

* Kitware, Inc.
Loading

0 comments on commit 99b0ac5

Please sign in to comment.