pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/gxine Added some patches for ISO C90 compli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aefb3e7bac9f
branches:  trunk
changeset: 492466:aefb3e7bac9f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Apr 13 16:39:32 2005 +0000

description:
Added some patches for ISO C90 compliance, for NetBSD-1.6.2, and for
gcc-2.95. Approved by jlam.

diffstat:

 multimedia/gxine/Makefile         |   4 +-
 multimedia/gxine/distinfo         |   7 +++-
 multimedia/gxine/patches/patch-ag |  15 +++++++++
 multimedia/gxine/patches/patch-ah |  14 ++++++++
 multimedia/gxine/patches/patch-ai |  63 +++++++++++++++++++++++++++++++++++++++
 multimedia/gxine/patches/patch-aj |  15 +++++++++
 multimedia/gxine/patches/patch-ak |  22 +++++++++++++
 7 files changed, 138 insertions(+), 2 deletions(-)

diffs (185 lines):

diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/Makefile
--- a/multimedia/gxine/Makefile Wed Apr 13 16:36:07 2005 +0000
+++ b/multimedia/gxine/Makefile Wed Apr 13 16:39:32 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/04/11 21:46:41 tv Exp $
+# $NetBSD: Makefile,v 1.9 2005/04/13 16:39:32 rillig Exp $
 #
 
 DISTNAME=              gxine-0.4.1
@@ -13,6 +13,8 @@
 USE_LIBTOOL=           YES
 USE_X11=               YES
 
+PTHREAD_OPTS+=         require
+
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../multimedia/xine-lib/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/distinfo
--- a/multimedia/gxine/distinfo Wed Apr 13 16:36:07 2005 +0000
+++ b/multimedia/gxine/distinfo Wed Apr 13 16:39:32 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 11:24:02 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/04/13 16:39:32 rillig Exp $
 
 SHA1 (gxine-0.4.1.tar.gz) = af8f758c0ce8b1c0917c9e02567d5479807aaec8
 RMD160 (gxine-0.4.1.tar.gz) = 71e86f371ee4d4a65b10efd62972be67bb160add
@@ -6,3 +6,8 @@
 SHA1 (patch-ab) = 581122a87dd3ea1a61b434ba721866efd3455ab6
 SHA1 (patch-ac) = 9b61e2b986659c238308dcc670f3de27918919bc
 SHA1 (patch-af) = 0bf58de7d5d3a50731d30623bc76732e8d2f771f
