[vlc-devel] [PATCHv4 08/12] contrib: add rav1e

Thomas Guillem thomas at gllm.fr
Tue Sep 8 14:13:37 CEST 2020


From: Kartik Ohri <kartikohri13 at gmail.com>

---
 contrib/src/rav1e-vendor/SHA512SUMS |  1 +
 contrib/src/rav1e-vendor/rules.mak  |  6 ++++++
 contrib/src/rav1e/SHA512SUMS        |  1 +
 contrib/src/rav1e/rules.mak         | 30 +++++++++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 100644 contrib/src/rav1e-vendor/SHA512SUMS
 create mode 100644 contrib/src/rav1e-vendor/rules.mak
 create mode 100644 contrib/src/rav1e/SHA512SUMS
 create mode 100644 contrib/src/rav1e/rules.mak

diff --git a/contrib/src/rav1e-vendor/SHA512SUMS b/contrib/src/rav1e-vendor/SHA512SUMS
new file mode 100644
index 00000000000..a2b9df3f874
--- /dev/null
+++ b/contrib/src/rav1e-vendor/SHA512SUMS
@@ -0,0 +1 @@
+f1ee7f62f9c4a0de779f53f7c4bed512b753470180a979aeb2801845facb48c305cdd1c2f201d2f689803f338b31a3be9d16f75e9de53c6864dc96f64db18ded  rav1e-0.3.2-vendor.tar.bz2
diff --git a/contrib/src/rav1e-vendor/rules.mak b/contrib/src/rav1e-vendor/rules.mak
new file mode 100644
index 00000000000..b58169851ae
--- /dev/null
+++ b/contrib/src/rav1e-vendor/rules.mak
@@ -0,0 +1,6 @@
+# rav1e-vendor
+
+$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2:
+	$(call download_vendor,rav1e-$(RAV1E_VERSION)-vendor.tar.bz2)
+
+.rav1e-vendor: rav1e-$(RAV1E_VERSION)-vendor.tar.bz2
diff --git a/contrib/src/rav1e/SHA512SUMS b/contrib/src/rav1e/SHA512SUMS
new file mode 100644
index 00000000000..76560319141
--- /dev/null
+++ b/contrib/src/rav1e/SHA512SUMS
@@ -0,0 +1 @@
+08d12924441d1276f106ae2103932a926f4ffa3bebea390a987766ef5646e4b2211d4473c62133d0307e7f345a341027db27934b8081852a84fc1bc9ec3911c9  rav1e-0.3.3.tar.gz
diff --git a/contrib/src/rav1e/rules.mak b/contrib/src/rav1e/rules.mak
new file mode 100644
index 00000000000..cfc0725c38d
--- /dev/null
+++ b/contrib/src/rav1e/rules.mak
@@ -0,0 +1,30 @@
+# rav1e
+
+RAV1E_VERSION := 0.3.3
+RAV1E_URL := https://github.com/xiph/rav1e/archive/v$(RAV1E_VERSION).tar.gz
+
+ifdef BUILD_RUST
+ifdef BUILD_ENCODERS
+PKGS += rav1e
+endif
+endif
+
+ifeq ($(call need_pkg,"rav1e"),)
+PKGS_FOUND += rav1e
+endif
+
+$(TARBALLS)/rav1e-$(RAV1E_VERSION).tar.gz:
+	$(call download_pkg,$(RAV1E_URL),rav1e)
+
+.sum-rav1e: rav1e-$(RAV1E_VERSION).tar.gz
+
+RAV1E_FEATURES="--features=asm"
+
+rav1e: rav1e-$(RAV1E_VERSION).tar.gz .sum-rav1e .rav1e-vendor
+	$(UNPACK)
+	$(CARGO_VENDOR_SETUP)
+	$(MOVE)
+
+.rav1e: rav1e .cargo
+	cd $< && $(CARGOC_INSTALL) --no-default-features $(RAV1E_FEATURES)
+	touch $@
-- 
2.28.0



More information about the vlc-devel mailing list