diff --git a/ports/openimageio/CONTROL b/ports/openimageio/CONTROL index 2f357834d..9cec72c8c 100644 --- a/ports/openimageio/CONTROL +++ b/ports/openimageio/CONTROL @@ -2,7 +2,7 @@ Source: openimageio Version: 2.1.9.0 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, pybind11, 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 +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 Feature: libraw Build-Depends: libraw @@ -40,5 +40,9 @@ Feature: webp Build-Depends: libwebp Description: Enable libwebp support for openimageio +Feature: python +Build-Depends: pybind11 +Description: Enable libwebp support for openimageio + Feature: tools Description: Build openimageio tools \ No newline at end of file diff --git a/ports/openimageio/portfile.cmake b/ports/openimageio/portfile.cmake index c0e58b20a..43ee950c2 100644 --- a/ports/openimageio/portfile.cmake +++ b/ports/openimageio/portfile.cmake @@ -37,9 +37,14 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS opencv USE_OPENCV openjpeg USE_OPENJPEG webp USE_WEBP + python USE_PYTHON tools OIIO_BUILD_TOOLS ) +vcpkg_find_acquire_program(PYTHON3) +get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY) +vcpkg_add_to_path("${PYTHON3_DIR}") + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA @@ -48,7 +53,6 @@ vcpkg_configure_cmake( -DHIDE_SYMBOLS=ON -DUSE_DCMTK=OFF -DUSE_NUKE=OFF - -DUSE_PYTHON=OFF -DUSE_QT=OFF -DUSE_PTEX=OFF -DLINKSTATIC=${LINKSTATIC}