33 lines
1012 B
CMake
33 lines
1012 B
CMake
|
vcpkg_from_gitlab(
|
||
|
GITLAB_URL https://code.videolan.org
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO videolan/dav1d
|
||
|
REF 7b433e077298d0f4faf8da6d6eb5774e29bffa54 #v0.9.2
|
||
|
SHA512 f889f969f6d612770132cbd2faf8685b1613661b5fbb9e7efe86e9cd074cbd99d5d0cd23894ffc3743fb34301b387df3a81bf067d2c7102358e3fdacf5959782
|
||
|
PATCHES
|
||
|
patch_underscore_prefix.patch
|
||
|
)
|
||
|
|
||
|
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(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
--default-library=${LIBRARY_TYPE}
|
||
|
-Denable_tests=false
|
||
|
-Denable_tools=false
|
||
|
)
|
||
|
|
||
|
vcpkg_install_meson()
|
||
|
vcpkg_copy_pdbs()
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
|
||
|
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|