summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-09-21 20:17:32 +0000
committerAnton Kindestam <antonki@kth.se>2020-04-22 11:27:18 +0200
commit427709575d0a1f62401f1d990bdec076a8f82ca5 (patch)
tree958c93003481200fb0ae0bebd8f83a4b7a51bbdd /wscript
parent055a490cef384922d77367d25cecb813cafa8024 (diff)
downloadmpv-427709575d0a1f62401f1d990bdec076a8f82ca5.tar.bz2
mpv-427709575d0a1f62401f1d990bdec076a8f82ca5.tar.xz
build: detect VT_GETMODE on FreeBSD and DragonFly
$ ./waf configure Checking for vt.h : no Checking for DRM : vt.h not found [...] ../test.c:1:10: fatal error: 'sys/vt.h' file not found #include <sys/vt.h> ^~~~~~~~~~ $ build/mpv --gpu-context=drm /path/to/video.mkv Error parsing option gpu-context (option parameter could not be parsed) Setting commandline option --gpu-context=drm failed. Exiting... (Fatal error)
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript b/wscript
index 6e82a9e51b..4e41c5c821 100644
--- a/wscript
+++ b/wscript
@@ -283,6 +283,12 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/vt.h', 'sys/ioctl.h'],
'int m; ioctl(0, VT_GETMODE, &m)'),
}, {
+ 'name': 'consio.h',
+ 'desc': 'consio.h',
+ 'deps': '!vt.h',
+ 'func': check_statement(['sys/consio.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']),
@@ -495,7 +501,7 @@ video_output_features = [
}, {
'name': '--drm',
'desc': 'DRM',
- 'deps': 'vt.h',
+ 'deps': 'vt.h || consio.h',
'func': check_pkg_config('libdrm', '>= 2.4.74'),
}, {
'name': '--gbm',