2019-08-10 10:00:21 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# dav1d
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-10-11 20:01:40 +02:00
|
|
|
DAV1D_VERSION = 1.3.0
|
2022-03-15 23:10:11 +01:00
|
|
|
DAV1D_SOURCE = dav1d-$(DAV1D_VERSION).tar.xz
|
2023-04-28 14:14:35 +02:00
|
|
|
DAV1D_SITE = https://download.videolan.org/pub/videolan/dav1d/$(DAV1D_VERSION)
|
2019-08-10 10:00:21 +02:00
|
|
|
DAV1D_LICENSE = BSD-2-Clause
|
|
|
|
DAV1D_LICENSE_FILES = COPYING
|
2023-08-09 09:49:16 +02:00
|
|
|
DAV1D_CPE_ID_VENDOR = videolan
|
2019-08-10 10:00:21 +02:00
|
|
|
DAV1D_INSTALL_STAGING = YES
|
2019-09-04 20:12:21 +02:00
|
|
|
DAV1D_CONF_OPTS = \
|
|
|
|
-Denable_tests=false \
|
|
|
|
-Denable_tools=false
|
2019-08-10 10:00:21 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
|
|
|
DAV1D_DEPENDENCIES += host-nasm
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ARM assembly requires v6+ ISA
|
|
|
|
ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5)$(BR2_ARM_CPU_ARMV7M),y)
|
2019-09-04 20:12:21 +02:00
|
|
|
DAV1D_CONF_OPTS += -Denable_asm=false
|
2019-08-10 10:00:21 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Uses __atomic_fetch_add_4
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2021-12-14 22:28:12 +01:00
|
|
|
DAV1D_LDFLAGS += $(TARGET_LDFLAGS) -latomic
|
2019-08-10 10:00:21 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(meson-package))
|