1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 12:55:16 +00:00

configure: enable v4l2 input on freebsd

This commit is contained in:
bugmen0t 2013-11-09 01:21:53 +00:00 committed by wm4
parent 35d7ed7bf1
commit 417fa2ffec

6
configure vendored
View File

@ -2936,6 +2936,8 @@ if test "$_tv_v4l2" = auto ; then
_tv_v4l2=no _tv_v4l2=no
if test "$_tv" = yes && linux ; then if test "$_tv" = yes && linux ; then
header_check_broken sys/time.h linux/videodev2.h && _tv_v4l2=yes header_check_broken sys/time.h linux/videodev2.h && _tv_v4l2=yes
elif test "$_tv" = yes && freebsd ; then
header_check linux/videodev2.h && _tv_v4l2=yes
elif test "$_tv" = yes && test "$sys_videoio_h" = "yes" ; then elif test "$_tv" = yes && test "$sys_videoio_h" = "yes" ; then
_tv_v4l2=yes _tv_v4l2=yes
fi fi
@ -2990,7 +2992,7 @@ echores "$_radio_capture"
echocheck "Video 4 Linux 2 Radio interface" echocheck "Video 4 Linux 2 Radio interface"
if test "$_radio_v4l2" = auto ; then if test "$_radio_v4l2" = auto ; then
_radio_v4l2=no _radio_v4l2=no
if test "$_radio" = yes && linux ; then if test "$_radio" = yes && (linux || freebsd) ; then
header_check linux/videodev2.h && _radio_v4l2=yes header_check linux/videodev2.h && _radio_v4l2=yes
fi fi
fi fi
@ -3009,7 +3011,7 @@ fi
echocheck "Video 4 Linux 2 MPEG PVR interface" echocheck "Video 4 Linux 2 MPEG PVR interface"
if test "$_pvr" = auto ; then if test "$_pvr" = auto ; then
_pvr=no _pvr=no
if test "$_tv_v4l2" = yes && linux ; then if test "$_tv_v4l2" = yes ; then
cat > $TMPC <<EOF cat > $TMPC <<EOF
#include <sys/time.h> #include <sys/time.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>