2021-06-04 03:56:33 +08: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-17 05:44:34 +08:00
|
|
|
SHA512 ba72b8d02b098f361643a073361fccafd22eaac14e46dd06378d5e7acd9853538c5d166473e1de0b020de62dac25be83e42bd57ba51f675d11e2ddf155fbfa21
|
2021-06-04 03:56:33 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
disable-source-utf8.patch
|
|
|
|
)
|
|
|
|
|
2023-08-29 15:20:42 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
aom AVIF_CODEC_AOM
|
2024-05-23 14:36:39 +08:00
|
|
|
dav1d AVIF_CODEC_DAV1D
|
2023-08-29 15:20:42 +08:00
|
|
|
)
|
|
|
|
|
2021-06-04 03:56:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-07-06 05:59:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-04 03:56:33 +08:00
|
|
|
OPTIONS
|
|
|
|
-DAVIF_BUILD_APPS=OFF
|
2024-10-17 05:44:34 +08:00
|
|
|
-DAVIF_BUILD_TESTS=OFF
|
2024-08-27 16:57:13 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_libsharpyuv=ON
|
2023-08-29 15:20:42 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2021-06-04 03:56:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Move cmake configs
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
|
|
|
# Fix pkg-config files
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
# Remove duplicate files
|
2022-07-06 05:59:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-06-04 03:56:33 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-02-24 03:21:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|