[packages/dav1d] - added nasm patch (support elfx32 output); release 2
qboosh
qboosh at pld-linux.org
Wed Apr 10 08:21:39 CEST 2019
commit 0ac586e30768c4e785527605b2dacb32a2a55514
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Apr 10 08:21:38 2019 +0200
- added nasm patch (support elfx32 output); release 2
dav1d-nasm.patch | 15 +++++++++++++++
dav1d.spec | 4 +++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/dav1d.spec b/dav1d.spec
index 90fb69f..76657c4 100644
--- a/dav1d.spec
+++ b/dav1d.spec
@@ -7,11 +7,12 @@ Summary: AV1 decoder library
Summary(pl.UTF-8): Biblioteka dekodera AV1
Name: dav1d
Version: 0.2.1
-Release: 1
+Release: 2
License: BSD
Group: Libraries
Source0: https://download.videolan.org/videolan/dav1d/%{version}/%{name}-%{version}.tar.xz
# Source0-md5: 3df9dfc0d131a5bef1853a88c20a18c4
+Patch0: %{name}-nasm.patch
URL: https://code.videolan.org/videolan/dav1d
%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: meson >= 0.47.0
@@ -67,6 +68,7 @@ Dokumentacja API biblioteki DAV1D.
%prep
%setup -q
+%patch0 -p1
%build
%meson build \
diff --git a/dav1d-nasm.patch b/dav1d-nasm.patch
new file mode 100644
index 0000000..7fe9612
--- /dev/null
+++ b/dav1d-nasm.patch
@@ -0,0 +1,15 @@
+--- dav1d-0.2.1/meson.build.orig 2019-03-12 22:34:05.000000000 +0100
++++ dav1d-0.2.1/meson.build 2019-04-10 08:00:52.888513528 +0200
+@@ -344,7 +344,11 @@
+ nasm_format = 'elf'
+ endif
+ if host_machine.cpu_family() == 'x86_64'
+- nasm_format += '64'
++ if get_option('libdir').endswith('libx32')
++ nasm_format += 'x32'
++ else
++ nasm_format += '64'
++ endif
+ else
+ nasm_format += '32'
+ endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dav1d.git/commitdiff/0ac586e30768c4e785527605b2dacb32a2a55514
More information about the pld-cvs-commit
mailing list