Xbmc

De Admin -- TALEVAS.
(Différences entre les versions)
(xbmc)
 
Ligne 4 : Ligne 4 :
 
  mkdir -p /etc/portage/patches/media-tv/xbmc/  
 
  mkdir -p /etc/portage/patches/media-tv/xbmc/  
 
  cd /etc/portage/patches/media-tv/xbmc/
 
  cd /etc/portage/patches/media-tv/xbmc/
 +
 +
http://pastebin.com/iLk89tRg
 +
 
 +
black xbmc-9999 # cat /etc/portage/patches/media-tv/xbmc/xbmc-9999-disable-vdpau-detect.patch
 +
--- ./configure.in.orig 2011-11-16 01:48:58.000000000 -0700
 +
+++ ./configure.in 2011-11-17 06:38:35.311358161 -0700
 +
@@ -1248,7 +1248,7 @@ if test "$use_external_ffmpeg" = "yes";
 +
    AC_DEFINE([USE_EXTERNAL_FFMPEG], [1], [Whether to use external FFmpeg libraries.])
 +
 
 +
    # Disable vdpau support if external libavcodec doesn't have it
 +
-  AC_CHECK_LIB([avcodec], [ff_vdpau_vc1_decode_picture],,
 +
+  AC_CHECK_LIB([avcodec], [avcodec_open],,
 +
      [if test "x$use_vdpau" = "xyes"; then
 +
        AC_MSG_ERROR($ffmpeg_vdpau_not_supported)
 +
      else
 +
--- ./configure.in.orig 2011-11-17 06:40:58.078030669 -0700
 +
+++ ./configure.in 2011-11-17 07:16:06.214464029 -0700
 +
@@ -1297,7 +1297,7 @@ if test "x$use_vdpau" != "xno"; then
 +
      USE_VDPAU=0
 +
    else
 +
      USE_VDPAU=1
 +
-    AC_CHECK_HEADER([vdpau/vdpau.h],AC_DEFINE([HAVE_LIBVDPAU], [],
 +
+    AC_CHECK_HEADER([vdpau/vdpau.h],AC_DEFINE([HAVE_LIBVDPAU], [1],
 +
        [Define to 1 if you have the 'vdpau' library (-lvdpau).]),
 +
      [if test "x$use_vdpau" = "xyes"; then
 +
        USE_VDPAU=0
 +
--- ./configure.old 2011-12-17 12:25:58.000000000 +0100
 +
+++ ./configure 2011-12-17 12:26:25.000000000 +0100
 +
@@ -23778,9 +23778,9 @@
 +
 
 +
 
 +
  # Disable vdpau support if external libavcodec doesn't have it
 +
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ff_vdpau_vc1_decode_picture in -lavcodec" >&5
 +
-$as_echo_n "checking for ff_vdpau_vc1_decode_picture in -lavcodec... " >&6; }
 +
-if ${ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture+:} false; then :
 +
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_open in -lavcodec" >&5
 +
+$as_echo_n "checking for avcodec_open in -lavcodec... " >&6; }
 +
+if ${ac_cv_lib_avcodec_avcodec_open+:} false; then :
 +
    $as_echo_n "(cached) " >&6
 +
  else
 +
    ac_check_lib_save_LIBS=$LIBS
 +
@@ -23794,27 +23794,27 @@
 +
  #ifdef __cplusplus
 +
  extern "C"
 +
  #endif
 +
-char ff_vdpau_vc1_decode_picture ();
 +
+char avcodec_open ();
 +
  int
 +
  main ()
 +
  {
 +
-return ff_vdpau_vc1_decode_picture ();
 +
+return avcodec_open ();
 +
    ;
 +
    return 0;
 +
  }
 +
  _ACEOF
 +
  if ac_fn_c_try_link "$LINENO"; then :
 +
-  ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes
 +
+  ac_cv_lib_avcodec_avcodec_open=yes
 +
  else
 +
-  ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=no
 +
+  ac_cv_lib_avcodec_avcodec_open=no
 +
  fi
 +
  rm -f core conftest.err conftest.$ac_objext \
 +
      conftest$ac_exeext conftest.$ac_ext
 +
  LIBS=$ac_check_lib_save_LIBS
 +
  fi
 +
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" >&5
 +
-$as_echo "$ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" >&6; }
 +
-if test "x$ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" = xyes; then :
 +
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_open" >&5
 +
+$as_echo "$ac_cv_lib_avcodec_avcodec_open" >&6; }
 +
+if test "x$ac_cv_lib_avcodec_avcodec_open" = xyes; then :
 +
    cat >>confdefs.h <<_ACEOF
 +
  #define HAVE_LIBAVCODEC 1
 +
  _ACEOF
 +
@@ -24252,7 +24252,7 @@
 +
      ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
 +
  if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
 +
 
 +
-$as_echo "#define HAVE_LIBVDPAU /**/" >>confdefs.h
 +
+$as_echo "#define HAVE_LIBVDPAU 1" >>confdefs.h
 +
 
 +
  else
 +
    if test "x$use_vdpau" = "xyes"; then

Version actuelle en date du 17 décembre 2011 à 16:40

xbmc

http://forums.gentoo.org/viewtopic-p-6858208.html
mkdir -p /etc/portage/patches/media-tv/xbmc/ 
cd /etc/portage/patches/media-tv/xbmc/
http://pastebin.com/iLk89tRg 
 
black xbmc-9999 # cat /etc/portage/patches/media-tv/xbmc/xbmc-9999-disable-vdpau-detect.patch
--- ./configure.in.orig	2011-11-16 01:48:58.000000000 -0700
+++ ./configure.in	2011-11-17 06:38:35.311358161 -0700
@@ -1248,7 +1248,7 @@ if test "$use_external_ffmpeg" = "yes";
   AC_DEFINE([USE_EXTERNAL_FFMPEG], [1], [Whether to use external FFmpeg libraries.])
 
   # Disable vdpau support if external libavcodec doesn't have it
-  AC_CHECK_LIB([avcodec], [ff_vdpau_vc1_decode_picture],,
+  AC_CHECK_LIB([avcodec], [avcodec_open],,
     [if test "x$use_vdpau" = "xyes"; then
       AC_MSG_ERROR($ffmpeg_vdpau_not_supported)
     else
--- ./configure.in.orig	2011-11-17 06:40:58.078030669 -0700
+++ ./configure.in	2011-11-17 07:16:06.214464029 -0700
@@ -1297,7 +1297,7 @@ if test "x$use_vdpau" != "xno"; then
     USE_VDPAU=0
   else
     USE_VDPAU=1
-    AC_CHECK_HEADER([vdpau/vdpau.h],AC_DEFINE([HAVE_LIBVDPAU], [],
+    AC_CHECK_HEADER([vdpau/vdpau.h],AC_DEFINE([HAVE_LIBVDPAU], [1],
       [Define to 1 if you have the 'vdpau' library (-lvdpau).]),
     [if test "x$use_vdpau" = "xyes"; then
       USE_VDPAU=0
--- ./configure.old	2011-12-17 12:25:58.000000000 +0100
+++ ./configure	2011-12-17 12:26:25.000000000 +0100
@@ -23778,9 +23778,9 @@
 
 
  # Disable vdpau support if external libavcodec doesn't have it
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ff_vdpau_vc1_decode_picture in -lavcodec" >&5
-$as_echo_n "checking for ff_vdpau_vc1_decode_picture in -lavcodec... " >&6; }
-if ${ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture+:} false; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_open in -lavcodec" >&5
+$as_echo_n "checking for avcodec_open in -lavcodec... " >&6; }
+if ${ac_cv_lib_avcodec_avcodec_open+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -23794,27 +23794,27 @@
 #ifdef __cplusplus
 extern "C"
 #endif
-char ff_vdpau_vc1_decode_picture ();
+char avcodec_open ();
 int
 main ()
 {
-return ff_vdpau_vc1_decode_picture ();
+return avcodec_open ();
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes
+  ac_cv_lib_avcodec_avcodec_open=yes
 else
-  ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=no
+  ac_cv_lib_avcodec_avcodec_open=no
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" >&5
-$as_echo "$ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" >&6; }
-if test "x$ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture" = xyes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_open" >&5
+$as_echo "$ac_cv_lib_avcodec_avcodec_open" >&6; }
+if test "x$ac_cv_lib_avcodec_avcodec_open" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_LIBAVCODEC 1
 _ACEOF
@@ -24252,7 +24252,7 @@
     ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
 if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
 
-$as_echo "#define HAVE_LIBVDPAU /**/" >>confdefs.h
+$as_echo "#define HAVE_LIBVDPAU 1" >>confdefs.h
 
 else
   if test "x$use_vdpau" = "xyes"; then