From: Bernd Kuhls Date: Sat, 10 Aug 2019 08:00:21 +0000 (+0200) Subject: package/dav1d: new package X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d66bc940d6e4707f9773aeb052e94d45fa439ad;p=buildroot.git package/dav1d: new package Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/DEVELOPERS b/DEVELOPERS index e8ba6cd985..9ba058e2ee 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -294,6 +294,7 @@ F: package/bcg729/ F: package/bluez-tools/ F: package/boinc/ F: package/clamav/ +F: package/dav1d/ F: package/dovecot/ F: package/dovecot-pigeonhole/ F: package/dtv-scan-tables/ diff --git a/package/Config.in b/package/Config.in index 5f2191a554..3f53c20bb3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1504,6 +1504,7 @@ endmenu menu "Multimedia" source "package/bitstream/Config.in" + source "package/dav1d/Config.in" source "package/kvazaar/Config.in" source "package/libaacs/Config.in" source "package/libamcodec/Config.in" diff --git a/package/dav1d/Config.in b/package/dav1d/Config.in new file mode 100644 index 0000000000..00d2fd17f1 --- /dev/null +++ b/package/dav1d/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_DAV1D + bool "dav1d" + depends on BR2_TOOLCHAIN_HAS_THREADS # pthread + help + dav1d is a new AV1 cross-platform decoder, open-source, and + focused on speed and correctness. + + https://code.videolan.org/videolan/dav1d + +comment "dav1d needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/dav1d/dav1d.hash b/package/dav1d/dav1d.hash new file mode 100644 index 0000000000..594531100c --- /dev/null +++ b/package/dav1d/dav1d.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 18bf96c5168b8c704422387620fefaa953e8dbd4eacb0f0796c03d6e741f8924 dav1d-0.4.0.tar.bz2 +sha256 b327887de263238deaa80c34cdd2ff3e0ba1d35db585ce14a37ce3e74ee389e9 COPYING diff --git a/package/dav1d/dav1d.mk b/package/dav1d/dav1d.mk new file mode 100644 index 0000000000..6c08694f15 --- /dev/null +++ b/package/dav1d/dav1d.mk @@ -0,0 +1,28 @@ +################################################################################ +# +# dav1d +# +################################################################################ + +DAV1D_VERSION = 0.4.0 +DAV1D_SOURCE = dav1d-$(DAV1D_VERSION).tar.bz2 +DAV1D_SITE = https://code.videolan.org/videolan/dav1d/-/archive/$(DAV1D_VERSION) +DAV1D_LICENSE = BSD-2-Clause +DAV1D_LICENSE_FILES = COPYING +DAV1D_INSTALL_STAGING = YES + +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) +DAV1D_CONF_OPTS = -Denable_asm=false +endif + +# Uses __atomic_fetch_add_4 +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +DAV1D_LDFLAGS += -latomic +endif + +$(eval $(meson-package))