2019-02-27 00:16:20 +08:00
|
|
|
vcpkg_from_github(
|
2022-09-26 14:45:07 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO AcademySoftwareFoundation/openexr
|
2023-06-22 13:14:50 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-15 04:28:30 +08:00
|
|
|
SHA512 78f237ce5ec6a4f122d0609bf48c2a9dfcb701e3ce5587906050fbf32d2115dae1984e7cce0f554edda0bd7ec35e4c7aacfc3d1dfb51ea8aa9feebb7f2b3db59
|
2024-03-12 03:40:09 +08:00
|
|
|
HEAD_REF main
|
2019-02-27 00:16:20 +08:00
|
|
|
)
|
2017-06-11 01:00:08 +08:00
|
|
|
|
2022-09-26 14:45:07 +08:00
|
|
|
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
|
2024-03-12 03:40:09 +08:00
|
|
|
-DBUILD_WEBSITE=OFF
|
2024-08-13 07:41:44 +08:00
|
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_libdeflate=ON
|
|
|
|
-DOPENEXR_BUILD_EXAMPLES=OFF
|
2024-01-03 06:37:52 +08:00
|
|
|
-DOPENEXR_INSTALL_PKG_CONFIG=ON
|
2022-09-26 14:45:07 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DOPENEXR_BUILD_TOOLS=OFF
|
|
|
|
-DOPENEXR_INSTALL_TOOLS=OFF
|
2020-07-28 08:43:23 +08:00
|
|
|
)
|
2022-09-01 04:44:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-09-26 14:45:07 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-11 01:00:08 +08:00
|
|
|
|
2022-09-26 14:45:07 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OpenEXR)
|
2024-01-03 06:37:52 +08:00
|
|
|
|
2021-06-11 23:46:46 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-07-28 08:43:23 +08:00
|
|
|
|
2022-09-26 14:45:07 +08:00
|
|
|
if(OPENEXR_INSTALL_TOOLS)
|
|
|
|
vcpkg_copy_tools(
|
2024-08-13 07:41:44 +08:00
|
|
|
TOOL_NAMES
|
|
|
|
exr2aces
|
|
|
|
# not installed: exrcheck
|
|
|
|
exrenvmap
|
|
|
|
exrheader
|
|
|
|
exrinfo
|
|
|
|
exrmakepreview
|
|
|
|
exrmaketiled
|
|
|
|
exrmanifest
|
|
|
|
exrmultipart
|
|
|
|
exrmultiview
|
|
|
|
exrstdattr
|
2022-09-26 14:45:07 +08:00
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
2019-02-27 00:16:20 +08:00
|
|
|
endif()
|
|
|
|
|
2022-09-26 14:45:07 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
2020-07-28 08:43:23 +08:00
|
|
|
|
2022-09-26 14:45:07 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2024-01-03 06:37:52 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|