2020-08-08 06:38:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO strukturag/libde265
|
2023-05-14 00:33:38 +08:00
|
|
|
REF "v${VERSION}"
|
2024-01-30 03:45:27 +08:00
|
|
|
SHA512 df380f1ea6345e20ed1f907df3c7cdaaac44358a6746e29e16699005783ce96524d30fec7bba457c9f9773a6373250aaaf0b9cd41224057b269798117964b8b5
|
2020-08-08 06:38:18 +08:00
|
|
|
HEAD_REF master
|
2020-11-19 05:09:26 +08:00
|
|
|
PATCHES
|
2023-05-14 00:33:38 +08:00
|
|
|
fix-interface-include.patch
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
2021-12-10 11:40:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-11-23 06:38:02 +08:00
|
|
|
-DENABLE_SDL=OFF
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
2021-12-10 11:40:12 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libde265)
|
2023-05-14 00:33:38 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES dec265 AUTO_CLEAN)
|
2021-12-01 03:50:56 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-08-08 06:38:18 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2022-03-12 03:00:08 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libde265/de265.h" "!defined(LIBDE265_STATIC_BUILD)" "0")
|
|
|
|
else()
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libde265/de265.h" "!defined(LIBDE265_STATIC_BUILD)" "1")
|
2020-08-08 06:38:18 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-05-14 00:33:38 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|