summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-03-21 11:19:48 +0100
committertnut <thierryn1 at hispeed dot ch>2010-03-21 11:19:48 +0100
commit3181c35ffadc215b97229784c9530805f86476c7 (patch)
tree0f3339d310737942a4da1d7d63f084f45b3104df
parent44a07f1d935ba543e85a18508831e7e285a42f83 (diff)
downloadnutyx-pakxe-3181c35ffadc215b97229784c9530805f86476c7.tar.gz
nutyx-pakxe-3181c35ffadc215b97229784c9530805f86476c7.tar.bz2
nutyx-pakxe-3181c35ffadc215b97229784c9530805f86476c7.tar.xz
nutyx-pakxe-3181c35ffadc215b97229784c9530805f86476c7.zip
Ajout de xorg-xf86-input-fpit#1.3.0-3
-rw-r--r--xorg/xorg-xf86-input-fpit/.footprint (renamed from test/xorg-xf86-input-fpit/.footprint)0
-rw-r--r--xorg/xorg-xf86-input-fpit/.md5sum (renamed from test/xorg-xf86-input-fpit/.md5sum)1
-rw-r--r--xorg/xorg-xf86-input-fpit/Pkgfile (renamed from test/xorg-xf86-input-fpit/Pkgfile)7
-rw-r--r--xorg/xorg-xf86-input-fpit/fpit-1.3.0-abi.patch95
4 files changed, 100 insertions, 3 deletions
diff --git a/test/xorg-xf86-input-fpit/.footprint b/xorg/xorg-xf86-input-fpit/.footprint
index 3987d099a..3987d099a 100644
--- a/test/xorg-xf86-input-fpit/.footprint
+++ b/xorg/xorg-xf86-input-fpit/.footprint
diff --git a/test/xorg-xf86-input-fpit/.md5sum b/xorg/xorg-xf86-input-fpit/.md5sum
index e58572d1b..01512000c 100644
--- a/test/xorg-xf86-input-fpit/.md5sum
+++ b/xorg/xorg-xf86-input-fpit/.md5sum
@@ -1 +1,2 @@
+9d8f1033924deb04edc1775bc82440f3 fpit-1.3.0-abi.patch
e5bfda480f25121e3c4222e5e1eb5880 xf86-input-fpit-1.3.0.tar.bz2
diff --git a/test/xorg-xf86-input-fpit/Pkgfile b/xorg/xorg-xf86-input-fpit/Pkgfile
index 7cbe90a34..3dc1b78f9 100644
--- a/test/xorg-xf86-input-fpit/Pkgfile
+++ b/xorg/xorg-xf86-input-fpit/Pkgfile
@@ -6,12 +6,13 @@
name=xorg-xf86-input-fpit
version=1.3.0
-release=2
-source=(http://xorg.freedesktop.org/releases/individual/driver/xf86-input-fpit-$version.tar.bz2)
+release=3
+source=(http://xorg.freedesktop.org/releases/individual/driver/xf86-input-fpit-$version.tar.bz2 \
+ fpit-1.3.0-abi.patch)
build() {
cd xf86-input-fpit-$version
-
+ patch -Np1 -i ../fpit-1.3.0-abi.patch
./configure --prefix=/usr
make
diff --git a/xorg/xorg-xf86-input-fpit/fpit-1.3.0-abi.patch b/xorg/xorg-xf86-input-fpit/fpit-1.3.0-abi.patch
new file mode 100644
index 000000000..a9864e20a
--- /dev/null
+++ b/xorg/xorg-xf86-input-fpit/fpit-1.3.0-abi.patch
@@ -0,0 +1,95 @@
+From 7d203627e7e3e7a6f8d0e847ed650b0b89760c09 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Fri, 17 Jul 2009 14:38:31 +1000
+Subject: [PATCH] Cope with XINPUT ABI 7.
+
+---
+ src/xf86Fpit.c | 40 +++++++++++++++++++++++++++++++++++-----
+ 1 files changed, 35 insertions(+), 5 deletions(-)
+
+diff --git a/src/xf86Fpit.c b/src/xf86Fpit.c
+index 528ebb9..f40c6a9 100644
+--- a/src/xf86Fpit.c
++++ b/src/xf86Fpit.c
+@@ -188,6 +188,9 @@ static void xf86FpitSetUpAxes(DeviceIntPtr dev, FpitPrivatePtr priv)
+ * screen to fit one meter.
+ */
+ int quarter_turns;
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ Atom axis_labels[2] = { 0, 0 };
++#endif
+
+ priv->screen_width = screenInfo.screens[priv->screen_no]->width;
+ priv->screen_height = screenInfo.screens[priv->screen_no]->height;
+@@ -212,14 +215,30 @@ static void xf86FpitSetUpAxes(DeviceIntPtr dev, FpitPrivatePtr priv)
+ }
+
+ if (priv->fpitTotalOrientation & FPIT_THEN_SWAP_XY) {
+- InitValuatorAxisStruct(dev, 1, priv->fpitMinX, priv->fpitMaxX, 9500, 0 /* min_res */ ,
++ InitValuatorAxisStruct(dev, 1,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ axis_labels[1],
++#endif
++ priv->fpitMinX, priv->fpitMaxX, 9500, 0 /* min_res */ ,
+ 9500 /* max_res */ );
+- InitValuatorAxisStruct(dev, 0, priv->fpitMinY, priv->fpitMaxY, 10500, 0 /* min_res */ ,
++ InitValuatorAxisStruct(dev, 0,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ axis_labels[0],
++#endif
++ priv->fpitMinY, priv->fpitMaxY, 10500, 0 /* min_res */ ,
+ 10500 /* max_res */ );
+ } else {
+- InitValuatorAxisStruct(dev, 0, priv->fpitMinX, priv->fpitMaxX, 9500, 0 /* min_res */ ,
++ InitValuatorAxisStruct(dev, 0,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ axis_labels[0],
++#endif
++ priv->fpitMinY, priv->fpitMaxY, 9500, 0 /* min_res */ ,
+ 9500 /* max_res */ );
+- InitValuatorAxisStruct(dev, 1, priv->fpitMinY, priv->fpitMaxY, 10500, 0 /* min_res */ ,
++ InitValuatorAxisStruct(dev, 1,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ axis_labels[1],
++#endif
++ priv->fpitMinY, priv->fpitMaxY, 10500, 0 /* min_res */ ,
+ 10500 /* max_res */ );
+ }
+ }
+@@ -408,6 +427,10 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
+ unsigned char map[] = {
+ 0, 1, 2, 3 /* DMC: changed this so we can use all three buttons */
+ };
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ Atom btn_labels[3] = { 0 };
++ Atom axis_labels[2] = { 0, 0 };
++#endif
+
+
+ switch (mode) {
+@@ -420,7 +443,11 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
+ /*
+ * Device reports button press for up to 3 buttons.
+ */
+- if (InitButtonClassDeviceStruct(dev, 3, map) == FALSE) {
++ if (InitButtonClassDeviceStruct(dev, 3,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ btn_labels,
++#endif
++ map) == FALSE) {
+ ErrorF("Unable to allocate Fpit touchscreen ButtonClassDeviceStruct\n");
+ return !Success;
+ }
+@@ -435,6 +462,9 @@ static Bool xf86FpitControl(DeviceIntPtr dev, int mode)
+ }
+
+ if (InitValuatorClassDeviceStruct(dev, 2,
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
++ axis_labels,
++#endif
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+ #endif
+--
+1.6.3.rc1.2.g0164.dirty
+