2021-01-25 17:57:23 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://code.videolan.org
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO videolan/dav1d
|
2022-04-26 07:08:47 +08:00
|
|
|
REF 7b433e077298d0f4faf8da6d6eb5774e29bffa54 #v0.9.2
|
|
|
|
SHA512 f889f969f6d612770132cbd2faf8685b1613661b5fbb9e7efe86e9cd074cbd99d5d0cd23894ffc3743fb34301b387df3a81bf067d2c7102358e3fdacf5959782
|
2021-01-25 17:57:23 +08:00
|
|
|
PATCHES
|
2022-04-26 07:08:47 +08:00
|
|
|
patch_underscore_prefix.patch
|
2021-01-25 17:57:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(NASM)
|
|
|
|
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${NASM_EXE_PATH})
|
|
|
|
|
|
|
|
set(LIBRARY_TYPE ${VCPKG_LIBRARY_LINKAGE})
|
|
|
|
if (LIBRARY_TYPE STREQUAL "dynamic")
|
|
|
|
set(LIBRARY_TYPE "shared")
|
|
|
|
endif(LIBRARY_TYPE STREQUAL "dynamic")
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2022-04-26 07:08:47 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-25 17:57:23 +08:00
|
|
|
OPTIONS
|
|
|
|
--default-library=${LIBRARY_TYPE}
|
|
|
|
-Denable_tests=false
|
|
|
|
-Denable_tools=false
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-05-25 02:10:23 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-01-25 17:57:23 +08:00
|
|
|
|
|
|
|
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|