comparison OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake @ 2104:5653b6335642

migration to UCLouvain servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Nov 2023 07:43:13 +0100
parents 517ef20aef74
children 7cff3c404430
comparison
equal deleted inserted replaced
2101:517ef20aef74 2104:5653b6335642
166 # 166 #
167 # $ hg archive /tmp/Orthanc-`hg id -i | sed 's/\+//'`.tar.gz 167 # $ hg archive /tmp/Orthanc-`hg id -i | sed 's/\+//'`.tar.gz
168 # 168 #
169 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "ae0e3fd609df") 169 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "ae0e3fd609df")
170 # DICOMweb 1.1 (framework pre-1.6.0) 170 # DICOMweb 1.1 (framework pre-1.6.0)
171 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
171 set(ORTHANC_FRAMEWORK_MD5 "7e09e9b530a2f527854f0b782d7e0645") 172 set(ORTHANC_FRAMEWORK_MD5 "7e09e9b530a2f527854f0b782d7e0645")
172 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "82652c5fc04f") 173 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "82652c5fc04f")
173 # Stone Web viewer 1.0 (framework pre-1.8.1) 174 # Stone Web viewer 1.0 (framework pre-1.8.1)
175 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
174 set(ORTHANC_FRAMEWORK_MD5 "d77331d68917e66a3f4f9b807bbdab7f") 176 set(ORTHANC_FRAMEWORK_MD5 "d77331d68917e66a3f4f9b807bbdab7f")
175 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "4a3ba4bf4ba7") 177 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "4a3ba4bf4ba7")
176 # PostgreSQL 3.3 (framework pre-1.8.2) 178 # PostgreSQL 3.3 (framework pre-1.8.2)
179 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
177 set(ORTHANC_FRAMEWORK_MD5 "2d82bddf06f9cfe82095495cb3b8abde") 180 set(ORTHANC_FRAMEWORK_MD5 "2d82bddf06f9cfe82095495cb3b8abde")
178 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "23ad1b9c7800") 181 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "23ad1b9c7800")
179 # For "Toolbox::ReadJson()" and "Toolbox::Write{...}Json()" (pre-1.9.0) 182 # For "Toolbox::ReadJson()" and "Toolbox::Write{...}Json()" (pre-1.9.0)
183 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
180 set(ORTHANC_FRAMEWORK_MD5 "9af92080e57c60dd288eba46ce606c00") 184 set(ORTHANC_FRAMEWORK_MD5 "9af92080e57c60dd288eba46ce606c00")
181 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "b2e08d83e21d") 185 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "b2e08d83e21d")
182 # WSI 1.1 (framework pre-1.10.0), to remove "-std=c++11" 186 # WSI 1.1 (framework pre-1.10.0), to remove "-std=c++11"
187 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
183 set(ORTHANC_FRAMEWORK_MD5 "2eaa073cbb4b44ffba199ad93393b2b1") 188 set(ORTHANC_FRAMEWORK_MD5 "2eaa073cbb4b44ffba199ad93393b2b1")
184 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "daf4807631c5") 189 elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "daf4807631c5")
185 # DICOMweb 1.15 (framework pre-1.12.2) 190 # DICOMweb 1.15 (framework pre-1.12.2)
191 set(ORTHANC_FRAMEWORK_PRE_RELEASE ON)
186 set(ORTHANC_FRAMEWORK_MD5 "c644aff2817306b3207c98c92e43f35f") 192 set(ORTHANC_FRAMEWORK_MD5 "c644aff2817306b3207c98c92e43f35f")
187 endif() 193 endif()
188 endif() 194 endif()
189 endif() 195 endif()
190 196
318 if (DEFINED ORTHANC_FRAMEWORK_URL) 324 if (DEFINED ORTHANC_FRAMEWORK_URL)
319 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}") 325 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}")
320 else() 326 else()
321 # Default case: Download from the official Web site 327 # Default case: Download from the official Web site
322 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz) 328 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz)
323 set(ORTHANC_FRAMEWORK_URL "https://orthanc.uclouvain.be/third-party-downloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}") 329 if (ORTHANC_FRAMEWORK_PRE_RELEASE)
330 set(ORTHANC_FRAMEWORK_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}")
331 else()
332 set(ORTHANC_FRAMEWORK_URL "https://orthanc.uclouvain.be/downloads/sources/orthanc/${ORTHANC_FRAMEMORK_FILENAME}")
333 endif()
324 endif() 334 endif()
325 335
326 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}") 336 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}")
327 337
328 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}") 338 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}")