[opencv] Require use of internal tiff, libjpeg, libpng. Partially fixes #81.

This commit is contained in:
Robert Schumacher 2016-09-30 16:48:12 -07:00
parent 17786b865a
commit 39c0c7152f
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: opencv
Version: 3.1.0-1
Build-Depends: zlib, libpng, libjpeg-turbo
Build-Depends: zlib, libpng, libjpeg-turbo, tiff
Description: computer vision library

View File

@ -11,10 +11,15 @@ vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES "${CMAKE_CURRENT_LIST_DIR}/opencv-installation-options.patch"
)
file(REMOVE_RECURSE ${SOURCE_PATH}/3rdparty/libjpeg ${SOURCE_PATH}/3rdparty/libpng ${SOURCE_PATH}/3rdparty/zlib ${SOURCE_PATH}/3rdparty/libtiff)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBUILD_ZLIB=OFF
-DBUILD_TIFF=OFF
-DBUILD_JPEG=OFF
-DBUILD_PNG=OFF
-DINSTALL_CREATE_DISTRIB=ON
-DBUILD_opencv_python2=OFF
-DBUILD_opencv_python3=OFF