[vlc-devel] [PATCH 6/8] contrib: add rav1e
Thomas Guillem
thomas at gllm.fr
Tue Aug 25 16:45:07 CEST 2020
From: Kartik Ohri <kartikohri13 at gmail.com>
---
contrib/src/rav1e/SHA512SUMS | 1 +
contrib/src/rav1e/cargo-vendor-SHA512SUMS | 0
contrib/src/rav1e/rules.mak | 32 +++++++++++++++++++++++
3 files changed, 33 insertions(+)
create mode 100644 contrib/src/rav1e/SHA512SUMS
create mode 100644 contrib/src/rav1e/cargo-vendor-SHA512SUMS
create mode 100644 contrib/src/rav1e/rules.mak
diff --git a/contrib/src/rav1e/SHA512SUMS b/contrib/src/rav1e/SHA512SUMS
new file mode 100644
index 00000000000..73d8e9feb85
--- /dev/null
+++ b/contrib/src/rav1e/SHA512SUMS
@@ -0,0 +1 @@
+140995820053e4ac8de5f31fcd430e991e47642c34b9433abea618ed6262ec593b777e9334e5f138aa34854e0bdd044d1d2dadc3c917394641193643b4e92e0c rav1e-0.3.2.tar.gz
diff --git a/contrib/src/rav1e/cargo-vendor-SHA512SUMS b/contrib/src/rav1e/cargo-vendor-SHA512SUMS
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/contrib/src/rav1e/rules.mak b/contrib/src/rav1e/rules.mak
new file mode 100644
index 00000000000..7640607cedc
--- /dev/null
+++ b/contrib/src/rav1e/rules.mak
@@ -0,0 +1,32 @@
+# rav1e
+
+RAV1E_VERSION := 0.3.2
+RAV1E_URL := https://github.com/xiph/rav1e/archive/v$(RAV1E_VERSION).tar.gz
+
+ifdef BUILD_ENCODERS
+PKGS += rav1e
+endif
+
+ifeq ($(call need_pkg,"rav1e"),)
+PKGS_FOUND += rav1e
+endif
+
+# Cargo vendor specific.
+# Download can fail, in that case CARGO_INSTALL will use crates.io
+$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2:
+ -$(call download,$(CONTRIB_VIDEOLAN)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2)
+.cargo-vendor-sum-rav1e: rav1e-$(RAV1E_VERSION)-vendor.tar.bz2
+.cargo-vendor-rav1e: rav1e-$(RAV1E_VERSION)-vendor.tar.bz2
+
+$(TARBALLS)/rav1e-$(RAV1E_VERSION).tar.gz:
+ $(call download_pkg,$(RAV1E_URL),rav1e)
+.sum-rav1e: rav1e-$(RAV1E_VERSION).tar.gz
+
+rav1e: rav1e-$(RAV1E_VERSION).tar.gz .sum-rav1e
+ $(UNPACK)
+ $(MOVE)
+
+.rav1e: rav1e .cargo-vendor-rav1e .cargo-c
+ cd $< && RUSTFLAGS="-C lto -C panic=abort -C opt-level=z" $(CARGOC_INSTALL) \
+ --no-default-features --features asm
+ touch $@
--
2.28.0
More information about the vlc-devel
mailing list