1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00

autodetecting for dvb-cards

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2728 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
jaf 2001-11-05 21:49:20 +00:00
parent 4f4d79239f
commit 15c3567aa8
3 changed files with 32 additions and 4 deletions

31
configure vendored
View File

@ -184,6 +184,7 @@ Video:
--enable-aa build with AAlib render support [autodetect]
--enable-ggi build with GGI render support [autodetect]
--enable-dxr3 build with DXR3/H+ render support [autodetect]
--enable-dvb build with support for output via DVB-Card [autodetect]
--enable-mga build with mga_vid support
(check for /dev/mga_vid) [autodetect]
--enable-xmga build with mga_vid X Window support
@ -240,6 +241,7 @@ Use these options if autodetection fails:
--with-glib-config=PATH path to glib*-config (e.g.: /opt/bin/glib-config)
--with-extralibdir=DIR extra library files (png, SDL, ...) in DIR
--with-extraincdir=DIR extra headers (png, SDL) are in DIR
--with-dvbincdir=DIR dvb-driver files in DIR
--with-madlibdir=DIR 'libmad.so' (libmad shared lib.) in DIR
--with-madincdir=DIR 'mad.h' (libmad header file) in DIR
@ -304,10 +306,13 @@ for ac_option do
--with-extraincdir=*)
_extraincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
;;
--with-madlibdir=*)
--with-dvbincdir=*)
_dvbincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
;;
--with-madlibdir=*)
_madlibdir=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
;;
--with-madincdir=*)
--with-madincdir=*)
_madincdir=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
;;
esac
@ -574,6 +579,7 @@ _dga=no
_dga2=no
_svga=no
_fbdev=no
_dvb=no
_dxr3=no
linux && _fbdev=yes
_lirc=no
@ -675,6 +681,10 @@ if test -c /dev/mga_vid ; then
_syncfb=yes
fi
if test -e /dev/ost/video ; then
_dvb=yes
fi
cat > $TMPC << EOF
int main( void ) { return 0; }
EOF
@ -1499,6 +1509,12 @@ for ac_option do
--disable-dxr3)
_dxr3=no
;;
--enable-dvb)
_dvb=yes
;;
--disable-dvb)
_dvb=no
;;
--disable-iconv)
_iconv=no
;;
@ -1579,6 +1595,8 @@ for ac_option do
;;
--with-extraincdir=*)
;;
--with-dvbincdir=*)
;;
--prefix=*)
_prefix=`echo $ac_option | cut -d '=' -f 2`
;;
@ -1762,6 +1780,7 @@ echo "Checking for DGA 2.0 .. $_dga2"
echo "Checking for Xf86VM ... $_vm"
echo "Checking for SVGAlib ... $_svga"
echo "Checking for FBDev ... $_fbdev"
echo "Checking for DVB ... $_dvb"
echo "Checking for DXR3/H+ ... $_dxr3"
echo "Checking for OSS Audio ... $_oss_audio"
echo "Checking for ALSA Audio ... $_alsaver"
@ -2424,6 +2443,12 @@ else
_fbdev='#undef HAVE_FBDEV'
fi
if test "$_dvb" = yes ; then
_have_dvb='#define HAVE_DVB'
else
_have_dvb='#undef HAVE_MGA'
fi
if test "$_dxr3" = yes ; then
_dxr3='#define HAVE_DXR3'
_dxr3lib='-ldxr3'
@ -2504,6 +2529,7 @@ MLIB_INC = $_mlibinc
MLIB_LIB = $_mliblib
MADLIB_INC = $_madincdir
MADLIB_LIB = $_madlibdir
DVB_INC = $_dvbincdir
# --- Some stuff for autoconfigure ----
$_target_arch
@ -2750,6 +2776,7 @@ $_xmga
$_syncfb
$_fbdev
$_dxr3
$_have_dvb
$_svga
$_have_xdpms
$_aa

View File

@ -13,7 +13,7 @@ SRCS += vo_vesa.c
endif
endif
CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(MLIB_INC) -DMPG12PLAY #-Wall
CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(MLIB_INC) $(DVB_INC) -DMPG12PLAY #-Wall
# -I/usr/X11R6/include/
.SUFFIXES: .c .o

View File

@ -1,4 +1,3 @@
#undef HAVE_DVB
#define PES_MAX_SIZE 2048
/*
* Based on:
@ -22,6 +21,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include "config.h"
#ifdef HAVE_DVB
#include <sys/poll.h>