[packages/mpv] enable shaderc support

atler atler at pld-linux.org
Tue May 28 20:57:23 CEST 2019


commit 3f336c4f4bab2ed7fac5ecb42141ea8e2cd287f4
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 28 20:56:25 2019 +0200

    enable shaderc support

 mpv-shaderc.patch | 12 ++++++++++++
 mpv.spec          |  4 ++++
 2 files changed, 16 insertions(+)
---
diff --git a/mpv.spec b/mpv.spec
index dfc0bec..0f7654c 100644
--- a/mpv.spec
+++ b/mpv.spec
@@ -10,6 +10,7 @@ Source0:	http://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}
 # Source0-md5:	2cd070c6aed980786177b7cb5b73664b
 Source1:	%{name}.conf
 Patch0:		%{name}-lua.patch
+Patch1:		%{name}-shaderc.patch
 URL:		http://mpv.io/
 BuildRequires:	Mesa-libEGL-devel >= 9.0.0
 BuildRequires:	OpenAL-devel >= 1.13
@@ -39,6 +40,7 @@ BuildRequires:	lua51-devel
 BuildRequires:	pkgconfig
 BuildRequires:	pulseaudio-devel >= 1.0
 BuildRequires:	rpmbuild(macros) >= 1.336
+BuildRequires:	shaderc-devel
 BuildRequires:	uchardet-devel
 BuildRequires:	waf >= 1.8.12
 BuildRequires:	wayland-devel >= 1.6.0
@@ -126,6 +128,7 @@ Dopełnianie parametrów mpv dla powłoki ZSH.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %waf configure \
@@ -162,6 +165,7 @@ Dopełnianie parametrów mpv dla powłoki ZSH.
 		--enable-oss-audio \
 		--enable-pulse \
 		--enable-sdl2 \
+		--enable-shaderc \
 		--enable-tv \
 		--enable-tv-v4l2 \
 		--enable-uchardet \
diff --git a/mpv-shaderc.patch b/mpv-shaderc.patch
new file mode 100644
index 0000000..9361764
--- /dev/null
+++ b/mpv-shaderc.patch
@@ -0,0 +1,12 @@
+diff -urN mpv-0.29.1.orig/wscript mpv-0.29.1/wscript
+--- mpv-0.29.1.orig/wscript	2019-05-28 20:48:29.531577650 +0200
++++ mpv-0.29.1/wscript	2019-05-28 20:49:59.381099666 +0200
+@@ -730,7 +730,7 @@
+         'desc': 'libshaderc SPIR-V compiler (shared library)',
+         'deps': '!static-build',
+         'groups': ['shaderc'],
+-        'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
++        'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc'),
+     }, {
+         'name': 'shaderc-static',
+         'desc': 'libshaderc SPIR-V compiler (static library)',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpv.git/commitdiff/3f336c4f4bab2ed7fac5ecb42141ea8e2cd287f4



More information about the pld-cvs-commit mailing list