summaryrefslogtreecommitdiffstats
path: root/contrib/libdav1d
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libdav1d')
-rw-r--r--contrib/libdav1d/A00-add-cross-file.patch19
-rw-r--r--contrib/libdav1d/module.defs27
-rw-r--r--contrib/libdav1d/module.rules2
3 files changed, 48 insertions, 0 deletions
diff --git a/contrib/libdav1d/A00-add-cross-file.patch b/contrib/libdav1d/A00-add-cross-file.patch
new file mode 100644
index 000000000..9f5327b44
--- /dev/null
+++ b/contrib/libdav1d/A00-add-cross-file.patch
@@ -0,0 +1,19 @@
+diff -Naur /dev/null dav1d-f1b756ef5bdc0bb759b2b140f15362fec024c1ff/x86_64-w64-mingw32.meson
+--- /dev/null 2019-02-01 11:36:25.027425148 -0500
++++ dav1d-f1b756ef5bdc0bb759b2b140f15362fec024c1ff/x86_64-w64-mingw32.meson 2019-02-01 12:10:45.582462644 -0500
+@@ -0,0 +1,15 @@
++[binaries]
++c = 'x86_64-w64-mingw32-gcc'
++cpp = 'x86_64-w64-mingw32-g++'
++ar = 'x86_64-w64-mingw32-ar'
++strip = 'x86_64-w64-mingw32-strip'
++windres = 'x86_64-w64-mingw32-windres'
++
++[properties]
++c_link_args = ['-static-libgcc']
++
++[host_machine]
++system = 'windows'
++cpu_family = 'x86_64'
++cpu = 'x86_64'
++endian = 'little'
diff --git a/contrib/libdav1d/module.defs b/contrib/libdav1d/module.defs
new file mode 100644
index 000000000..6dae46251
--- /dev/null
+++ b/contrib/libdav1d/module.defs
@@ -0,0 +1,27 @@
+$(eval $(call import.MODULE.defs,LIBDAV1D,libdav1d,PTHREADW32))
+$(eval $(call import.CONTRIB.defs,LIBDAV1D))
+
+LIBDAV1D.FETCH.url = https://code.videolan.org/videolan/dav1d/-/archive/0.4.0/dav1d-0.4.0.tar.bz2
+LIBDAV1D.FETCH.sha256 = 18bf96c5168b8c704422387620fefaa953e8dbd4eacb0f0796c03d6e741f8924
+
+LIBDAV1D.build_dir = build/
+
+LIBDAV1D.CONFIGURE.exe = $(MESON.exe)
+LIBDAV1D.CONFIGURE.deps =
+LIBDAV1D.CONFIGURE.shared =
+LIBDAV1D.CONFIGURE.host =
+LIBDAV1D.CONFIGURE.build =
+LIBDAV1D.CONFIGURE.static = -Ddefault_library=static
+LIBDAV1D.CONFIGURE.extra = --libdir=$(call fn.ABSOLUTE,$(CONTRIB.build/))lib/ --buildtype=release
+LIBDAV1D.CONFIGURE.env =
+
+ifeq (1-mingw,$(HOST.cross)-$(HOST.system))
+ LIBDAV1D.CONFIGURE.extra += --cross-file=$(call fn.ABSOLUTE,$(LIBDAV1D.EXTRACT.dir/))x86_64-w64-mingw32.meson
+endif
+
+LIBDAV1D.BUILD.make = $(NINJA.exe)
+LIBDAV1D.BUILD.extra = -v
+
+LIBDAV1D.INSTALL.make = $(NINJA.exe)
+
+LIBDAV1D.CLEAN.make = $(NINJA.exe)
diff --git a/contrib/libdav1d/module.rules b/contrib/libdav1d/module.rules
new file mode 100644
index 000000000..dcfa3f8cb
--- /dev/null
+++ b/contrib/libdav1d/module.rules
@@ -0,0 +1,2 @@
+$(eval $(call import.MODULE.rules,LIBDAV1D))
+$(eval $(call import.CONTRIB.rules,LIBDAV1D))