Commit a97a0b74 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

DOC: install copyrights and license in output SuperBuild package

parent 2a35299f
...@@ -191,6 +191,11 @@ ExternalProject_Add(OTB ...@@ -191,6 +191,11 @@ ExternalProject_Add(OTB
CMAKE_COMMAND ${OTB_SB_CMAKE_COMMAND} CMAKE_COMMAND ${OTB_SB_CMAKE_COMMAND}
) )
ExternalProject_Add_Step(OTB install_copyright
COMMAND ${CMAKE_COMMAND} -E copy_directory ${OTB_SB_SRC}/Copyright ${CMAKE_INSTALL_PREFIX}/share/copyright
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/Copyright ${CMAKE_INSTALL_PREFIX}/share/copyright
DEPENDEES install)
# detect OTB version number # detect OTB version number
if (SUPERBUILD_OTB_VERSION) if (SUPERBUILD_OTB_VERSION)
set(_SB_OTB_DIR ${SB_INSTALL_PREFIX}/lib/cmake/OTB-${SUPERBUILD_OTB_VERSION_MAJOR}.${SUPERBUILD_OTB_VERSION_MINOR}) set(_SB_OTB_DIR ${SB_INSTALL_PREFIX}/lib/cmake/OTB-${SUPERBUILD_OTB_VERSION_MAJOR}.${SUPERBUILD_OTB_VERSION_MINOR})
......
...@@ -207,6 +207,25 @@ function(install_common include_mvd) ...@@ -207,6 +207,25 @@ function(install_common include_mvd)
####################### Install otb applications ###################### ####################### Install otb applications ######################
install(DIRECTORY "${OTB_APPLICATIONS_DIR}" DESTINATION ${PKG_OTBLIBS_DIR}) install(DIRECTORY "${OTB_APPLICATIONS_DIR}" DESTINATION ${PKG_OTBLIBS_DIR})
####################### Install copyrights ######################
install(DIRECTORY ${PKG_SHARE_SOURCE_DIR}/copyright DESTINATION ${PKG_SHARE_DEST_DIR})
file(WRITE "${PKG_STAGE_DIR}/Copyright.txt"
"The OTB is released under the CeCILL-2.0 license. This license is available
online :
http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
http://www.cecill.info/licences/Licence_CeCILL_V2-fr.html
More details on copyright information can be found in :
share/copyright
However this binary package may be compiled with dependencies that have
incompatible licensing. As a consequence, this OTB binary package will be
released under GPL-v2 license in the following cases :
- if ITK (used by OTB) was built with FFTW support enabled (FFTW is released
under GPL-v2 license)
- if this package was built using FreeType. FreeType allows to choose between
the advertising FreeType license and the GPL-v2 license.
")
endfunction() endfunction()
function(install_monteverdi_files) function(install_monteverdi_files)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment