summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libgii/files')
-rw-r--r--media-libs/libgii/files/libgii-0.9.0-linux26-headers.patch12
-rw-r--r--media-libs/libgii/files/libgii-1.0.2-configure-cpuid-pic.patch13
-rw-r--r--media-libs/libgii/files/libgii-1.0.2-libtool_1.5_compat.patch19
3 files changed, 44 insertions, 0 deletions
diff --git a/media-libs/libgii/files/libgii-0.9.0-linux26-headers.patch b/media-libs/libgii/files/libgii-0.9.0-linux26-headers.patch
new file mode 100644
index 000000000000..ff77c33c4e9e
--- /dev/null
+++ b/media-libs/libgii/files/libgii-0.9.0-linux26-headers.patch
@@ -0,0 +1,12 @@
+--- input/linux_kbd/linkey.c~ 2002-02-23 06:51:05.000000000 +0900
++++ input/linux_kbd/linkey.c 2005-03-28 12:05:43.000000000 +0900
+@@ -25,8 +25,8 @@
+ ******************************************************************************
+ */
+ #include "config.h"
+-#include "linkey.h"
+ #include <ctype.h>
++#include "linkey.h"
+
+ static uint32 basic_trans(int sym, int islabel, uint32 *modifiers,
+ uint32 label, int keycode)
diff --git a/media-libs/libgii/files/libgii-1.0.2-configure-cpuid-pic.patch b/media-libs/libgii/files/libgii-1.0.2-configure-cpuid-pic.patch
new file mode 100644
index 000000000000..5c014a479745
--- /dev/null
+++ b/media-libs/libgii/files/libgii-1.0.2-configure-cpuid-pic.patch
@@ -0,0 +1,13 @@
+dont clobber ebx as that is the pic register and it doesnt work in many cases
+
+--- libgii-1.0.2/m4/swar.m4
++++ libgii-1.0.2/m4/swar.m4
+@@ -8069,7 +8069,7 @@
+ #ifdef _MSC_VER
+ __asm cpuid
+ #else
+- asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in));
++ asm("pushl %%ebx; cpuid; movl %%ebx,%2; popl %%ebx": "=a" (a), "=r" (b), "=c" (c), "=d" (d) : "a" (in));
+ #endif
+ return d;],
+ ggi_cv_cc_can_cpuid="yes", ggi_cv_cc_can_cpuid="no")])
diff --git a/media-libs/libgii/files/libgii-1.0.2-libtool_1.5_compat.patch b/media-libs/libgii/files/libgii-1.0.2-libtool_1.5_compat.patch
new file mode 100644
index 000000000000..851216540b47
--- /dev/null
+++ b/media-libs/libgii/files/libgii-1.0.2-libtool_1.5_compat.patch
@@ -0,0 +1,19 @@
+--- configure.in 2007-01-16 14:52:56.000000000 -0500
++++ configure.in.new 2008-06-10 15:40:14.000000000 -0400
+@@ -12,7 +12,7 @@
+ AM_INIT_AUTOMAKE([libgii],[1.0.2],[-])
+
+ AM_MAINTAINER_MODE
+-
++AC_PROG_LIBTOOL
+
+ AC_CANONICAL_BUILD
+ AC_CANONICAL_HOST
+@@ -100,7 +100,6 @@
+ dnl Make Objective-C work with automake >= 1.7.x
+ AM_CONDITIONAL([am__fastdepOBJC], false)
+
+-LT_INIT([win32-dll])
+
+
+ dnl ========================================================================