1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-wscript,v 1.2 2019/02/05 12:07:57 leot Exp $
Enable support for DRM on NetBSD.
--- wscript.orig 2018-10-02 19:03:41.000000000 +0000
+++ wscript
@@ -276,6 +276,11 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/vt.h', 'sys/ioctl.h'],
'int m; ioctl(0, VT_GETMODE, &m)'),
}, {
+ 'name': 'wsdisplay_usl_io.h',
+ 'desc': 'wsdisplay_usl_io.h',
+ 'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'],
+ 'int m; ioctl(0, VT_GETMODE, &m)'),
+ }, {
'name': 'gbm.h',
'desc': 'gbm.h',
'func': check_cc(header_name=['stdio.h', 'gbm.h']),
@@ -550,8 +555,8 @@ 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')
}, {
'name': '--drmprime',
'desc': 'DRM Prime ffmpeg support',
|