2021-06-03 22:56:33 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO AOMediaCodec/libavif
|
2023-02-24 03:21:03 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-16 14:44:34 -07:00
|
|
|
SHA512 ba72b8d02b098f361643a073361fccafd22eaac14e46dd06378d5e7acd9853538c5d166473e1de0b020de62dac25be83e42bd57ba51f675d11e2ddf155fbfa21
|
2021-06-03 22:56:33 +03:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2024-11-25 21:35:02 +01:00
|
|
|
dependencies.diff
|
2021-06-03 22:56:33 +03:00
|
|
|
disable-source-utf8.patch
|
|
|
|
)
|
2024-11-25 21:35:02 +01:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party")
|
2021-06-03 22:56:33 +03:00
|
|
|
|
2024-11-25 21:35:02 +01:00
|
|
|
set(FEATURE_OPTIONS "")
|
|
|
|
if("aom" IN_LIST FEATURES)
|
|
|
|
list(APPEND FEATURE_OPTIONS "-DAVIF_CODEC_AOM=SYSTEM")
|
|
|
|
endif()
|
|
|
|
if("dav1d" IN_LIST FEATURES)
|
|
|
|
list(APPEND FEATURE_OPTIONS "-DAVIF_CODEC_DAV1D=SYSTEM")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2023-08-29 15:20:42 +08:00
|
|
|
|
2021-06-03 22:56:33 +03:00
|
|
|
vcpkg_cmake_configure(
|
2022-07-06 05:59:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-03 22:56:33 +03:00
|
|
|
OPTIONS
|
2023-08-29 15:20:42 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2024-11-25 21:35:02 +01:00
|
|
|
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
2021-06-03 22:56:33 +03:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2024-11-25 21:35:02 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2021-06-03 22:56:33 +03:00
|
|
|
|
2022-07-06 05:59:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-06-03 22:56:33 +03:00
|
|
|
|
2023-02-24 03:21:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|