package/dav1d: new package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 10 Aug 2019 08:00:21 +0000 (10:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 11 Aug 2019 12:29:49 +0000 (14:29 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/dav1d/Config.in [new file with mode: 0644]
package/dav1d/dav1d.hash [new file with mode: 0644]
package/dav1d/dav1d.mk [new file with mode: 0644]

index e8ba6cd985961ca26dbe640bc9d2ecc2b2db6984..9ba058e2eef58b95b07e70c2623942e1d54c0dad 100644 (file)
@@ -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/
index 5f2191a55411d74ed6342b051215e58f08cdc555..3f53c20bb3578735a5af75fe8604bf87d73529d0 100644 (file)
@@ -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 (file)
index 0000000..00d2fd1
--- /dev/null
@@ -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 (file)
index 0000000..5945311
--- /dev/null
@@ -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 (file)
index 0000000..6c08694
--- /dev/null
@@ -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))