Warning, /graphics/digikam/project/bundles/3rdparty/ext_marble/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build Marble 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(EXTPREFIX_marble "${EXTPREFIX}" ) 0010 0011 GetKF5ApplicationMd5Sums(marble ${KA_VERSION}) 0012 0013 if(MINGW) 0014 0015 ExternalProject_Add(ext_marble 0016 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0017 URL https://download.kde.org/stable/release-service/${KA_VERSION}/src/marble-${KA_VERSION}.tar.xz 0018 URL_MD5 ${KF5_APPLICATION_MD5SUM} 0019 0020 INSTALL_DIR ${EXTPREFIX_marble} 0021 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/marble-libs-install-mxe.patch && 0022 cp ${CMAKE_CURRENT_SOURCE_DIR}/../../mxe/fixqtwebkitincludes.sh <SOURCE_DIR>/. && 0023 <SOURCE_DIR>/fixqtwebkitincludes.sh 0024 0025 CMAKE_ARGS -DMXE_TOOLCHAIN=${MXE_TOOLCHAIN} 0026 -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} 0027 -DCMAKE_COLOR_MAKEFILE=ON 0028 -DCMAKE_INSTALL_PREFIX=${EXTPREFIX_marble} 0029 -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON 0030 -DCMAKE_TOOLCHAIN_FILE=${MXE_TOOLCHAIN} 0031 -DCMAKE_FIND_PREFIX_PATH=${CMAKE_PREFIX_PATH} 0032 -DCMAKE_SYSTEM_INCLUDE_PATH=${CMAKE_PREFIX_PATH}/include 0033 -DCMAKE_INCLUDE_PATH=${CMAKE_PREFIX_PATH}/include 0034 -DCMAKE_LIBRARY_PATH=${CMAKE_PREFIX_PATH}/lib 0035 -DZLIB_ROOT=${CMAKE_PREFIX_PATH} 0036 ${GLOBAL_PROFILE} 0037 "${argoptions}" 0038 -DWITH_DESIGNER_PLUGIN=OFF 0039 -DBUILD_MARBLE_TESTS=OFF 0040 -DBUILD_MARBLE_TOOLS=OFF 0041 -DBUILD_MARBLE_EXAMPLES=OFF 0042 -DBUILD_MARBLE_APPS=OFF 0043 -DBUILD_WITH_DBUS=OFF 0044 -DBUILD_TESTING=OFF 0045 -Wno-dev 0046 0047 UPDATE_COMMAND "" 0048 ALWAYS 0 0049 ) 0050 0051 elseif(APPLE) 0052 0053 ExternalProject_Add(ext_marble 0054 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0055 URL https://download.kde.org/stable/release-service/${KA_VERSION}/src/marble-${KA_VERSION}.tar.xz 0056 URL_MD5 ${KF5_APPLICATION_MD5SUM} 0057 0058 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/marble-libs-install-macports.patch && 0059 cp ${CMAKE_CURRENT_SOURCE_DIR}/../../macports/fixbundledatapath.sh <SOURCE_DIR>/. && 0060 <SOURCE_DIR>/fixbundledatapath.sh 0061 0062 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. && 0063 <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_marble} debug x86_64 "-DWITH_DESIGNER_PLUGIN=OFF -DBUILD_MARBLE_TESTS=OFF -DBUILD_MARBLE_TOOLS=OFF -DBUILD_MARBLE_EXAMPLES=OFF -DBUILD_MARBLE_APPS=OFF -DBUILD_WITH_DBUS=OFF -DQTONLY=ON -DBUILD_TESTING=OFF -Wno-dev" 0064 0065 BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE) 0066 0067 INSTALL_COMMAND cd <SOURCE_DIR>/build && make install/fast 0068 0069 BUILD_IN_SOURCE 1 0070 0071 UPDATE_COMMAND "" 0072 ALWAYS 0 0073 ) 0074 0075 else() # Linux 0076 0077 ExternalProject_Add(ext_marble 0078 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0079 URL https://download.kde.org/stable/release-service/${KA_VERSION}/src/marble-${KA_VERSION}.tar.xz 0080 URL_MD5 ${KF5_APPLICATION_MD5SUM} 0081 0082 INSTALL_DIR ${EXTPREFIX_marble} 0083 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/marble-libs-install-appimage.patch 0084 0085 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTPREFIX_marble} 0086 -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} 0087 ${GLOBAL_PROFILE} 0088 -DCMAKE_SYSTEM_PREFIX_PATH=${EXTPREFIX_marble} 0089 -DWITH_DESIGNER_PLUGIN=OFF 0090 -DBUILD_MARBLE_TESTS=OFF 0091 -DBUILD_MARBLE_TOOLS=OFF 0092 -DBUILD_MARBLE_EXAMPLES=OFF 0093 -DBUILD_MARBLE_APPS=OFF 0094 -DBUILD_WITH_DBUS=OFF 0095 -DBUILD_TESTING=OFF 0096 -Wno-dev 0097 0098 UPDATE_COMMAND "" 0099 ALWAYS 0 0100 ) 0101 0102 endif()