2017-06-30 05:56:12 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenImageIO/oiio
|
2019-08-08 20:44:17 +08:00
|
|
|
REF ad1ab61a56c63d770e4beb335efe8b1f1a9e36cd
|
|
|
|
SHA512 48ee7862583e7adb86b56b20634c34aebf83ef0a3a14ad96182494ce6a84cb027334840a6c4c335e9342110c3a36532e3eeae22a3ed7363cd91b27cb7ca58154
|
2017-06-30 05:56:12 +08:00
|
|
|
HEAD_REF master
|
2018-07-03 15:55:31 +08:00
|
|
|
PATCHES
|
2018-10-21 03:37:47 +08:00
|
|
|
fix_libraw.patch
|
|
|
|
use-webp.patch
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
remove_wrong_dependency.patch
|
2017-06-30 05:56:12 +08:00
|
|
|
)
|
|
|
|
|
2018-05-02 06:55:59 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/ext")
|
|
|
|
file(MAKE_DIRECTORY "${SOURCE_PATH}/ext/robin-map/tsl")
|
|
|
|
|
2017-06-30 05:56:12 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
set(BUILDSTATIC ON)
|
|
|
|
set(LINKSTATIC ON)
|
|
|
|
else()
|
|
|
|
set(BUILDSTATIC OFF)
|
|
|
|
set(LINKSTATIC OFF)
|
|
|
|
endif()
|
|
|
|
|
2018-07-03 15:55:31 +08:00
|
|
|
# Features
|
|
|
|
set(USE_LIBRAW OFF)
|
|
|
|
if("libraw" IN_LIST FEATURES)
|
|
|
|
set(USE_LIBRAW ON)
|
|
|
|
endif()
|
|
|
|
|
2017-06-30 05:56:12 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DOIIO_BUILD_TOOLS=OFF
|
|
|
|
-DOIIO_BUILD_TESTS=OFF
|
|
|
|
-DHIDE_SYMBOLS=ON
|
2018-10-21 03:37:47 +08:00
|
|
|
-DUSE_DICOM=OFF
|
2017-06-30 05:56:12 +08:00
|
|
|
-DUSE_FFMPEG=OFF
|
|
|
|
-DUSE_FIELD3D=OFF
|
|
|
|
-DUSE_FREETYPE=OFF
|
|
|
|
-DUSE_GIF=OFF
|
2018-07-03 15:55:31 +08:00
|
|
|
-DUSE_LIBRAW=${USE_LIBRAW}
|
2017-06-30 05:56:12 +08:00
|
|
|
-DUSE_NUKE=OFF
|
|
|
|
-DUSE_OCIO=OFF
|
|
|
|
-DUSE_OPENCV=OFF
|
|
|
|
-DUSE_OPENJPEG=OFF
|
2018-10-21 03:37:47 +08:00
|
|
|
-DUSE_OPENSSL=OFF
|
2017-06-30 05:56:12 +08:00
|
|
|
-DUSE_PTEX=OFF
|
|
|
|
-DUSE_PYTHON=OFF
|
|
|
|
-DUSE_QT=OFF
|
2018-10-21 03:37:47 +08:00
|
|
|
-DUSE_WEBP=OFF
|
2017-06-30 05:56:12 +08:00
|
|
|
-DBUILDSTATIC=${BUILDSTATIC}
|
|
|
|
-DLINKSTATIC=${LINKSTATIC}
|
2018-05-02 06:55:59 +08:00
|
|
|
-DBUILD_MISSING_PYBIND11=OFF
|
|
|
|
-DBUILD_MISSING_DEPS=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
2018-10-21 03:37:47 +08:00
|
|
|
-DVERBOSE=ON
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DOPENEXR_CUSTOM_LIB_DIR=${CURRENT_INSTALLED_DIR}/debug/lib
|
2017-06-30 05:56:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Clean
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-03-19 20:26:33 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2017-06-30 05:56:12 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2019-07-07 15:24:18 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/openimageio)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openimageio/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/openimageio/copyright)
|