mirror of https://github.com/mpv-player/mpv
build: fix v4l2 support on NetBSD
It was accidentally broken. Tested by a NetBSD user. May help with other BSDs.
This commit is contained in:
parent
20246a0df3
commit
405113bb51
17
wscript
17
wscript
|
@ -182,10 +182,6 @@ iconv support use --disable-iconv.",
|
|||
'deps': [ 'os-win32', 'mingw' ],
|
||||
'func': check_libs(['waio'],
|
||||
check_statement('waio/waio.h', 'waio_alloc(0, 0, 0, 0)')),
|
||||
}, {
|
||||
'name': 'videoio',
|
||||
'desc': 'videoio.h',
|
||||
'func': check_headers('sys/videoio.h')
|
||||
}, {
|
||||
'name': '--termios',
|
||||
'desc': 'termios',
|
||||
|
@ -751,15 +747,26 @@ radio_and_tv_features = [
|
|||
'name': '--tv',
|
||||
'desc': 'TV interface',
|
||||
'func': check_true,
|
||||
}, {
|
||||
'name': 'sys_videoio_h',
|
||||
'desc': 'videoio.h',
|
||||
'func': check_cc(header_name=['sys/time.h', 'sys/videoio.h'])
|
||||
}, {
|
||||
'name': 'videodev',
|
||||
'desc': 'videodev2.h',
|
||||
'func': check_cc(header_name=['sys/time.h', 'linux/videodev2.h']),
|
||||
'deps_neg': [ 'sys_videoio_h' ],
|
||||
}, {
|
||||
'name': '--tv-v4l2',
|
||||
'desc': 'Video4Linux2 TV interface',
|
||||
'deps': [ 'tv' ],
|
||||
'func': check_cc(header_name=['sys/time.h', 'linux/videodev2.h'])
|
||||
'deps_any': [ 'sys_videoio_h', 'videodev' ],
|
||||
'func': check_true,
|
||||
}, {
|
||||
'name': '--libv4l2',
|
||||
'desc': 'libv4l2 support',
|
||||
'func': check_pkg_config('libv4l2'),
|
||||
'deps': [ 'tv-v4l2' ],
|
||||
}, {
|
||||
'name': '--pvr',
|
||||
'desc': 'Video4Linux2 MPEG PVR interface',
|
||||
|
|
Loading…
Reference in New Issue