pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/xine-lib xine-lib: Restore dummy patch.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71cbef955c44
branches:  trunk
changeset: 389213:71cbef955c44
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Dec 02 15:06:22 2022 +0000

description:
xine-lib: Restore dummy patch.

While here remove obsolete patches, including disabling MMX on SunOS, as it
appears to work fine now.

diffstat:

 multimedia/xine-lib/Makefile                              |   4 +-
 multimedia/xine-lib/Makefile.common                       |   7 +---
 multimedia/xine-lib/distinfo                              |  11 +++----
 multimedia/xine-lib/patches/patch-ag                      |  16 ++++++++--
 multimedia/xine-lib/patches/patch-fa                      |  14 ---------
 multimedia/xine-lib/patches/patch-src-post-planar-eq.c    |  22 +--------------
 multimedia/xine-lib/patches/patch-src-post-planar-noise.c |  22 +--------------
 multimedia/xine-lib/patches/patch-src_video__dec_dav1d.c  |   6 ++--
 8 files changed, 27 insertions(+), 75 deletions(-)

diffs (212 lines):

diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/Makefile
--- a/multimedia/xine-lib/Makefile      Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/Makefile      Fri Dec 02 15:06:22 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.188 2022/11/23 16:20:48 adam Exp $
+# $NetBSD: Makefile,v 1.189 2022/12/02 15:06:22 jperkin Exp $
 
 PKGREVISION= 11
 .include "Makefile.common"
@@ -46,7 +46,7 @@
 .  endif
 .endif
 
-CPPFLAGS.SunOS+=       -D__u32=uint32_t -DHAVE_SYSI86 -DHAVE_MMX_FALSE
+CPPFLAGS.SunOS+=       -D__u32=uint32_t -DHAVE_SYSI86
 LDFLAGS.SunOS+=                -lresolv
 
 # xv video output seems to be broken. Make sure another gets used instead.
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/Makefile.common
--- a/multimedia/xine-lib/Makefile.common       Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/Makefile.common       Fri Dec 02 15:06:22 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.94 2022/10/09 07:45:00 wiz Exp $
+# $NetBSD: Makefile.common,v 1.95 2022/12/02 15:06:22 jperkin Exp $
 #
 # used by audio/xine-alsa/Makefile
 # used by audio/xine-pulse/Makefile
@@ -45,10 +45,7 @@
 
 pre-configure:
        ${TOUCH} ${WRKSRC}/lib/dummy.c
-       cd ${WRKSRC} && aclocal -I m4
-       cd ${WRKSRC} && automake -Wnone
-       cd ${WRKSRC} && autoheader
-       cd ${WRKSRC} && autoconf
+       cd ${WRKSRC} && autoreconf -fiv
 
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../fonts/fontconfig/buildlink3.mk"
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/distinfo
--- a/multimedia/xine-lib/distinfo      Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/distinfo      Fri Dec 02 15:06:22 2022 +0000
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.119 2022/04/10 16:47:32 nia Exp $
+$NetBSD: distinfo,v 1.120 2022/12/02 15:06:22 jperkin Exp $
 
 BLAKE2s (xine-lib-1.2.12.tar.xz) = 6576144af35552e4c9144ab7981520f014ce78ad790e61e1fb526ec15bc8f283
 SHA512 (xine-lib-1.2.12.tar.xz) = cdc913d0c78a3a34bd6e4060040fd844f22dbc673330e30769c83e9682a46f3369af8f59bd0c759ddc601de979b13d53e7ed10c54f3b78bdc63afceb484826be
 Size (xine-lib-1.2.12.tar.xz) = 5341212 bytes
-SHA1 (patch-ag) = ef924c08b4d1d0dbc48f619d69b608c9d0def9fe
+SHA1 (patch-ag) = 82b9464f57f93e84be1d9cf60315a9b3e1cd3812
 SHA1 (patch-contrib_libxdg-basedir_basedir.c) = 8dd88fd712853e58363148023be6ef0906486206
-SHA1 (patch-fa) = 9312a3bab4ae8482a208948277f1d11fb7eaaf8c
 SHA1 (patch-include_xine_attributes.h) = e7cb5f50d95a2523e2de83250fe11a12f0126a7f
 SHA1 (patch-include_xine_post.h) = 3ada327a7f171bdf680074b30f005099011a201c
 SHA1 (patch-include_xine_xineutils.h) = d59b517c966eb3f7935ab704525ed9e510d8bc17
@@ -18,14 +17,14 @@
 SHA1 (patch-src-post-mosaico-switch.c) = ff46e13acfbcaf0167943b536b12cb95ec7591d4
 SHA1 (patch-src-post-planar-boxblur.c) = 191ce5819fce39a247adaefe07e3302870c3d1c3
 SHA1 (patch-src-post-planar-denoise3d.c) = e140ff0b7867fd850099ff073f67201b4649dcad
