diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-09-17 09:31:20 -0700 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-09-17 09:31:20 -0700 |
| commit | baed10c1a4f89435205ef613b12d397f036f393f (patch) | |
| tree | 87ef33ac861487c8e1206152fd35c94684329c5b | |
| parent | 731628c913f9012780912d797d8a429f557bfea4 (diff) | |
| download | vcpkg-baed10c1a4f89435205ef613b12d397f036f393f.tar.gz vcpkg-baed10c1a4f89435205ef613b12d397f036f393f.zip | |
[openimageio] Add opencolorio as feature (#8210)
| -rw-r--r-- | ports/openimageio/CONTROL | 6 | ||||
| -rw-r--r-- | ports/openimageio/portfile.cmake | 13 |
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 |
