Skip to content

Commit

Permalink
[vxl] move problematic feature to optional one (#6657)
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit authored and cbezault committed May 28, 2019
1 parent 712361b commit 4068783
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
9 changes: 6 additions & 3 deletions ports/vxl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Source: vxl
Version: v1.18.0-3
Build-Depends: bzip2, libgeotiff, libjpeg-turbo, libpng, tiff, zlib, expat, shapelib
# Build-Depends: bzip2, dcmtk, libgeotiff, libjpeg-turbo, openjpeg, libpng, tiff, zlib
Version: v1.18.0-4
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
Description: core_imaging support for vxl
13 changes: 13 additions & 0 deletions ports/vxl/fix_dependency.patch
Original file line number Diff line number Diff line change
@@ -0,0 +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()
14 changes: 11 additions & 3 deletions ports/vxl/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
include(vcpkg_common_functions)

if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h")
message(FATAL_ERROR "Can't build VXL with non built-in OpenJpeg in current version. Please remove OpenJpeg, and try install VXL again.")
set(BUILD_CORE_IMAGING OFF)
if("core_imaging" IN_LIST FEATURES)
set(BUILD_CORE_IMAGING ON)
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h")
set(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()

vcpkg_from_github(
Expand All @@ -10,6 +15,8 @@ vcpkg_from_github(
REF v1.18.0
SHA512 6666d647b2e7010b91cb0b05016b5f49ae46d198f6bd160fe13fc09bc674eff5b937331fa11d81a8496473968b63452d950eee4fc2512152af57304a14bed63f
HEAD_REF master
PATCHES
fix_dependency.patch
)

set(USE_WIN_WCHAR_T OFF)
Expand All @@ -23,6 +30,7 @@ vcpkg_configure_cmake(
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DBUILD_CORE_IMAGING=${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 @@ -48,4 +56,4 @@ 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)
#
#

0 comments on commit 4068783

Please sign in to comment.