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}"
|
|
|
|
SHA512 4a9e2711fccddf35c477db6e2fa2f76c0648aafaa98b4e3f34df62c0fbd02ddcd57762f1f8149822da4f1bc3757ee75ec1d9ced5e56a54dbe9d0b43265aacd4c
|
2021-06-04 03:56:33 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
disable-source-utf8.patch
|
2022-07-06 05:59:22 +08:00
|
|
|
fix-compiler-warnings.patch
|
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_CODEC_AOM=ON
|
|
|
|
-DAVIF_BUILD_APPS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
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")
|