[packages/xine-lib] improve configure patch
atler
atler at pld-linux.org
Sun Feb 16 22:30:21 CET 2025
commit 48f54f32bce385430e7245cf6a938f7cb893f120
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Feb 16 22:26:38 2025 +0100
improve configure patch
configure.patch | 43 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 36 insertions(+), 7 deletions(-)
---
diff --git a/configure.patch b/configure.patch
index 854497d..ebc39af 100644
--- a/configure.patch
+++ b/configure.patch
@@ -1,26 +1,55 @@
--- 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 @@
++++ xine-lib-1.2.13/m4/video_out.m4 2025-02-16 20:28:29.923800963 +0100
+@@ -496,9 +496,17 @@
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],
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
++#include <stdlib.h>
++#include <X11/Xlib.h>
++#include <X11/extensions/vldXvMC.h>
++]], [[XvMCPutSlice(NULL,NULL,NULL,0)]])], [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()]])],
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
++#include <stdlib.h>
++#include <X11/Xlib.h>
++#include <X11/extensions/vldXvMC.h>
++]], [[XvMCPutSlice(NULL,NULL,NULL,0)]])],
[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 @@
+@@ -506,9 +514,17 @@
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],
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
++#include <stdlib.h>
++#include <X11/Xlib.h>
++#include <X11/extensions/XvMClib.h>
++]], [[XvMCCreateContext(NULL,0,0,0,0,0,NULL)]])], [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()]])],
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
++#include <stdlib.h>
++#include <X11/Xlib.h>
++#include <X11/extensions/XvMClib.h>
++]], [[XvMCCreateContext(NULL,0,0,0,0,0,NULL)]])],
[have_xxmc=yes XXMC_LIBS="$XXMC_LIBS -lXvMC"])])
fi
if test x"$have_xxmc" = x"yes"; then
+@@ -521,7 +537,11 @@
+ AC_MSG_CHECKING([whether to enable the xvmc plugin])
+ AC_MSG_RESULT([])
+ LIBS="$XVMC_LIBS $X_LIBS $XV_LIBS $LIBS"
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCCreateContext()]])], [have_xvmc=yes],
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
++#include <stdlib.h>
++#include <X11/Xlib.h>
++#include <X11/extensions/XvMClib.h>
++]], [[XvMCCreateContext(NULL,0,0,0,0,0,NULL)]])], [have_xvmc=yes],
+ [LIBS="$XVMC_LIBS -lXvMC $X_LIBS $XV_LIBS $LIBS $DYNAMIC_LD_LIBS"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[XvMCCreateContext()]])],
+ [have_xvmc=yes XVMC_LIBS="$XVMC_LIBS -lXvMC"])])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xine-lib.git/commitdiff/48f54f32bce385430e7245cf6a938f7cb893f120
More information about the pld-cvs-commit
mailing list