aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/openimageio/CONTROL6
-rw-r--r--ports/openimageio/portfile.cmake13
2 files changed, 10 insertions, 9 deletions
diff --git a/ports/openimageio/CONTROL b/ports/openimageio/CONTROL
index 30d1fae48..4ef37065a 100644
--- a/ports/openimageio/CONTROL
+++ b/ports/openimageio/CONTROL
@@ -1,5 +1,5 @@
Source: openimageio
-Version: 2019-08-08-2
+Version: 2019-08-08-3
Homepage: https://github.com/OpenImageIO/oiio
Description: A library for reading and writing images, and a bunch of related classes, utilities, and application
Build-Depends: libjpeg-turbo, tiff, libpng, openexr, boost-thread, boost-smart-ptr, boost-foreach, boost-regex, boost-type-traits, boost-static-assert, boost-unordered, boost-config, boost-algorithm, boost-filesystem, boost-system, boost-thread, boost-asio, boost-random, robin-map, boost-stacktrace
@@ -7,3 +7,7 @@ Build-Depends: libjpeg-turbo, tiff, libpng, openexr, boost-thread, boost-smart-p
Feature: libraw
Build-Depends: libraw
Description: Enable RAW image files support
+
+Feature: opencolorio
+Build-Depends: opencolorio
+Description: Enable opencolorio support for openimageio \ No newline at end of file
diff --git a/ports/openimageio/portfile.cmake b/ports/openimageio/portfile.cmake
index 09ac52960..6d14e580c 100644
--- a/ports/openimageio/portfile.cmake
+++ b/ports/openimageio/portfile.cmake
@@ -24,16 +24,15 @@ else()
set(LINKSTATIC OFF)
endif()
-# Features
-set(USE_LIBRAW OFF)
-if("libraw" IN_LIST FEATURES)
- set(USE_LIBRAW ON)
-endif()
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ libraw USE_LIBRAW
+ opencolorio USE_OCIO
+)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS
+ OPTIONS ${FEATURE_OPTIONS}
-DOIIO_BUILD_TOOLS=OFF
-DOIIO_BUILD_TESTS=OFF
-DHIDE_SYMBOLS=ON
@@ -42,9 +41,7 @@ vcpkg_configure_cmake(
-DUSE_FIELD3D=OFF
-DUSE_FREETYPE=OFF
-DUSE_GIF=OFF
- -DUSE_LIBRAW=${USE_LIBRAW}
-DUSE_NUKE=OFF
- -DUSE_OCIO=OFF
-DUSE_OPENCV=OFF
-DUSE_OPENJPEG=OFF
-DUSE_OPENSSL=OFF