[gdcm] no absolute paths (#21701)

This commit is contained in:
autoantwort 2021-12-02 04:21:29 +01:00 committed by GitHub
parent 8b8cf71700
commit 77a6edf5f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,3 @@
vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
@ -54,6 +52,9 @@ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/gdcmConfigure.h" "#define
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/gdcmConfigure.h" "#define GDCM_LIBRARY_OUTPUT_PATH \"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/gdcmConfigure.h" "#define GDCM_CMAKE_INSTALL_PREFIX \"${CURRENT_PACKAGES_DIR}\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/gdcm/GDCMConfig.cmake" "set( GDCM_INCLUDE_DIRS \"${SOURCE_PATH}/Source/Common;${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Source/Common;${SOURCE_PATH}/Source/DataStructureAndEncodingDefinition;${SOURCE_PATH}/Source/MediaStorageAndFileFormat;${SOURCE_PATH}/Source/MessageExchangeDefinition;${SOURCE_PATH}/Source/DataDictionary;${SOURCE_PATH}/Source/InformationObjectDefinition\")" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/gdcm/GDCMConfig.cmake" "set(GDCM_LIBRARY_DIRS \"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/.\")" "")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

View File

@ -1,10 +1,10 @@
{
"name": "gdcm",
"version": "3.0.7",
"port-version": 3,
"port-version": 4,
"description": "Grassroots DICOM library",
"homepage": "https://github.com/malaterre/GDCM",
"supports": "!uwp & !(windows & (arm | arm64))",
"supports": "!uwp & !(windows & arm)",
"dependencies": [
"expat",
"openjpeg",

View File

@ -2366,7 +2366,7 @@
},
"gdcm": {
"baseline": "3.0.7",
"port-version": 3
"port-version": 4
},
"gdcm2": {
"baseline": "deprecated",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "64bda232157a1119e4a16b3379294d13354e8971",
"version": "3.0.7",
"port-version": 4
},
{
"git-tree": "de7a48decccdda2df7f6878f4002fa661f7a6090",
"version": "3.0.7",