[packages/xine-lib] fix xvmc detectiion

atler atler at pld-linux.org
Sun Feb 16 17:28:38 CET 2025


commit 4ee445e3a79ccfc5fe8af9bccf65a8e2ddab7fd8
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Feb 16 16:58:06 2025 +0100

    fix xvmc detectiion

 configure.patch | 26 ++++++++++++++++++++++++++
 xine-lib.spec   |  2 ++
 2 files changed, 28 insertions(+)
---
diff --git a/xine-lib.spec b/xine-lib.spec
index 45f1e5d..a6380bb 100644
--- a/xine-lib.spec
+++ b/xine-lib.spec
@@ -56,6 +56,7 @@ Patch2:		%{name}-sh.patch
 Patch3:		ffmpeg6.patch
 Patch4:		binutils-2.39.patch
 Patch5:		%{name}-link.patch
+Patch6:		configure.patch
 URL:		https://xine.sourceforge.net/
 %{?with_directfb:BuildRequires:	DirectFB-devel >= 0.9.22}
 # for OpenGL or wayland
@@ -1098,6 +1099,7 @@ XINE - wtyczka postprocessingu oparta na libpostproc z pakietu FFmpeg.
 %patch -P3 -p1
 %patch -P4 -p1
 %patch -P5 -p1
+%patch -P6 -p1
 
 %build
 %{__gettextize}
diff --git a/configure.patch b/configure.patch
new file mode 100644
index 0000000..854497d
--- /dev/null
+++ b/configure.patch
@@ -0,0 +1,26 @@
+--- xine-lib-1.2.13/m4/video_out.m4.orig	2022-01-25 00:39:17.000000000 +0100
++++ xine-lib-1.2.13/m4/video_out.m4	2025-02-16 16:53:16.006846468 +0100
+@@ -496,9 +496,9 @@
+             AC_MSG_CHECKING([whether to enable the xxmc plugin with VLD extensions])
+             AC_MSG_RESULT([])
+             LIBS="$XXMC_LIBS $X_LIBS $XV_LIBS $LIBS"
+-            AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCPutSlice()]])], [have_xxmc=yes],
++            AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/vldXvMC.h>]], [[XvMCPutSlice()]])], [have_xxmc=yes],
+                            [LIBS="$XXMC_LIBS -lXvMC $X_LIBS $XV_LIBS $LIBS $DYNAMIC_LD_LIBS"
+-                            AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCPutSlice()]])],
++                            AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/vldXvMC.h>]], [[XvMCPutSlice()]])],
+                                            [have_xxmc=yes XXMC_LIBS="$XXMC_LIBS -lXvMC"])])
+             if test x"$have_xxmc" = x"yes"; then
+                 AC_CHECK_HEADERS([X11/extensions/vldXvMC.h],
+@@ -506,9 +506,9 @@
+                                   AC_DEFINE([HAVE_VLDXVMC], 1, [Define if you have vldXvMC.h])],
+                                   [have_vldexts=no])
+             else
+-                AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCCreateContext()]])], [have_xxmc=yes],
++                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/XvMClib.h>]], [[XvMCCreateContext()]])], [have_xxmc=yes],
+                                [LIBS="$XXMC_LIBS -lXvMC $X_LIBS $XV_LIBS $LIBS"
+-                                AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCCreateContext()]])],
++                                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/XvMClib.h>]], [[XvMCCreateContext()]])],
+                                                [have_xxmc=yes XXMC_LIBS="$XXMC_LIBS -lXvMC"])])
+             fi
+             if test x"$have_xxmc" = x"yes"; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xine-lib.git/commitdiff/4ee445e3a79ccfc5fe8af9bccf65a8e2ddab7fd8



More information about the pld-cvs-commit mailing list