Skip to content

Commit

Permalink
[vxl] Update patch (#12854)
Browse files Browse the repository at this point in the history
* [vxl] Update patch

* Update unsupported variables
  • Loading branch information
NancyLi1013 authored Aug 14, 2020
1 parent e695a72 commit 0c753a2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
3 changes: 1 addition & 2 deletions ports/vxl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Source: vxl
Version: 2.0.2
Port-Version: 1
Port-Version: 2
Build-Depends: bzip2, expat, libgeotiff, libjpeg-turbo, libpng, shapelib, tiff, zlib
# Build-Depends: bzip2, dcmtk, expat, libgeotiff, libjpeg-turbo, openjpeg, libpng, shapelib, tiff, zlib
Description: A multi-platform collection of C++ software libraries for Computer Vision and Image Understanding.

Feature: core-imaging
Expand Down
26 changes: 13 additions & 13 deletions ports/vxl/fix_dependency.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index b6af7c2..7ca75d3 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -100,7 +100,7 @@ endif()


# coordinate systems
-if(BUILD_CORE_GEOMETRY AND BUILD_CORE_NUMERICS)
+if(BUILD_CORE_GEOMETRY AND BUILD_CORE_NUMERICS AND BUILD_CORE_IMAGING)
add_subdirectory(vcsl)
add_subdirectory(vpgl)
endif()
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index 3483f9c..57e149b 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -100,7 +100,7 @@ endif()


# coordinate systems
-if(VXL_BUILD_CORE_GEOMETRY AND VXL_BUILD_CORE_NUMERICS)
+if(VXL_BUILD_CORE_GEOMETRY AND VXL_BUILD_CORE_NUMERICS AND VXL_BUILD_CORE_IMAGING)
add_subdirectory(vcsl)
add_subdirectory(vpgl)
endif()
17 changes: 8 additions & 9 deletions ports/vxl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
set(BUILD_CORE_IMAGING OFF)
set(VXL_BUILD_CORE_IMAGING OFF)
if("core-imaging" IN_LIST FEATURES)
set(BUILD_CORE_IMAGING ON)
set(VXL_BUILD_CORE_IMAGING ON)
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h")
set(BUILD_CORE_IMAGING OFF)
set(VXL_BUILD_CORE_IMAGING OFF)
message(WARNING "Can't build VXL CORE_IMAGING features with non built-in OpenJpeg. Please remove OpenJpeg, and try install VXL again if you need them.")
endif()
endif()
Expand All @@ -18,17 +18,17 @@ vcpkg_from_github(
)

set(USE_WIN_WCHAR_T OFF)
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
if(VCPKG_TARGET_IS_WINDOWS)
set(USE_WIN_WCHAR_T ON)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_EXAMPLES=OFF
-DVXL_BUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DBUILD_CORE_IMAGING=${BUILD_CORE_IMAGING}
-DVXL_BUILD_CORE_IMAGING=${VXL_BUILD_CORE_IMAGING}
-DVXL_FORCE_V3P_BZLIB2=OFF
-DVXL_USING_NATIVE_BZLIB2=TRUE # for disable build built-in bzip2 (v3p/bzlib/CMakeLists.txt#L10-L26)
-DVXL_FORCE_V3P_CLIPPER=ON # TODO : need add clipper port to turn off
Expand All @@ -41,7 +41,7 @@ vcpkg_configure_cmake(
-DVXL_FORCE_V3P_TIFF=OFF
-DVXL_FORCE_V3P_ZLIB=OFF
-DVXL_USE_DCMTK=OFF # TODO : need fix dcmtk support to turn on
-DXVL_USE_GEOTIFF=ON
-DVXL_USE_GEOTIFF=ON
-DVXL_USE_WIN_WCHAR_T=${USE_WIN_WCHAR_T}
)

Expand All @@ -53,5 +53,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)

file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
#
file(INSTALL ${SOURCE_PATH}/core/vxl_copyright.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit 0c753a2

Please sign in to comment.