[vlc-devel] [PATCHv3 6/7] contrib: add rav1e

Thomas Guillem thomas at gllm.fr
Thu Aug 27 16:44:20 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/cargo-vendor-SHA512SUMS |  0
 contrib/src/rav1e/rules.mak               | 27 +++++++++++++++++++++++
 5 files changed, 35 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/cargo-vendor-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..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..9ec3c729387
--- /dev/null
+++ b/contrib/src/rav1e/rules.mak
@@ -0,0 +1,27 @@
+# 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
+
+$(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 .rav1e-vendor
+	$(UNPACK)
+	$(CARGO_VENDOR_SETUP)
+	$(MOVE)
+
+.rav1e: rav1e .cargo
+	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