[weasel-commit] Source: libgii=1.0.2-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sat, 16 Jan 2010 08:09:49 -0500

================================
libgii:source=1.0.2-1
cvc rdiff libgii -1 /weasel.rpath.org@wgl:3-devel/1.0.2-1
================================
1.0.2-1 Filip Brcic (brcha@xxxxxxx) Sat Jan 16 08:09:37 2010
    libgii 1.0.2

libgii-1.0.2.src.tar.bz2: new
libgii-1.0.2-libtool_1.5_compat.patch: new
--- /dev/null
+++ libgii-1.0.2-libtool_1.5_compat.patch
@@ -0,0 +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 ========================================================================

libgii.recipe: new
--- /dev/null
+++ libgii.recipe
@@ -0,0 +50 @@
+#
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Libgii(AutoPackageRecipe):
+    name = 'libgii'
+    version = '1.0.2'
+
+    buildRequires = [
+        'autoconf:runtime', 'automake:runtime', 'libICE:devel',
+        'libX11:devel', 'libXext:devel', 'libXxf86dga:devel',
+        'libtool:runtime', 'xf86dgaproto:devel',
+        ]
+
+    shortDesc  = 'General Input Interface library'
+    longDesc   = """
+LibGII is intended to be to input what our LibGGI library is to
+graphics.  The goal of LibGII is to provide a single easy to use, but
+yet powerful, API for all possible input sources. However we are not
+there yet. The API is far from set in stone yet, and is likely to
+change.  The main purpose of this LibGII release is to accompany our
+LibGGI release, but you're still very welcome to use LibGII as a
+standalone library for your non-LibGGI applications. Also you might be
+interested in the mhub utility found in the demos directory. mhub is a
+mouse event repeater and converter.
+"""
+    url        = 'http://www.ggi-project.org'
+    licenses   = [ 'LGPL-2' ]
+    categories = [ 'Media/Libraries' ]
+
+    def unpack(r):
+        r.addArchive('mirror://sourceforge/ggi/'
+                     '%(name)s-%(version)s.src.tar.bz2')
+
+        for p in [ 'libgii-0.9.0-linux26-headers.patch',
+                   'libgii-1.0.2-configure-cpuid-pic.patch',
+                   'libgii-1.0.2-libtool_1.5_compat.patch',
+                   ]:
+            r.addPatch(p)
+
+        r.Remove('acinclude.m4', 'm4/libtool.m4', 'm4/lt*.m4')
+
+        r.Autoreconf(m4Dir='m4')
+
+    def configure(r):
+        r.Configure(
+            ' --with-x'
+            ' --enable-x'
+            )

libgii-0.9.0-linux26-headers.patch: new
--- /dev/null
+++ libgii-0.9.0-linux26-headers.patch
@@ -0,0 +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)

libgii-1.0.2-configure-cpuid-pic.patch: new
--- /dev/null
+++ libgii-1.0.2-configure-cpuid-pic.patch
@@ -0,0 +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")])


Committed by: brcha

Other related posts: