2021-04-29 08:38:07 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO syoyo/tinyexr
|
2023-06-22 13:13:41 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 c15ac7d21cba70c3247ea49674191097325fcba7bfaeb8163298ded2e3b67f55b1b6486fd90a80f23f950661e96c063a28a70569f40a8938cd41249c34b4bbfe
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2021-04-29 08:38:07 +08:00
|
|
|
PATCHES
|
|
|
|
fixtargets.patch
|
2023-06-22 13:13:41 +08:00
|
|
|
fix-uwp.patch # https://github.com/syoyo/tinyexr/pull/195
|
2017-03-16 05:10:57 +08:00
|
|
|
)
|
|
|
|
|
2023-01-05 04:43:24 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-04-29 08:38:07 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DTINYEXR_BUILD_SAMPLE=OFF
|
|
|
|
)
|
2023-01-05 04:43:24 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2021-04-29 08:38:07 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-03-16 05:10:57 +08:00
|
|
|
|
2021-04-29 08:38:07 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|