aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openexr
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openexr
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/openexr')
-rw-r--r--vcpkg/ports/openexr/portfile.cmake59
-rw-r--r--vcpkg/ports/openexr/usage4
-rw-r--r--vcpkg/ports/openexr/vcpkg.json26
3 files changed, 89 insertions, 0 deletions
diff --git a/vcpkg/ports/openexr/portfile.cmake b/vcpkg/ports/openexr/portfile.cmake
new file mode 100644
index 0000000..36ae24c
--- /dev/null
+++ b/vcpkg/ports/openexr/portfile.cmake
@@ -0,0 +1,59 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO AcademySoftwareFoundation/openexr
+ REF "v${VERSION}"
+ SHA512 74675b981cc82b6b3144d9dd56df611031dcb2f3da91aeb46b41fc97ec94b9ea45cad10142e3f2d1cd29022b42351d057e1540bde519f4381e206076dc3a5dbb
+ HEAD_REF main
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS
+ FEATURES
+ tools OPENEXR_BUILD_TOOLS
+ tools OPENEXR_INSTALL_TOOLS
+)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${OPTIONS}
+ -DBUILD_TESTING=OFF
+ -DBUILD_WEBSITE=OFF
+ -DCMAKE_REQUIRE_FIND_PACKAGE_libdeflate=ON
+ -DOPENEXR_BUILD_EXAMPLES=OFF
+ -DOPENEXR_INSTALL_PKG_CONFIG=ON
+ OPTIONS_DEBUG
+ -DOPENEXR_BUILD_TOOLS=OFF
+ -DOPENEXR_INSTALL_TOOLS=OFF
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OpenEXR)
+
+vcpkg_fixup_pkgconfig()
+
+if(OPENEXR_INSTALL_TOOLS)
+ vcpkg_copy_tools(
+ TOOL_NAMES
+ exr2aces
+ # not installed: exrcheck
+ exrenvmap
+ exrheader
+ exrinfo
+ exrmakepreview
+ exrmaketiled
+ exrmanifest
+ exrmetrics
+ exrmultipart
+ exrmultiview
+ exrstdattr
+ AUTO_CLEAN
+ )
+endif()
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/openexr/usage b/vcpkg/ports/openexr/usage
new file mode 100644
index 0000000..6b09d9d
--- /dev/null
+++ b/vcpkg/ports/openexr/usage
@@ -0,0 +1,4 @@
+openexr provides CMake targets:
+
+ find_package(OpenEXR CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE OpenEXR::OpenEXR)
diff --git a/vcpkg/ports/openexr/vcpkg.json b/vcpkg/ports/openexr/vcpkg.json
new file mode 100644
index 0000000..b7c5f05
--- /dev/null
+++ b/vcpkg/ports/openexr/vcpkg.json
@@ -0,0 +1,26 @@
+{
+ "name": "openexr",
+ "version": "3.4.3",
+ "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",
+ "supports": "!uwp",
+ "dependencies": [
+ "imath",
+ "libdeflate",
+ "openjph",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "tools": {
+ "description": "Build tools"
+ }
+ }
+}