+SHA1 (patch-ag) = 4c04a21a1fdb56c48384b3883ffb2692d5ac2abd
+SHA1 (patch-ah) = 46e1e60573d33deac2d0c8f5f5c901edb2ef5f27
+SHA1 (patch-ai) = f9c5ea86cad2de731304b6ffb96530aaf4161e86
+SHA1 (patch-aj) = 0a9efacd2aa90855bf990944c058028af367c24d
+SHA1 (patch-ak) = a7b01fc2e33414669c5390934d47e96062baabd0
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gxine/patches/patch-ag Wed Apr 13 16:39:32 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1 2005/04/13 16:39:32 rillig Exp $
+
+Needed for gcc-2.95.
+
+--- src/defs.h.orig    Fri Nov  5 22:43:39 2004
++++ src/defs.h Tue Apr 12 12:48:59 2005
+@@ -26,7 +26,7 @@
+ 
+ /* debug logging */
+ #ifdef LOG
+-#define logprintf(FMT,...) printf (FMT, ## __VA_ARGS__)
++#define logprintf(FMT,...) printf (FMT , ## __VA_ARGS__)
+ #else
+ #define logprintf(FMT,...)
+ #endif
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gxine/patches/patch-ah Wed Apr 13 16:39:32 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1 2005/04/13 16:39:32 rillig Exp $
+
+Needed for NetBSD-1.6.2.
+
+--- src/globals.h.orig Sat Dec 11 01:40:18 2004
++++ src/globals.h      Tue Apr 12 12:49:30 2005
+@@ -36,6 +36,7 @@
+ #include <gdk/gdk.h>
+ #include <glib.h>
+ #include <xine.h>
++#include <pthread.h>
+ 
+ #include "script_engine.h"
+ #include "infobar.h"
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gxine/patches/patch-ai Wed Apr 13 16:39:32 2005 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-ai,v 1.1 2005/04/13 16:39:32 rillig Exp $
+
+Needed for ISO C90 compliance.
+
+--- src/key_events.c.orig      Fri Dec 17 01:32:59 2004
++++ src/key_events.c   Tue Apr 12 12:58:06 2005
+@@ -605,8 +605,8 @@ void kb_edit_show (void) {
+ 
+ static void do_edit_binding (void)
+ {
+-  editkey = *lookup_binding (&catch_key_iter);
+   char title[64];
++  editkey = *lookup_binding (&catch_key_iter);
+ 
+   gtk_entry_set_text (GTK_ENTRY (kb_binding_desc), editkey.desc);
+   gtk_entry_set_text (GTK_ENTRY (kb_binding_command), editkey.cmd);
+@@ -1056,9 +1056,7 @@ static JSBool js_keybindings_show (JSCon
+ 
+ /* Xine event mapping data */
+ 
+-static const kb_xine_event_map_t xine_input = {
+-  "INPUT",
+-  {
++static const kb_xine_event_id_t xine_input_ids[] = {
+     { "ANGLE_NEXT", XINE_EVENT_INPUT_ANGLE_NEXT },
+     { "ANGLE_PREVIOUS", XINE_EVENT_INPUT_ANGLE_PREVIOUS },
+     { "DOWN", XINE_EVENT_INPUT_DOWN },
+@@ -1099,7 +1097,10 @@ static const kb_xine_event_map_t xine_in
+     { "9", XINE_EVENT_INPUT_NUMBER_9 },
+     { "-", -1 }, /* null event */
+     { "" }
+-  }
++};
++
++static const kb_xine_event_map_t xine_input = {
++  "INPUT", &xine_input_ids
+ };
+ 
+ 
+@@ -1129,10 +1130,7 @@ int kb_xine_event_lookup (const kb_xine_
+   return 0;
+ }
+ 
+-
+-static const kb_xine_event_map_t xine_vdr = {
+-  "VDR",
+-  {
++static const kb_xine_event_id_t xine_vdr_ids[] = {
+     { "BACK", XINE_EVENT_VDR_BACK },
+     { "BLUE", XINE_EVENT_VDR_BLUE },
+     { "CHANNELMINUS", XINE_EVENT_VDR_CHANNELMINUS },
+@@ -1166,7 +1164,10 @@ static const kb_xine_event_map_t xine_vd
+     { "VOLPLUS", XINE_EVENT_VDR_VOLPLUS },
+     { "YELLOW", XINE_EVENT_VDR_YELLOW },
+     { "" }
+-  }
++};
++
++static const kb_xine_event_map_t xine_vdr = {
++  "VDR", &xine_vdr_ids
+ };
+ 
+ static JSBool js_vdr (JSContext *cx, JSObject *obj, uintN argc,
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gxine/patches/patch-aj Wed Apr 13 16:39:32 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aj,v 1.1 2005/04/13 16:39:32 rillig Exp $
+
+Needed for ISO C90 compliance.
+
+--- src/key_events.h.orig      Thu Dec 16 00:59:59 2004
++++ src/key_events.h   Tue Apr 12 12:53:59 2005
+@@ -35,7 +35,7 @@ typedef struct kb_xine_event_id_s kb_xin
+ 
+ struct kb_xine_event_map_s {
+   char prefix[8];
+-  const kb_xine_event_id_t id[];
++  const kb_xine_event_id_t *id;
+ };
+ typedef struct kb_xine_event_map_s kb_xine_event_map_t;
+ 
diff -r c78e0b84404f -r aefb3e7bac9f multimedia/gxine/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gxine/patches/patch-ak Wed Apr 13 16:39:32 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ak,v 1.1 2005/04/13 16:39:32 rillig Exp $
+
+Needed for ISO C90 compliance.
+
+--- src/utils.c.orig   Fri Dec 17 01:33:00 2004
++++ src/utils.c        Tue Apr 12 12:51:05 2005
+@@ -750,6 +750,7 @@ void ui_preferences_register (xine_t *th
+     N_("Top, visible"), N_("Bottom, visible"),
+     NULL
+   };
++  int i;
+ 
+   /* Register the experience level setting */
+   xine_config_register_enum
+@@ -759,7 +760,6 @@ void ui_preferences_register (xine_t *th
+      0, NULL, CONFIG_DATA_NONE);
+ 
+   /* Register a few audio/video config items */
+-  int i;
+   for (i = 0; i < sizeof (ranges) / sizeof (ranges[0]); ++i)
+   {
+     if (ranges[i].setting && !strncmp (ranges[i].setting, "gui.", 4))



Home | Main Index | Thread Index | Old Index