Warning, /graphics/digikam/project/bundles/3rdparty/ext_hugin/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # Script to build Hugin for digiKam bundle.
0002 #
0003 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 #
0008 
0009 set(PREFIX_ext_hugin "${EXTPREFIX}")
0010 
0011 set(Hugin_Conf -DDISABLE_DPKG=ON
0012                -DBUILD_HSI=OFF
0013                -DENABLE_LAPACK=OFF
0014                -DBUILD_HUGINSETUP=OFF
0015 )
0016 
0017 JoinListAsString("${Hugin_Conf}" " " BASH_OPTIONS)
0018 
0019 if(MINGW)
0020 
0021     ExternalProject_Add(ext_exiv2
0022         DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0023 
0024         # To use official release tarball
0025 
0026         #URL http://www.exiv2.org/exiv2-0.25.tar.gz
0027         #URL_MD5 258d4831b30f75a01e0234065c6c2806
0028 
0029         # To use current implementation from SVN
0030 
0031         SVN_REPOSITORY svn://dev.exiv2.org/svn/trunk
0032 
0033         CONFIGURE_COMMAND <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo ${BASH_OPTIONS}
0034 
0035         BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && make -j
0036 
0037         INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && make install/fast
0038 
0039         BUILD_IN_SOURCE 1
0040 
0041         UPDATE_COMMAND ""
0042         ALWAYS 0
0043     )
0044 
0045 
0046 elseif(APPLE)
0047 
0048     ExternalProject_Add(ext_exiv2
0049         DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0050 
0051         # To use official release tarball
0052 
0053         #URL http://www.exiv2.org/e\\xiv2-0.25.tar.gz
0054         #URL_MD5 258d4831b30f75a01e0234065c6c2806
0055 
0056         # To use current implementation from SVN
0057 
0058         SVN_REPOSITORY svn://dev.exiv2.org/svn/trunk
0059 
0060         CONFIGURE_COMMAND cp -f ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. &&
0061                           <SOURCE_DIR>/bootstrap.macports ${PREFIX_ext_exiv2} RelWithDebInfo x86_64 ${BASH_OPTIONS}
0062 
0063         BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE)
0064 
0065         INSTALL_COMMAND cd <SOURCE_DIR>/build && make install/fast
0066 
0067         BUILD_IN_SOURCE 1
0068 
0069         UPDATE_COMMAND ""
0070         ALWAYS 0
0071     )
0072 
0073 else() # Linux
0074 
0075     ExternalProject_Add(ext_hugin
0076         DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0077 
0078         # To use official release tarball
0079 
0080         URL https://sourceforge.net/projects/hugin/files/hugin/hugin-2013.0/hugin-2013.0.0.tar.bz2/download
0081         URL_MD5 cc6c768df2aedc24a9a081754de05f39
0082 
0083         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/hugin-appimage.patch
0084 
0085         INSTALL_DIR ${PREFIX_ext_hugin}
0086 
0087         CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_hugin}
0088                    -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE}
0089                    ${Hugin_Conf}
0090                    ${GLOBAL_PROFILE}
0091 
0092         UPDATE_COMMAND ""
0093         ALWAYS 0
0094     )
0095 
0096 endif()