summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-31 16:14:14 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-03 14:36:36 +0900
commit405113bb51bde13cdc060cf2a5807e60c1369437 (patch)
treec83a0b5bf80f453a28ca771e674100d256ade4b0
parent20246a0df3be0fd16625dd825bb7f18670103696 (diff)
downloadmpv-405113bb51bde13cdc060cf2a5807e60c1369437.tar.bz2
mpv-405113bb51bde13cdc060cf2a5807e60c1369437.tar.xz
build: fix v4l2 support on NetBSD
It was accidentally broken. Tested by a NetBSD user. May help with other BSDs.
-rw-r--r--wscript17
1 files changed, 12 insertions, 5 deletions
diff --git a/wscript b/wscript
index 09bb04d2fb..16c8be9a8d 100644
--- a/wscript
+++ b/wscript
@@ -183,10 +183,6 @@ iconv support use --disable-iconv.",
'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',
'func': check_headers('termios.h', 'sys/termios.h'),
@@ -752,14 +748,25 @@ radio_and_tv_features = [
'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',