wok rev 16093

Remove obsolet X input-evtouch, input-microtouch, input-plpevtch
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 16 14:35:33 2014 +0100 (2014-03-16)
parents d716e8d59284
children 1e9ca6f4ca16
files xorg-xf86-input-evtouch/receipt xorg-xf86-input-evtouch/stuff/evtouch.u xorg-xf86-input-microtouch/receipt xorg-xf86-input-microtouch/stuff/microtouch.u xorg-xf86-input-plpevtch/receipt
line diff
     1.1 --- a/xorg-xf86-input-evtouch/receipt	Sun Mar 16 14:14:43 2014 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,40 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="xorg-xf86-input-evtouch"
     1.7 -VERSION="0.8.8"
     1.8 -CATEGORY="x-window"
     1.9 -SHORT_DESC="Xorg server protocol."
    1.10 -MAINTAINER="pankso@slitaz.org"
    1.11 -LICENSE="MIT"
    1.12 -SOURCE="xf86-input-evtouch"
    1.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.14 -WEB_SITE="http://www.x.org/"
    1.15 -WGET_URL="http://www.conan.de/touchscreen/$TARBALL"
    1.16 -
    1.17 -DEPENDS="xorg-server"
    1.18 -BUILD_DEPENDS="xorg-server-dev"
    1.19 -
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -    cd $src
    1.24 -    grep -qs dummy evtouch.c && patch -p1 < $stuff/evtouch.u
    1.25 -    ./configure \
    1.26 -    	--prefix=/usr \
    1.27 -    	--sysconfdir=/etc \
    1.28 -    	--mandir=/usr/share/man \
    1.29 -    	--localstatedir=/var \
    1.30 -    	--with-xorg-module-dir=/usr/lib/X11/modules \
    1.31 -	--enable-evcalibrate \
    1.32 -    	$CONFIGURE_ARGS &&
    1.33 -    make &&
    1.34 -    make DESTDIR=$DESTDIR install
    1.35 -}
    1.36 -
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -    cp -a $install/usr $fs
    1.41 -    rm -f $fs/usr/lib/X11/modules/input/*.la
    1.42 -}
    1.43 -
     2.1 --- a/xorg-xf86-input-evtouch/stuff/evtouch.u	Sun Mar 16 14:14:43 2014 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,178 +0,0 @@
     2.4 -Remove unused variables and code just to make gcc happy
     2.5 -
     2.6 -Index: xserver-xorg-input-evtouch/evtouch.c
     2.7 -===================================================================
     2.8 ---- xserver-xorg-input-evtouch.orig/evtouch.c	2009-01-21 20:06:50.647249439 +0900
     2.9 -+++ xserver-xorg-input-evtouch/evtouch.c	2009-01-21 20:07:39.518253785 +0900
    2.10 -@@ -352,7 +352,6 @@ void EVTouchProcessAbs(EVTouchPrivatePtr
    2.11 - void EVTouchProcessRel(EVTouchPrivatePtr priv)
    2.12 - {
    2.13 -         struct input_event *ev; /* packet being/just read */
    2.14 --        int dummy;
    2.15 - 
    2.16 -         ev = &priv->ev;
    2.17 -         if ( ev->code == REL_X ) {
    2.18 -@@ -745,17 +744,6 @@ EVTouchNewPacket (EVTouchPrivatePtr priv
    2.19 - 
    2.20 - 
    2.21 - 
    2.22 --static unsigned char
    2.23 --EVTouchRead(EVTouchPrivatePtr priv)
    2.24 --{
    2.25 --        unsigned char c;
    2.26 --        XisbBlockDuration (priv->buffer, EV_TIMEOUT);
    2.27 --        c = XisbRead(priv->buffer);
    2.28 --        return (c);
    2.29 --}
    2.30 --
    2.31 --
    2.32 --
    2.33 - static Bool
    2.34 - EVTouchGetPacket (EVTouchPrivatePtr priv)
    2.35 - {
    2.36 -From: Thomas Jaeger <ThJaeger@gmail.com>
    2.37 -Date: Sun, 22 Mar 2009 20:58:58 -0400
    2.38 -Subject: Make calibration work on xserver-1.6
    2.39 -
    2.40 -Stolen from Ubuntu.
    2.41 -
    2.42 -Index: xserver-xorg-input-evtouch/ev_calibrate.c
    2.43 -===================================================================
    2.44 ---- xserver-xorg-input-evtouch.orig/ev_calibrate.c
    2.45 -+++ xserver-xorg-input-evtouch/ev_calibrate.c
    2.46 -@@ -218,7 +218,7 @@
    2.47 -         int cap_style = CapButt;        /* style of the line's edje and */
    2.48 -         int join_style = JoinBevel;        /*  joined lines.                */
    2.49 - 
    2.50 --        int event_mask = ExposureMask | ButtonReleaseMask | PointerMotionMask | KeyPressMask;
    2.51 -+        int event_mask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask | KeyPressMask;
    2.52 - 
    2.53 -         int depth;
    2.54 -         int screen_num;
    2.55 -Index: xserver-xorg-input-evtouch/evtouch.c
    2.56 -===================================================================
    2.57 ---- xserver-xorg-input-evtouch.orig/evtouch.c
    2.58 -+++ xserver-xorg-input-evtouch/evtouch.c
    2.59 -@@ -306,7 +306,7 @@
    2.60 - 	}
    2.61 - 
    2.62 -         if (pos_changed == 1) {
    2.63 --#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 2
    2.64 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 2
    2.65 -                 ConvertProc(priv->local, 0, 2, 
    2.66 -                             priv->raw_x, priv->raw_y,
    2.67 -                             0, 0, 0, 0, 
    2.68 -@@ -369,7 +369,7 @@
    2.69 -                         priv->raw_y = priv->min_y;
    2.70 -         }
    2.71 - 
    2.72 --#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 2
    2.73 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 2
    2.74 -         ConvertProc(priv->local, 0, 2,
    2.75 -                     priv->raw_x, priv->raw_y,
    2.76 -                     0, 0, 0, 0,
    2.77 -Index: xserver-xorg-input-evtouch/evtouch.c
    2.78 -===================================================================
    2.79 ---- xserver-xorg-input-evtouch.orig/evtouch.c
    2.80 -+++ xserver-xorg-input-evtouch/evtouch.c
    2.81 -@@ -30,10 +30,8 @@
    2.82 - 
    2.83 - #define _evdev_touch_C_
    2.84 - 
    2.85 --#include <xf86Version.h>
    2.86 --#if XF86_VERSION_CURRENT >= XF86_VERSION_NUMERIC(3,9,0,0,0)
    2.87 -+#include <xorgVersion.h>
    2.88 - #define XFREE86_V4
    2.89 --#endif
    2.90 - 
    2.91 - /*****************************************************************************
    2.92 -  *        Standard Headers
    2.93 -@@ -74,7 +72,6 @@
    2.94 - #include "xf86_OSproc.h"
    2.95 - #include "xf86Xinput.h"
    2.96 - #include "exevents.h"
    2.97 --#include "xf86OSmouse.h"
    2.98 - #include "randrstr.h"
    2.99 - 
   2.100 - #ifndef NEED_XF86_TYPES
   2.101 -@@ -139,7 +136,7 @@
   2.102 -         "Kenan Esau",
   2.103 -         MODINFOSTRING1,
   2.104 -         MODINFOSTRING2,
   2.105 --        XF86_VERSION_CURRENT,
   2.106 -+        XORG_VERSION_CURRENT,
   2.107 -         0, 8, 8,
   2.108 -         ABI_CLASS_XINPUT,
   2.109 -         ABI_XINPUT_VERSION,
   2.110 -@@ -590,6 +587,10 @@
   2.111 -         EVTouchPrivatePtr priv = (EVTouchPrivatePtr) (local->private);
   2.112 -         unsigned char map[EV_MAX_BUTTONS];
   2.113 -         int i;
   2.114 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
   2.115 -+	Atom btn_label;
   2.116 -+	Atom axis_labels[2] = { 0, 0 };
   2.117 -+#endif
   2.118 - 
   2.119 -         for (i = 0; i < EV_MAX_BUTTONS; i++)
   2.120 -                 map[i] = i;
   2.121 -@@ -628,7 +629,11 @@
   2.122 -         /* 
   2.123 -          * Device reports button press for 5 buttons.
   2.124 -          */
   2.125 --        if (InitButtonClassDeviceStruct (dev, EV_MAX_BUTTONS, map) == FALSE)
   2.126 -+        if (InitButtonClassDeviceStruct (dev, EV_MAX_BUTTONS,
   2.127 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
   2.128 -+					 &btn_label,
   2.129 -+#endif
   2.130 -+					 map) == FALSE)
   2.131 -         {
   2.132 -                 ErrorF("Unable to allocate EVTouch touchscreen ButtonClassDeviceStruct\n");
   2.133 -                 return BadAlloc;
   2.134 -@@ -652,26 +657,43 @@
   2.135 -          * Device reports motions on 2 axes in absolute coordinates.
   2.136 -          * Axes min and max values are reported in raw coordinates.
   2.137 -          */
   2.138 --        if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents,
   2.139 -+        if (InitValuatorClassDeviceStruct(dev, 2,
   2.140 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
   2.141 -+					  axis_labels,
   2.142 -+#endif
   2.143 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
   2.144 -+                                          xf86GetMotionEvents,
   2.145 -+#endif
   2.146 -                                           local->history_size, Absolute) == FALSE)
   2.147 -         {
   2.148 -                 ErrorF ("Unable to allocate EVTouch touchscreen ValuatorClassDeviceStruct\n");
   2.149 -                 return !Success;
   2.150 -         }
   2.151 - 
   2.152 --#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 2
   2.153 --        xf86InitValuatorAxisStruct(dev, 0, 0, priv->screen_width,
   2.154 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 2
   2.155 -+        xf86InitValuatorAxisStruct(dev, 0,
   2.156 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
   2.157 -+				   axis_labels[0],
   2.158 -+#endif
   2.159 -+				   0, priv->screen_width,
   2.160 -                                    1024,
   2.161 -                                    EV_AXIS_MIN_RES /* min_res */ ,
   2.162 -                                    EV_AXIS_MAX_RES /* max_res */ );
   2.163 -         xf86InitValuatorDefaults(dev, 0);
   2.164 --        xf86InitValuatorAxisStruct(dev, 1, 0, priv->screen_height,
   2.165 -+        xf86InitValuatorAxisStruct(dev, 1,
   2.166 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
   2.167 -+				   axis_labels[1],
   2.168 -+#endif
   2.169 -+				   0, priv->screen_height,
   2.170 -                                    1024,
   2.171 -                                    EV_AXIS_MIN_RES /* min_res */ ,
   2.172 -                                    EV_AXIS_MAX_RES /* max_res */ );
   2.173 -         xf86InitValuatorDefaults(dev, 1);
   2.174 - #else
   2.175 - 	xf86InitValuatorAxisStruct(dev, 0, priv->min_x, priv->max_x,
   2.176 -+                                   1024,
   2.177 -+                                   EV_AXIS_MIN_RES /* min_res */ ,
   2.178 -+                                   EV_AXIS_MAX_RES /* max_res */ );
   2.179 -         xf86InitValuatorDefaults(dev, 1);
   2.180 - #endif
   2.181 - 
     3.1 --- a/xorg-xf86-input-microtouch/receipt	Sun Mar 16 14:14:43 2014 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,40 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="xorg-xf86-input-microtouch"
     3.7 -VERSION="1.2.0"
     3.8 -CATEGORY="x-window"
     3.9 -SHORT_DESC="Xorg server protocol."
    3.10 -MAINTAINER="pankso@slitaz.org"
    3.11 -LICENSE="MIT"
    3.12 -SOURCE="xf86-input-microtouch"
    3.13 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    3.14 -WEB_SITE="http://www.x.org/"
    3.15 -WGET_URL="$XORG_MIRROR/driver/$TARBALL"
    3.16 -
    3.17 -DEPENDS="xorg-server"
    3.18 -BUILD_DEPENDS="xorg-server-dev"
    3.19 -
    3.20 -# Rules to configure and make the package.
    3.21 -compile_rules()
    3.22 -{
    3.23 -    cd $src
    3.24 -    grep -qs axis_labels src/microtouch.c || patch -p0 < $stuff/microtouch.u
    3.25 -    ./configure \
    3.26 -    	--prefix=/usr \
    3.27 -    	--sysconfdir=/etc \
    3.28 -    	--mandir=/usr/share/man \
    3.29 -    	--localstatedir=/var \
    3.30 -    	--with-xorg-module-dir=/usr/lib/X11/modules \
    3.31 -    	$CONFIGURE_ARGS &&
    3.32 -    make &&
    3.33 -    make DESTDIR=$DESTDIR install
    3.34 -}
    3.35 -
    3.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.37 -genpkg_rules()
    3.38 -{
    3.39 -	mkdir -p $fs/usr/lib/X11/modules/input/
    3.40 -    cp -a $install/usr/lib/X11/modules/input/*.so \
    3.41 -    	$fs/usr/lib/X11/modules/input/
    3.42 -}
    3.43 -
     4.1 --- a/xorg-xf86-input-microtouch/stuff/microtouch.u	Sun Mar 16 14:14:43 2014 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,63 +0,0 @@
     4.4 ---- src/microtouch.c
     4.5 -+++ src/microtouch.c
     4.6 -@@ -404,6 +404,10 @@
     4.7 - 	MuTPrivatePtr priv = (MuTPrivatePtr) (local->private);
     4.8 - 	unsigned char map[] =
     4.9 - 	{0, 1};
    4.10 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    4.11 -+	Atom btn_label;
    4.12 -+	Atom axis_labels[2] = { 0, 0 };
    4.13 -+#endif
    4.14 - 
    4.15 - 	/* 
    4.16 - 	 * these have to be here instead of in the SetupProc, because when the
    4.17 -@@ -415,7 +419,11 @@
    4.18 - 	/* 
    4.19 - 	 * Device reports button press for 1 button.
    4.20 - 	 */
    4.21 --	if (InitButtonClassDeviceStruct (dev, 1, map) == FALSE)
    4.22 -+	if (InitButtonClassDeviceStruct (dev, 1, 
    4.23 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    4.24 -+					 &btn_label,
    4.25 -+#endif
    4.26 -+					 map) == FALSE)
    4.27 - 	{
    4.28 - 		ErrorF ("Unable to allocate MicroTouch touchscreen ButtonClassDeviceStruct\n");
    4.29 - 		return !Success;
    4.30 -@@ -425,7 +433,13 @@
    4.31 - 	 * Device reports motions on 2 axes in absolute coordinates.
    4.32 - 	 * Axes min and max values are reported in raw coordinates.
    4.33 - 	 */
    4.34 --	if (InitValuatorClassDeviceStruct (dev, 2, xf86GetMotionEvents,
    4.35 -+        if (InitValuatorClassDeviceStruct (dev, 2,
    4.36 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    4.37 -+					  axis_labels,
    4.38 -+#endif
    4.39 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
    4.40 -+                                          xf86GetMotionEvents,
    4.41 -+#endif
    4.42 - 									local->history_size, Absolute) == FALSE)
    4.43 - 	{
    4.44 - 		ErrorF ("Unable to allocate MicroTouch touchscreen ValuatorClassDeviceStruct\n");
    4.45 -@@ -433,11 +447,19 @@
    4.46 - 	}
    4.47 - 	else
    4.48 - 	{
    4.49 --		InitValuatorAxisStruct (dev, 0, priv->min_x, priv->max_x,
    4.50 -+		InitValuatorAxisStruct (dev, 0,
    4.51 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    4.52 -+					axis_labels[0],
    4.53 -+#endif
    4.54 -+					priv->min_x, priv->max_x,
    4.55 - 								9500,
    4.56 - 								0 /* min_res */ ,
    4.57 - 								9500 /* max_res */ );
    4.58 --		InitValuatorAxisStruct (dev, 1, priv->min_y, priv->max_y,
    4.59 -+		InitValuatorAxisStruct (dev, 1,
    4.60 -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    4.61 -+					axis_labels[1],
    4.62 -+#endif
    4.63 -+					priv->min_y, priv->max_y,
    4.64 - 								10500,
    4.65 - 								0 /* min_res */ ,
    4.66 - 								10500 /* max_res */ );
     5.1 --- a/xorg-xf86-input-plpevtch/receipt	Sun Mar 16 14:14:43 2014 +0100
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,39 +0,0 @@
     5.4 -# SliTaz package receipt.
     5.5 -
     5.6 -PACKAGE="xorg-xf86-input-plpevtch"
     5.7 -VERSION="0.5.0"
     5.8 -CATEGORY="x-window"
     5.9 -SHORT_DESC="Xorg server driver for touchscreens."
    5.10 -MAINTAINER="pascal.bellard@slitaz.org"
    5.11 -LICENSE="MIT"
    5.12 -SOURCE="xf86-input-plpevtch"
    5.13 -TARBALL="$SOURCE-$VERSION.tar.gz"
    5.14 -WEB_SITE="http://www.plop.at/en/touchscreen.html"
    5.15 -WGET_URL="http://download.plop.at/files/plpevtch/$TARBALL"
    5.16 -
    5.17 -DEPENDS="xorg-server"
    5.18 -BUILD_DEPENDS="xorg-server-dev"
    5.19 -
    5.20 -# Rules to configure and make the package.
    5.21 -compile_rules()
    5.22 -{
    5.23 -    cd $src
    5.24 -    ./configure \
    5.25 -    	--prefix=/usr \
    5.26 -    	--sysconfdir=/etc \
    5.27 -    	--mandir=/usr/share/man \
    5.28 -    	--localstatedir=/var \
    5.29 -    	--with-xorg-module-dir=/usr/lib/X11/modules \
    5.30 -    	$CONFIGURE_ARGS &&
    5.31 -    make &&
    5.32 -    make DESTDIR=$DESTDIR install
    5.33 -}
    5.34 -
    5.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.36 -genpkg_rules()
    5.37 -{
    5.38 -	mkdir -p $fs/usr/lib/X11/modules/input/
    5.39 -	cp -a $install/usr/lib/X11/modules/input/*.so \
    5.40 -		$fs/usr/lib/X11/modules/input/
    5.41 -}
    5.42 -