Skip to content

Commit

Permalink
[dcmtk] Update to 3.6.8 (#36124)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevle committed Jan 17, 2024
1 parent 4091078 commit a1c22c4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 79 deletions.
32 changes: 0 additions & 32 deletions ports/dcmtk/fix-pc-format.patch

This file was deleted.

19 changes: 11 additions & 8 deletions ports/dcmtk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DCMTK/dcmtk
REF a137f1aff4e1df3fbefe53ee8b160973c74c96dd # DCMTK-3.6.7
SHA512 dd41b38ef5d02ac2bf4071e1c27814e03357bc6a51eef59daf47a86d024d7fcbaaa1a71df8600fb8180f8b6537d45d6bf48a00730c1fa9d147778f36ff3e425a
REF 59f75a8b50e50ae1bb1ff12098040c6327500740 # DCMTK-3.6.8
SHA512 2719e2163d57339a81f079c8c28d4e9e3ee6b1b85bc3db5b94a2279e3dd9881ab619d432d64984e6371569866d7aa4f01bf8b41841b773bcd60bbb8ad2118cac
HEAD_REF master
PATCHES
dcmtk.patch
windows-patch.patch
fix-pc-format.patch
fix_link_xml2.patch
)

Expand Down Expand Up @@ -40,6 +38,8 @@ vcpkg_cmake_configure(
-DINSTALL_HEADERS=OFF
-DINSTALL_OTHER=OFF
-DBUILD_APPS=OFF
MAYBE_UNUSED_VARIABLES
-DDCMTK_USE_FIND_PACKAGE_WIN_DEFAULT=ON
)

vcpkg_cmake_install()
Expand Down Expand Up @@ -107,9 +107,12 @@ if ("tools" IN_LIST FEATURES)
findscu
getscu
img2dcm
mkcsmapper
mkesdb
mkreport
movescu
msgserv
oficonv_tests
ofstd_tests
pdf2dcm
stl2dcm
Expand All @@ -130,12 +133,12 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DCMTK_PREFIX \"${CURRENT_PACKAGES_DIR}\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DCM_DICT_DEFAULT_PATH \"${CURRENT_PACKAGES_DIR}/share/dcmtk/dicom.dic:${CURRENT_PACKAGES_DIR}/share/dcmtk/private.dic\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DEFAULT_CONFIGURATION_DIR \"${CURRENT_PACKAGES_DIR}/etc/dcmtk/\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DEFAULT_SUPPORT_DATA_DIR \"${CURRENT_PACKAGES_DIR}/share/dcmtk/\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DCM_DICT_DEFAULT_PATH \"${CURRENT_PACKAGES_DIR}/share/dcmtk-${VERSION}/dicom.dic:${CURRENT_PACKAGES_DIR}/share/dcmtk-${VERSION}/private.dic\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DEFAULT_CONFIGURATION_DIR \"${CURRENT_PACKAGES_DIR}/etc/dcmtk-${VERSION}/\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dcmtk/config/osconfig.h" "#define DEFAULT_SUPPORT_DATA_DIR \"${CURRENT_PACKAGES_DIR}/share/dcmtk-${VERSION}/\"" "")

vcpkg_fixup_pkgconfig()

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
6 changes: 3 additions & 3 deletions ports/dcmtk/usage
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Add the following cmake code to your CMakeLists.txt to create definitions for DC
target_compile_definitions(main
PUBLIC
"DCMTK_PREFIX=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}"
"DCM_DICT_DEFAULT_PATH=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk/dicom.dic:${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk/private.dic"
"DEFAULT_CONFIGURATION_DIR=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/etc/dcmtk/"
"DEFAULT_SUPPORT_DATA_DIR=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk/"
"DCM_DICT_DEFAULT_PATH=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk-@VERSION@/dicom.dic:${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk-@VERSION@/private.dic"
"DEFAULT_CONFIGURATION_DIR=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/etc/dcmtk-@VERSION@/"
"DEFAULT_SUPPORT_DATA_DIR=${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/dcmtk-@VERSION@/"
)
endif()
3 changes: 1 addition & 2 deletions ports/dcmtk/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "dcmtk",
"version": "3.6.7",
"port-version": 6,
"version": "3.6.8",
"description": "This DICOM ToolKit (DCMTK) package consists of source code, documentation and installation instructions for a set of software libraries and applications implementing part of the DICOM/MEDICOM Standard.",
"homepage": "https://github.com/DCMTK/dcmtk",
"license": "BSD-3-Clause OR BSD-2-Clause OR libtiff OR MIT OR Zlib OR Libpng",
Expand Down
32 changes: 0 additions & 32 deletions ports/dcmtk/windows-patch.patch

This file was deleted.

4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2145,8 +2145,8 @@
"port-version": 2
},
"dcmtk": {
"baseline": "3.6.7",
"port-version": 6
"baseline": "3.6.8",
"port-version": 0
},
"debug-assert": {
"baseline": "1.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/dcmtk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "04c152f7113c88dcfb84b3f4963cadd60c254a74",
"version": "3.6.8",
"port-version": 0
},
{
"git-tree": "bea28d42632b9740c795d645252307fe02c273cc",
"version": "3.6.7",
Expand Down

0 comments on commit a1c22c4

Please sign in to comment.