diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2019-06-10 16:31:33 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2019-06-10 16:31:33 +0000 |
commit | e499d181dda524f4a92a247f8c688e0fb2137385 (patch) | |
tree | 85aaa148c640aa0e8d97c36aeca435cafef12da7 /x11-drivers | |
parent | 29a47f995e6303a48edf48f14a2c4d561b7f2635 (diff) | |
download | ports-e499d181dda524f4a92a247f8c688e0fb2137385.tar.gz ports-e499d181dda524f4a92a247f8c688e0fb2137385.zip |
x11-drivers/xf86-input-elographics: Update to 1.4.2
Update x11-drivers/xf86-input-elographics to 1.4.2.
Add LICENSE and LICENSE_FILES.
Local patches came from upstream, and are included in this release. Delete
them. This release is mostly a noop because of this.
Sponsored by: B3 Init
Notes
Notes:
svn path=/head/; revision=503906
Diffstat (limited to 'x11-drivers')
4 files changed, 7 insertions, 112 deletions
diff --git a/x11-drivers/xf86-input-elographics/Makefile b/x11-drivers/xf86-input-elographics/Makefile index 774a7d96ccd1..eee2fcd2c82c 100644 --- a/x11-drivers/xf86-input-elographics/Makefile +++ b/x11-drivers/xf86-input-elographics/Makefile @@ -1,13 +1,15 @@ # $FreeBSD$ PORTNAME= xf86-input-elographics -PORTVERSION= 1.4.1 -PORTREVISION= 8 +PORTVERSION= 1.4.2 CATEGORIES= x11-drivers MAINTAINER= x11@FreeBSD.org COMMENT= X.Org elographics input driver +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + XORG_CAT= driver .include <bsd.port.mk> diff --git a/x11-drivers/xf86-input-elographics/distinfo b/x11-drivers/xf86-input-elographics/distinfo index f726f4466410..4a879f2e0c3c 100644 --- a/x11-drivers/xf86-input-elographics/distinfo +++ b/x11-drivers/xf86-input-elographics/distinfo @@ -1,2 +1,3 @@ -SHA256 (xorg/driver/xf86-input-elographics-1.4.1.tar.bz2) = a21af744d57f158e6dff9d60a68aaac46b8d726d602911940cb61f4d6bb2c6a4 -SIZE (xorg/driver/xf86-input-elographics-1.4.1.tar.bz2) = 280311 +TIMESTAMP = 1560182630 +SHA256 (xorg/driver/xf86-input-elographics-1.4.2.tar.bz2) = 2bd91c0509d0e01bd77371893d0b3580f8a7b5958a781074bf44b01b08f1a5aa +SIZE (xorg/driver/xf86-input-elographics-1.4.2.tar.bz2) = 306167 diff --git a/x11-drivers/xf86-input-elographics/files/patch-git_01_0d3ec2e b/x11-drivers/xf86-input-elographics/files/patch-git_01_0d3ec2e deleted file mode 100644 index a97a5305c647..000000000000 --- a/x11-drivers/xf86-input-elographics/files/patch-git_01_0d3ec2e +++ /dev/null @@ -1,80 +0,0 @@ -From 0d3ec2e97c99431cdbaea8e958a75ff2e748da41 Mon Sep 17 00:00:00 2001 -From: Jaska Kivela <jaska@kivela.net> -Date: Wed, 16 Jan 2013 11:51:04 +0200 -Subject: Added axis inversion functionality. - -The module would previously log a message if min > max, but not do anything -about it. Keep the original min/max around, swap on-the-fly. - -Signed-off-by: Jaska Kivela <jaska@kivela.net> -Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> -Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> - -diff --git a/src/xf86Elo.c b/src/xf86Elo.c -index cb1699e..c37cf9a 100644 ---- src/xf86Elo.c -+++ src/xf86Elo.c -@@ -360,6 +360,22 @@ xf86EloReadInput(InputInfoPtr pInfo) - cur_y = WORD_ASSEMBLY(priv->packet_buf[5], priv->packet_buf[6]); - state = priv->packet_buf[2] & 0x07; - -+ DBG(5, ErrorF("ELO got: x(%d), y(%d), %s\n", -+ cur_x, cur_y, -+ (state == ELO_PRESS) ? "Press" : -+ ((state == ELO_RELEASE) ? "Release" : "Stream"))); -+ -+ if (priv->min_y > priv->max_y) { -+ /* inverted y axis */ -+ cur_y = priv->max_y - cur_y + priv->min_y; -+ } -+ -+ if (priv->min_x > priv->max_x) { -+ /* inverted x axis */ -+ cur_x = priv->max_x - cur_x + priv->min_x; -+ } -+ -+ - /* - * Send events. - * -@@ -676,6 +692,7 @@ xf86EloControl(DeviceIntPtr dev, - unsigned char reply[ELO_PACKET_SIZE]; - Atom btn_label; - Atom axis_labels[2] = { 0, 0 }; -+ int x0, x1, y0, y1; - - switch(mode) { - -@@ -719,17 +736,27 @@ xf86EloControl(DeviceIntPtr dev, - return !Success; - } - else { -+ -+ /* Correct the coordinates for possibly inverted axis. -+ Leave priv->variables untouched so we can check for -+ inversion on incoming events. -+ */ -+ y0 = min(priv->min_y, priv->max_y); -+ y1 = max(priv->min_y, priv->max_y); -+ x0 = min(priv->min_x, priv->max_x); -+ x1 = max(priv->min_x, priv->max_x); -+ - /* I will map coordinates myself */ - InitValuatorAxisStruct(dev, 0, - axis_labels[0], -- priv->min_x, priv->max_x, -+ x0, x1, - 9500, - 0 /* min_res */, - 9500 /* max_res */, - Absolute); - InitValuatorAxisStruct(dev, 1, - axis_labels[1], -- priv->min_y, priv->max_y, -+ y0, y1, - 10500, - 0 /* min_res */, - 10500 /* max_res */, --- -cgit v0.10.2 - diff --git a/x11-drivers/xf86-input-elographics/files/patch-git_02_c666c78 b/x11-drivers/xf86-input-elographics/files/patch-git_02_c666c78 deleted file mode 100644 index e83a50d85eab..000000000000 --- a/x11-drivers/xf86-input-elographics/files/patch-git_02_c666c78 +++ /dev/null @@ -1,28 +0,0 @@ -From c666c78c764d0b97fa25bd9f0796a83b77761f7d Mon Sep 17 00:00:00 2001 -From: Peter Hutterer <peter.hutterer@who-t.net> -Date: Wed, 30 Jan 2013 11:47:03 +1000 -Subject: Handle DEVICE_ABORT on input ABI 19.1 - -Don't do anything, but don't print a warning either. - -Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> - -diff --git a/src/xf86Elo.c b/src/xf86Elo.c -index c37cf9a..ef2186f 100644 ---- src/xf86Elo.c -+++ src/xf86Elo.c -@@ -875,6 +875,11 @@ xf86EloControl(DeviceIntPtr dev, - DBG(2, ErrorF("Done\n")); - return Success; - -+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) * 100 + GET_ABI_MINOR(ABI_XINPUT_VERSION) >= 1901 -+ case DEVICE_ABORT: -+ return Success; -+#endif -+ - default: - ErrorF("unsupported mode=%d\n", mode); - return BadValue; --- -cgit v0.10.2 - |