-SHA1 (patch-src-post-planar-eq.c) = 9ad80656f4a9c21651d889c3a5b5c709e5ecea83
+SHA1 (patch-src-post-planar-eq.c) = 938983f4bb7c0f9db1befed3d4d2da8bfba8360b
 SHA1 (patch-src-post-planar-eq2.c) = 7711ea2c3b8ede9adf9b54f7b95f4458ffed852b
 SHA1 (patch-src-post-planar-expand.c) = 9d9ec1f5619f9a3d832bcace54d23011371f2067
-SHA1 (patch-src-post-planar-noise.c) = db5ba28ae527995084ce3ad65c52867209d4b13f
+SHA1 (patch-src-post-planar-noise.c) = 284ed49ae621f18c62f91420230aa8e109f77541
 SHA1 (patch-src-post-planar-pp.c) = f5bea421785132c5f1422ae9f0d468974fb0ae5d
 SHA1 (patch-src-post-planar-unsharp.c) = 9f29c624f96a91760df960343096247d8c09c58d
 SHA1 (patch-src_input_input__http.c) = 80de20be0f99efa5cb67230c900acbf6e4ee9e7c
 SHA1 (patch-src_input_input__pvr.c) = b6429e9a7c9309cbe9eb1bf5f50ab6b6c06d5b0c
-SHA1 (patch-src_video__dec_dav1d.c) = b2228106e3eecb6d1695038fead0e5d9f5b4746a
+SHA1 (patch-src_video__dec_dav1d.c) = 26fabb94cc83a74057fc2082bb4dfb299c3452ef
 SHA1 (patch-src_video__out_Makefile.am) = 623e41b3f142426c5128c6c61c6ebefee170734e
 SHA1 (patch-src_video__out_macosx_Makefile.am) = 8350a75e3a4c0b2f684e07dcc18259fcc5b28115
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/patches/patch-ag
--- a/multimedia/xine-lib/patches/patch-ag      Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/patches/patch-ag      Fri Dec 02 15:06:22 2022 +0000
@@ -1,8 +1,10 @@
-$NetBSD: patch-ag,v 1.30 2018/11/13 11:10:41 markd Exp $
+$NetBSD: patch-ag,v 1.31 2022/12/02 15:06:22 jperkin Exp $
+
+Ensure lib contains symbols.
 
---- configure.ac.orig  2018-01-11 12:49:46.000000000 +0000
+--- configure.ac.orig  2022-03-06 16:31:23.000000000 +0000
 +++ configure.ac
-@@ -468,7 +468,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
+@@ -473,7 +473,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
  CC_ATTRIBUTE_ALIGNED
  
  CC_ATTRIBUTE_VISIBILITY([protected],
@@ -12,3 +14,11 @@
                          [CC_ATTRIBUTE_VISIBILITY([default], [visibility_export="default"])])
  CC_ATTRIBUTE_VISIBILITY([internal])
  
