diff options
Diffstat (limited to 'multimedia/mpv/patches/patch-wscript')
-rw-r--r-- | multimedia/mpv/patches/patch-wscript | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/multimedia/mpv/patches/patch-wscript b/multimedia/mpv/patches/patch-wscript index a9179c33da3..8ee197f1f27 100644 --- a/multimedia/mpv/patches/patch-wscript +++ b/multimedia/mpv/patches/patch-wscript @@ -1,13 +1,11 @@ -$NetBSD: patch-wscript,v 1.5 2020/03/16 21:20:03 wiz Exp $ +$NetBSD: patch-wscript,v 1.6 2020/12/19 11:27:51 leot Exp $ Enable support for DRM on NetBSD. -NetBSD audio support. - ---- wscript.orig 2020-01-26 20:31:54.000000000 +0000 +--- wscript.orig 2020-11-22 17:46:28.000000000 +0000 +++ wscript -@@ -291,6 +291,11 @@ iconv support use --disable-iconv.", - 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'], +@@ -268,6 +268,11 @@ iconv support use --disable-iconv.", + 'func': check_statement(['sys/consio.h', 'sys/ioctl.h'], 'int m; ioctl(0, VT_GETMODE, &m)'), }, { + 'name': 'wsdisplay_usl_io.h', @@ -18,24 +16,12 @@ NetBSD audio support. 'name': 'gbm.h', 'desc': 'gbm.h', 'func': check_cc(header_name=['stdio.h', 'gbm.h']), -@@ -521,6 +526,11 @@ audio_output_features = [ - 'func': check_cc(header_name='sys/soundcard.h'), - 'deps': 'posix && gpl', - }, { -+ 'name': '--netbsd-audio', -+ 'desc': 'NetBSD audio output', -+ 'func': check_statement(['sys/audioio.h', 'sys/ioctl.h'], -+ 'struct audio_device d; ioctl(0, AUDIO_GETDEV, &d)'), -+ }, { - 'name': '--rsound', - 'desc': 'RSound audio output', - 'func': check_statement('rsound.h', 'rsd_init(NULL)', lib='rsound') -@@ -587,7 +597,7 @@ video_output_features = [ +@@ -477,7 +482,7 @@ video_output_features = [ }, { 'name': '--drm', 'desc': 'DRM', -- 'deps': 'vt.h', -+ 'deps': 'vt.h || wsdisplay_usl_io.h', +- 'deps': 'vt.h || consio.h', ++ 'deps': 'vt.h || consio.h || wsdisplay_usl_io.h', 'func': check_pkg_config('libdrm', '>= 2.4.74'), }, { - 'name': '--drmprime', + 'name': '--gbm', |