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
|
|
|
|
REF v3.1.5
|
|
|
|
SHA512 01ef16eacd2dde83c67b81522bae87f47ba272a41ce7d4e35d865dbdcaa03093e7ac504b95d2c1b3a19535f2364a4f937b0e0570c74243bb1c6e021fce7b620c
|
|
|
|
HEAD_REF master
|
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
|
|
|
|
-DOPENEXR_INSTALL_EXAMPLES=OFF
|
|
|
|
-DDOCS=OFF
|
|
|
|
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)
|
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(
|
|
|
|
TOOL_NAMES exrenvmap exrheader exrinfo exrmakepreview exrmaketiled exrmultipart exrmultiview exrstdattr exr2aces
|
|
|
|
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}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|