From 6704008a4688fd9bd2cf277019694ed948ecdc5e Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 5 Jul 2010 17:04:46 +0000 Subject: stream_bluray: add unencrypted Blu-ray playback Support for unencrypted Blu-ray playback through libbluray. Use it through: mplayer br:////path/to/disc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31631 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 2cb46c94bd..bfa6112bda 100755 --- a/configure +++ b/configure @@ -279,6 +279,7 @@ Optional features: --enable-live enable LIVE555 Streaming Media [autodetect] --enable-nemesi enable Nemesi Streaming Media [autodetect] --disable-vcd disable VCD support [autodetect] + --disable-bluray disable Blu-ray support [autodetect] --disable-dvdnav disable libdvdnav [autodetect] --disable-dvdread disable libdvdread [autodetect] --disable-dvdread-internal disable internal libdvdread [autodetect] @@ -616,6 +617,7 @@ _ladspa=auto _libbs2b=auto _xmms=no _vcd=auto +_bluray=auto _dvdnav=auto _dvdnavconfig=dvdnav-config _dvdreadconfig=dvdread-config @@ -1015,6 +1017,8 @@ for ac_option do --disable-xmms) _xmms=no ;; --enable-vcd) _vcd=yes ;; --disable-vcd) _vcd=no ;; + --enable-bluray) _bluray=yes ;; + --disable-bluray) _bluray=no ;; --enable-dvdread) _dvdread=yes ;; --disable-dvdread) _dvdread=no ;; --enable-dvdread-internal) _dvdread_internal=yes ;; @@ -5780,6 +5784,30 @@ echores "$_vcd" +echocheck "Blu-ray support" +if test "$_bluray" = auto ; then + _bluray=no + + cat > $TMPC << EOF +#include +#include +int main(void) { + BLURAY_TITLE_INFO *i = bd_get_title_info(NULL, 0); + return 0; +} +EOF + compile_check $TMPC -lbluray && _bluray=yes +fi +if test "$_bluray" = yes ; then + def_bluray='#define CONFIG_LIBBLURAY 1' + extra_ldflags="$extra_ldflags -lbluray" + inputmodules="bluray $inputmodules" +else + def_bluray='#undef CONFIG_LIBBLURAY' + noinputmodules="bluray $noinputmodules" +fi +echores "$_bluray" + echocheck "dvdread" if test "$_dvdread_internal" = auto && test ! -f "libdvdread4/dvd_reader.c" ; then _dvdread_internal=no @@ -7819,6 +7847,7 @@ KVA = $_kva LADSPA = $_ladspa LIBA52 = $_liba52 LIBASS = $_ass +LIBBLURAY = $_bluray LIBBS2B = $_libbs2b LIBDCA = $_libdca LIBDV = $_libdv @@ -8123,9 +8152,10 @@ $(ff_config_enable "$subarch_all" "$subarch" "ARCH") $(ff_config_enable "$cpuexts_all" "$cpuexts" "HAVE") -/* DVD/VCD/CD */ +/* Blu-ray/DVD/VCD/CD */ #define DEFAULT_CDROM_DEVICE "$default_cdrom_device" #define DEFAULT_DVD_DEVICE "$default_dvd_device" +$def_bluray $def_bsdi_dvd $def_cddb $def_cdio -- cgit v1.2.3