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}"
|
|
|
|
SHA512 aa744c521fb15e68940956f70997ab969094aee1c129d404ee9a52f318248353bb8d53250b575b4040402645e44701086b78143f1e1122b61a925e9b6cd07566
|
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
|
2023-05-19 02:28:08 +08:00
|
|
|
fix-lib-version.patch
|
2020-08-08 06:38:18 +08:00
|
|
|
)
|
|
|
|
|
2022-03-31 04:30:27 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
sse DISABLE_SSE
|
|
|
|
)
|
|
|
|
|
2021-12-10 11:40:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON
|
2022-03-31 04:30:27 +08:00
|
|
|
${FEATURE_OPTIONS}
|
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")
|