+@@ -1187,6 +1188,7 @@ AC_CHECK_FUNCS([strncasecmp _strnicmp],
+ 
+ AC_FUNC_FSEEKO
+ 
++AC_LIBOBJ(dummy)
+ AC_REPLACE_FUNCS([asprintf basename gettimeofday setenv strcasestr strlcat strlcpy strndup strpbrk strsep strtok_r swab timegm unsetenv memmem])
+ 
+ AC_LIBSOURCE([hstrerror.c])
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/patches/patch-fa
--- a/multimedia/xine-lib/patches/patch-fa      Fri Dec 02 14:50:45 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-fa,v 1.2 2008/06/21 15:45:16 drochner Exp $
-
---- m4/pthreads.m4.orig        2008-06-15 01:15:00.000000000 +0200
-+++ m4/pthreads.m4
-@@ -43,6 +43,9 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
-      fi
-   fi
- 
-+dnl compensate for pkgsrc pthread.bl3 smartness
-+  PTHREAD_LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
-+
-   AC_CACHE_CHECK([if $CC supports Pthread],
-     AS_TR_SH([cc_cv_pthreads]),
-     [ac_save_CFLAGS="$CFLAGS"
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/patches/patch-src-post-planar-eq.c
--- a/multimedia/xine-lib/patches/patch-src-post-planar-eq.c    Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/patches/patch-src-post-planar-eq.c    Fri Dec 02 15:06:22 2022 +0000
@@ -1,20 +1,9 @@
-$NetBSD: patch-src-post-planar-eq.c,v 1.5 2020/04/02 15:52:46 nia Exp $
+$NetBSD: patch-src-post-planar-eq.c,v 1.6 2022/12/02 15:06:22 jperkin Exp $
 
 https://bugs.xine-project.org/show_bug.cgi?id=524
 
-Disable MMX sections on SunOS.
-
 --- src/post/planar/eq.c.orig  2019-12-13 20:47:50.000000000 +0000
 +++ src/post/planar/eq.c
-@@ -33,7 +33,7 @@
- #include <pthread.h>
- 
- 
--#if defined(ARCH_X86)
-+#if defined(ARCH_X86) && !defined(__sun)
- 
- #if defined(ARCH_X86_64)
- #  define MEM1(reg) "(%"reg")"
 @@ -155,9 +155,11 @@ typedef struct eq_parameters_s {
   * description of params struct
   */
@@ -29,12 +18,3 @@
              "contrast" )
  END_PARAM_DESCR( param_descr )
  
-@@ -360,7 +362,7 @@ static post_plugin_t *eq_open_plugin(pos
-   (void)audio_target;
- 
-   process = process_C;
--#if defined(ARCH_X86)
-+#if defined(ARCH_X86) && !defined(__sun)
-   if( xine_mm_accel() & MM_ACCEL_X86_MMX )
-     process = process_MMX;
- #endif
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/patches/patch-src-post-planar-noise.c
--- a/multimedia/xine-lib/patches/patch-src-post-planar-noise.c Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/patches/patch-src-post-planar-noise.c Fri Dec 02 15:06:22 2022 +0000
@@ -1,9 +1,7 @@
-$NetBSD: patch-src-post-planar-noise.c,v 1.6 2020/04/02 15:52:46 nia Exp $
+$NetBSD: patch-src-post-planar-noise.c,v 1.7 2022/12/02 15:06:22 jperkin Exp $
 
 https://bugs.xine-project.org/show_bug.cgi?id=524
 
-Disable MMX sections on SunOS.
-
 --- src/post/planar/noise.c.orig       2019-12-13 20:47:50.000000000 +0000
 +++ src/post/planar/noise.c
 @@ -220,15 +220,20 @@ static const char *const enum_quality[] 
@@ -32,21 +30,3 @@
      "Mix random noise with a (semi)regular pattern" )
  END_PARAM_DESCR( param_descr )
  
-@@ -372,7 +377,7 @@ static int noise_draw(vo_frame_t *frame,
-               frame->width * 2, frame->height, &this->params[0]);
-     }
- 
--#ifdef ARCH_X86
-+#if defined(ARCH_X86) && !defined(__sun)
-     if (xine_mm_accel() & MM_ACCEL_X86_MMX)
-         __asm__ __volatile__ ("emms\n\t");
-     if (xine_mm_accel() & MM_ACCEL_X86_MMXEXT)
-@@ -447,7 +452,7 @@ static post_plugin_t *noise_open_plugin(
- 
-     this->params[0].lineNoise = lineNoise_C;
-     this->params[0].lineNoiseAvg = lineNoiseAvg_C;
--#ifdef ARCH_X86
-+#if defined(ARCH_X86) && !defined(__sun)
-     if (xine_mm_accel() & MM_ACCEL_X86_MMX) {
-         this->params[0].lineNoise = lineNoise_MMX;
-         this->params[0].lineNoiseAvg = lineNoiseAvg_MMX;
diff -r 4635276d8286 -r 71cbef955c44 multimedia/xine-lib/patches/patch-src_video__dec_dav1d.c
--- a/multimedia/xine-lib/patches/patch-src_video__dec_dav1d.c  Fri Dec 02 14:50:45 2022 +0000
+++ b/multimedia/xine-lib/patches/patch-src_video__dec_dav1d.c  Fri Dec 02 15:06:22 2022 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_video__dec_dav1d.c,v 1.1 2022/04/03 14:32:31 wiz Exp $
+$NetBSD: patch-src_video__dec_dav1d.c,v 1.2 2022/12/02 15:06:22 jperkin Exp $
 
 dav1d 1.0.0 compatibility from upstream.
 
---- src/video_dec/dav1d.c.orig 2020-11-19 10:30:37.000000000 +0000
+--- src/video_dec/dav1d.c.orig 2022-03-06 16:31:24.000000000 +0000
 +++ src/video_dec/dav1d.c
-@@ -537,11 +544,17 @@ static video_decoder_t *_open_plugin(vid
+@@ -544,11 +544,17 @@ static video_decoder_t *_open_plugin(vid
  
    /* multithreading */
    ncpu = xine_cpu_count();



Home | Main Index | Thread Index | Old Index