[vlc-devel] [PATCH v2 2/3] contrib: add dav1d AV1 decoder

Steve Lhomme robux4 at ycbcr.xyz
Thu Nov 8 16:45:33 CET 2018


from git source
---
 contrib/src/dav1d/rules.mak | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 contrib/src/dav1d/rules.mak

diff --git a/contrib/src/dav1d/rules.mak b/contrib/src/dav1d/rules.mak
new file mode 100644
index 0000000000..007664ce68
--- /dev/null
+++ b/contrib/src/dav1d/rules.mak
@@ -0,0 +1,27 @@
+# libdav1d
+
+DAV1D_HASH := aa5f55b2468f937cd36ceb1f0595f9c0915c5997
+DAV1D_VERSION := git-$(DAV1D_HASH)
+DAV1D_GITURL := https://code.videolan.org/videolan/dav1d.git
+
+PKGS += dav1d
+ifeq ($(call need_pkg,"dav1d"),)
+PKGS_FOUND += dav1d
+endif
+
+$(TARBALLS)/dav1d-$(DAV1D_VERSION).tar.xz:
+	$(call download_git,$(DAV1D_GITURL),,$(DAV1D_HASH))
+
+.sum-dav1d: dav1d-$(DAV1D_VERSION).tar.xz
+	$(call check_githash,$(DAV1D_HASH))
+	touch $@
+
+dav1d: dav1d-$(DAV1D_VERSION).tar.xz .sum-dav1d
+	$(UNPACK)
+	$(MOVE)
+
+.dav1d: dav1d crossfile.meson
+	cd $< && rm -rf ./build
+	cd $< && $(HOSTVARS_MESON) $(MESON) -D build_tests=false -D build_tools=false build
+	cd $< && cd build && ninja install
+	touch $@
-- 
2.17.1



More information about the vlc-devel mailing list