summaryrefslogtreecommitdiff
path: root/multimedia/mpv/patches/patch-wscript
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mpv/patches/patch-wscript')
-rw-r--r--multimedia/mpv/patches/patch-wscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/multimedia/mpv/patches/patch-wscript b/multimedia/mpv/patches/patch-wscript
index 79aff8d774c..eb6a6ec2eb7 100644
--- a/multimedia/mpv/patches/patch-wscript
+++ b/multimedia/mpv/patches/patch-wscript
@@ -1,10 +1,10 @@
-$NetBSD: patch-wscript,v 1.2 2019/02/05 12:07:57 leot Exp $
+$NetBSD: patch-wscript,v 1.3 2019/10/25 14:35:56 leot Exp $
Enable support for DRM on NetBSD.
---- wscript.orig 2018-10-02 19:03:41.000000000 +0000
+--- wscript.orig 2019-10-25 13:08:15.000000000 +0000
+++ wscript
-@@ -276,6 +276,11 @@ iconv support use --disable-iconv.",
+@@ -289,6 +289,11 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/vt.h', 'sys/ioctl.h'],
'int m; ioctl(0, VT_GETMODE, &m)'),
}, {
@@ -16,14 +16,12 @@ Enable support for DRM on NetBSD.
'name': 'gbm.h',
'desc': 'gbm.h',
'func': check_cc(header_name=['stdio.h', 'gbm.h']),
-@@ -550,8 +555,8 @@ video_output_features = [
+@@ -584,7 +589,7 @@ video_output_features = [
}, {
'name': '--drm',
'desc': 'DRM',
- 'deps': 'vt.h',
-- 'func': check_pkg_config('libdrm'),
+ 'deps': 'vt.h || wsdisplay_usl_io.h',
-+ 'func': check_pkg_config('libdrm')
+ 'func': check_pkg_config('libdrm', '>= 2.4.74'),
}, {
'name': '--drmprime',
- 'desc': 'DRM Prime ffmpeg support',