Skip to content

Commit

Permalink
[openexr] package fix (microsoft#37408)
Browse files Browse the repository at this point in the history
  • Loading branch information
petersteneteg authored Mar 13, 2024
1 parent 8998330 commit 00b4838
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ports/openexr/fix-cmake-package.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/cmake/OpenEXRConfig.cmake.in b/cmake/OpenEXRConfig.cmake.in
index fbb98c0a..37073a69 100644
--- a/cmake/OpenEXRConfig.cmake.in
+++ b/cmake/OpenEXRConfig.cmake.in
@@ -8,11 +8,12 @@ include(CMakeFindDependencyMacro)
set(openexr_needthreads @OPENEXR_ENABLE_THREADING@)
if (openexr_needthreads)
set(THREADS_PREFER_PTHREAD_FLAG ON)
- find_dependency(Threads REQUIRED)
+ find_dependency(Threads)
endif()
unset(openexr_needthreads)

-find_dependency(Imath REQUIRED)
+find_dependency(Imath)
+find_dependency(libdeflate)

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@PROJECT_NAME@")


2 changes: 2 additions & 0 deletions ports/openexr/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 6e0a6fdcfae57c6e8b060d9aeed57140d96d39bffe5e40edd6ea5beb06e569323833d07906316ffca05f48e8409d0ea4174e2cd84d554404a4ee432e07d7b5e6
HEAD_REF main
PATCHES
fix-cmake-package.patch # https://github.com/AcademySoftwareFoundation/openexr/pull/1674
)

vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS
Expand Down
1 change: 1 addition & 0 deletions ports/openexr/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "openexr",
"version": "3.2.3",
"port-version": 1,
"description": "OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications",
"homepage": "https://www.openexr.com/",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6406,7 +6406,7 @@
},
"openexr": {
"baseline": "3.2.3",
"port-version": 0
"port-version": 1
},
"openfbx": {
"baseline": "2022-07-18",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openexr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "99e1e8599b1c2601a39f94b511b623ac51878793",
"version": "3.2.3",
"port-version": 1
},
{
"git-tree": "ccd582f25f0177e879cd408487d541865569dd3a",
"version": "3.2.3",
Expand Down

0 comments on commit 00b4838

Please sign in to comment.