Mercurial > mplayer.hg
diff configure @ 31565:9a590e7aac57
Support for unencrypted Blu-ray playback through libbluray.
Use it through: mplayer br:////path/to/disc
author | ben |
---|---|
date | Mon, 05 Jul 2010 17:04:46 +0000 |
parents | 1474401afe45 |
children | c90f270458ae |
line wrap: on
line diff
--- a/configure Sun Jul 04 07:13:18 2010 +0000 +++ b/configure Mon Jul 05 17:04:46 2010 +0000 @@ -280,6 +280,7 @@ --enable-nemesi enable Nemesi Streaming Media [autodetect] --enable-librtmp enable RTMPDump 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] @@ -674,6 +675,7 @@ _libbs2b=auto _xmms=no _vcd=auto +_bluray=auto _dvdnav=auto _dvdnavconfig=dvdnav-config _dvdreadconfig=dvdread-config @@ -1088,6 +1090,8 @@ --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 ;; @@ -6038,6 +6042,30 @@ +echocheck "Blu-ray support" +if test "$_bluray" = auto ; then + _bluray=no + + cat > $TMPC << EOF +#include <stdlib.h> +#include <libbluray/bluray.h> +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 ; then _dvdread_internal=no @@ -8579,6 +8607,7 @@ LIBA52 = $_liba52 LIBASS = $_ass LIBASS_INTERNAL = $ass_internal +LIBBLURAY = $_bluray LIBBS2B = $_libbs2b LIBDCA = $_libdca LIBDV = $_libdv @@ -8936,9 +8965,10 @@ $(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