Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xorg74.git;a=commitdiff;h=f04306f6fb070109ac0836b6b4fcb54bf1cc3363

commit f04306f6fb070109ac0836b6b4fcb54bf1cc3363
Author: Krisztian VASAS <[email protected]>
Date:   Thu Jan 1 23:53:41 2009 +0100

xf86-input-tek4957-1.2.0-1-i686
- version bump
- added compile fixes

diff --git a/source/x11/xf86-input-tek4957/01-fix_xinput_abi_version.patch1 
b/source/x11/xf86-input-tek4957/01-fix_xinput_abi_version.patch1
new file mode 100644
index 0000000..4afd98c
--- /dev/null
+++ b/source/x11/xf86-input-tek4957/01-fix_xinput_abi_version.patch1
@@ -0,0 +1,16 @@
+diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c
+index 5877269..de9ee83 100644
+--- a/src/xf86Tek4957.c
++++ b/src/xf86Tek4957.c
+@@ -446,7 +446,10 @@ TekProc(DeviceIntPtr pDev, int what)
+               return !Success;
+           }
+
+-          if (InitValuatorClassDeviceStruct(pDev,2,xf86GetMotionEvents,
++          if (InitValuatorClassDeviceStruct(pDev,2,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
++                      xf86GetMotionEvents,
++#endif
+                  local->history_size,Absolute)== FALSE) {
+               xf86Msg(X_ERROR,"Tek4957:Unable to allocate Valuator class 
device\n");
+               return !Success;
diff --git 
a/source/x11/xf86-input-tek4957/02-dont_use_deprecated_calls_for_newer_xinput_abi.patch1
 
b/source/x11/xf86-input-tek4957/02-dont_use_deprecated_calls_for_newer_xinput_abi.patch1
new file mode 100644
index 0000000..66aa72e
--- /dev/null
+++ 
b/source/x11/xf86-input-tek4957/02-dont_use_deprecated_calls_for_newer_xinput_abi.patch1
@@ -0,0 +1,16 @@
+diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c
+index de9ee83..110de77 100644
+--- a/src/xf86Tek4957.c
++++ b/src/xf86Tek4957.c
+@@ -152,7 +152,11 @@ TekConvert(LocalDevicePtr local,
+
+     /* Gets current screen size. It can change dynamically in the case of
+     a multi-head configuration with different screen sizes ... */
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
+     SP=miPointerCurrentScreen();
++#else
++    SP=miPointerGetScreen(local->dev);
++#endif
+     W=SP->width;
+     H=SP->height;
+
diff --git a/source/x11/xf86-input-tek4957/FrugalBuild 
b/source/x11/xf86-input-tek4957/FrugalBuild
index 112bbe9..ce23ee5 100644
--- a/source/x11/xf86-input-tek4957/FrugalBuild
+++ b/source/x11/xf86-input-tek4957/FrugalBuild
@@ -2,8 +2,13 @@
# Maintainer: Christian Hamar alias krix <[email protected]>

pkgname=xf86-input-tek4957
-pkgver=1.1.0
-pkgrel=3
+pkgver=1.2.0
+pkgrel=1
Finclude xorg
-sha1sums=('3a20a1498e5bb84471ddcf497b6fe92edb310c3e')
+source=(${sour...@]} \
+       '01-fix_xinput_abi_version.patch1' \
+       '02-dont_use_deprecated_calls_for_newer_xinput_abi.patch1')
+sha1sums=('49928f8dea09cff5c401ee5b89c8dde30d206064' \
+          '0d37235d1528eeb9e44d0966af44c0098cfbe254' \
+          '8f6316a8a2ee028ef6813b27f771a6ae7092b798')
# optimization OK
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to