Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ports/itk/CONTROL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: itk
Version: 4.13.0-906736bd-1
Version: 4.13.0-906736bd-2
Description: Insight Segmentation and Registration Toolkit (ITK) is used for image processing and analysis.
Build-Depends: double-conversion, libjpeg-turbo, zlib, libpng, tiff, expat, eigen3, hdf5[cpp]
Build-Depends: double-conversion, libjpeg-turbo, zlib, libpng, tiff, expat, eigen3, hdf5[cpp], openjpeg

Feature: vtk
Description: Build ITKVtkGlue module.
Expand Down
33 changes: 33 additions & 0 deletions ports/itk/fix_conflict_with_openjp2_pc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff --git a/Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt b/Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
index 6e3504d..1d641c2 100644
--- a/Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
+++ b/Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
@@ -375,7 +375,8 @@ else()
endif()

if(GDCM_USE_SYSTEM_OPENJPEG)
- find_package(OpenJPEG 2.0.0 REQUIRED)
+ # openjpeg version in vcpkg is already greater than 2.0.0 and openjpeg has no version.cmake file
+ find_package(OpenJPEG REQUIRED)
set(GDCM_OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARIES})
else()
set(GDCM_OPENJPEG_LIBRARIES itkgdcmopenjp2)
diff --git a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
index 4ffe98e..a269690 100644
--- a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
+++ b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
@@ -347,12 +347,8 @@ endif()

#-----------------------------------------------------------------------------
# pkgconfig support
-# enabled by default on Unix, disabled by default on other platforms
-if(UNIX)
- option(BUILD_PKGCONFIG_FILES "Build and install pkg-config files" ON)
-else()
- option(BUILD_PKGCONFIG_FILES "Build and install pkg-config files" OFF)
-endif()
+# Cannot use the built-in openjp2 because the configuration path is under buildtrees
+option(BUILD_PKGCONFIG_FILES "Build and install pkg-config files" OFF)
if(BUILD_PKGCONFIG_FILES)
# install in lib and not share (see multi-arch note above)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/libopenjp2.pc.cmake.in
2 changes: 2 additions & 0 deletions ports/itk/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ vcpkg_from_github(
REF 906736bd453e95ccf03b318d3d07cb7884285161
SHA512 8ac62262d46e7acbb0e5b2e964292ec17e1687bb162b8cec666e5b67acbe3449f093a0b1c03737e9951cb88248ed890805ffd57df6eae21220488620da833c57
HEAD_REF master
PATCHES fix_conflict_with_openjp2_pc.patch
)

if ("vtk" IN_LIST FEATURES)
Expand Down Expand Up @@ -60,6 +61,7 @@ vcpkg_configure_cmake(
-DModule_IOSTL=ON # example how to turn on a non-default module
-DModule_MorphologicalContourInterpolation=ON # example how to turn on a remote module
-DModule_RLEImage=ON # example how to turn on a remote module
-DGDCM_USE_SYSTEM_OPENJPEG=ON #Use port openjpeg instead of own third-party
${ADDITIONAL_OPTIONS}
)

Expand Down
2 changes: 1 addition & 1 deletion ports/openjpeg/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: openjpeg
Version: 2.3.0-1
Version: 2.3.1
Description: JPEG 2000 image library
4 changes: 2 additions & 2 deletions ports/openjpeg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uclouvain/openjpeg
REF v2.3.0
SHA512 0a9d427be4a820b1d759fca4b50e293721b45fe4885aa61ca1ae09e099f75ed93520448090c780d62f51076d575cc03618cd6d5181bdb6b34e4fc07b4cfdd568
REF v2.3.1
SHA512 339fbc899bddf2393d214df71ed5d6070a3a76b933b1e75576c8a0ae9dfcc4adec40bdc544f599e4b8d0bc173e4e9e7352408497b5b3c9356985605830c26c03
HEAD_REF master
)

Expand Down