vcpkg/ports/dav1d/portfile.cmake

34 lines
1007 B
CMake
Raw Normal View History

vcpkg_fail_port_install(ON_ARCH "arm" "x86" ON_TARGET "uwp")
vcpkg_from_gitlab(
GITLAB_URL https://code.videolan.org
OUT_SOURCE_PATH SOURCE_PATH
REPO videolan/dav1d
REF 0.8.2
SHA512 2f48c88fdbe627f089eb378f43b8f18e1c5cff4645148ee7e14b8f3f8e9d690b28e58fc9cb466e7a9a4c147f06b0d34c47c132070acefbd01abe23cd3c6047d8
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()
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)