[Midnightbsd-cvs] mports [23938] trunk/x11-drivers/xf86-input-evdev: add evdev
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 26 17:49:18 EDT 2018
Revision: 23938
http://svnweb.midnightbsd.org/mports/?rev=23938
Author: laffer1
Date: 2018-08-26 17:49:17 -0400 (Sun, 26 Aug 2018)
Log Message:
-----------
add evdev
Added Paths:
-----------
trunk/x11-drivers/xf86-input-evdev/
trunk/x11-drivers/xf86-input-evdev/Makefile
trunk/x11-drivers/xf86-input-evdev/distinfo
trunk/x11-drivers/xf86-input-evdev/files/
trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.c
trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h
trunk/x11-drivers/xf86-input-evdev/pkg-descr
trunk/x11-drivers/xf86-input-evdev/pkg-plist
Added: trunk/x11-drivers/xf86-input-evdev/Makefile
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/Makefile (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/Makefile 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,22 @@
+# $MidnightBSD$
+
+PORTNAME= xf86-input-evdev
+PORTVERSION= 2.10.6
+CATEGORIES= x11-drivers
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= X.Org event device input driver
+
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= v4l_compat>=1.0.20110603:multimedia/v4l_compat
+LIB_DEPENDS= libevdev.so:devel/libevdev \
+ libmtdev.so:devel/libmtdev
+RUN_DEPENDS= webcamd>=3.1.0.1:multimedia/webcamd
+
+XORG_CAT= driver
+USES= pathfix
+CONFIGURE_ENV= UDEV_CFLAGS=" " UDEV_LIBS=" "
+
+.include <bsd.port.mk>
Property changes on: trunk/x11-drivers/xf86-input-evdev/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-drivers/xf86-input-evdev/distinfo
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/distinfo (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/distinfo 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1527700218
+SHA256 (xorg/driver/xf86-input-evdev-2.10.6.tar.bz2) = 8726073e81861bc7b2321e76272cbdbd33c7e1a121535a9827977265b9033ec0
+SIZE (xorg/driver/xf86-input-evdev-2.10.6.tar.bz2) = 408138
Property changes on: trunk/x11-drivers/xf86-input-evdev/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.c
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.c (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.c 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,66 @@
+--- src/evdev.c.orig 2017-01-03 01:26:00 UTC
++++ src/evdev.c
+@@ -38,9 +38,13 @@
+ #include <X11/keysym.h>
+ #include <X11/extensions/XI.h>
+
++#ifdef __linux__
+ #include <linux/version.h>
++#endif
+ #include <sys/stat.h>
++#ifdef HAVE_LIBUDEV
+ #include <libudev.h>
++#endif
+ #include <unistd.h>
+ #include <errno.h>
+ #include <fcntl.h>
+@@ -226,6 +230,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo)
+ static BOOL
+ EvdevDeviceIsVirtual(const char* devicenode)
+ {
++#ifdef HAVE_LIBUDEV
+ struct udev *udev = NULL;
+ struct udev_device *device = NULL;
+ struct stat st;
+@@ -256,6 +261,9 @@ out:
+ udev_device_unref(device);
+ udev_unref(udev);
+ return rc;
++#else
++ return FALSE;
++#endif
+ }
+
+
+@@ -1062,11 +1070,13 @@ EvdevReadInput(InputInfoPtr pInfo)
+ do {
+ rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev);
+ if (rc < 0) {
+- if (rc == -ENODEV) /* May happen after resume */
++ if (rc != -EAGAIN && rc != -EINTR && rc != -EWOULDBLOCK) {
++ /* May happen after resume or at device detach */
+ xf86RemoveEnabledDevice(pInfo);
+- else if (rc != -EAGAIN)
++ EvdevCloseDevice(pInfo);
+ LogMessageVerbSigSafe(X_ERROR, 0, "%s: Read error: %s\n", pInfo->name,
+ strerror(-rc));
++ }
+ break;
+ } else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) {
+ if (pEvdev->mtdev)
+@@ -1476,10 +1486,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de
+ continue;
+
+ abs = libevdev_get_abs_info(pEvdev->dev, axis);
++#ifdef __linux__
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
+ /* Kernel provides units/mm, X wants units/m */
+ resolution = abs->resolution * 1000;
+ #endif
++#else
++ /* Kernel provides units/mm, X wants units/m */
++ resolution = abs->resolution * 1000;
++#endif
+
+ xf86InitValuatorAxisStruct(device, axnum,
+ atoms[axnum],
Property changes on: trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,19 @@
+--- src/evdev.h.orig 2016-11-21 04:59:44 UTC
++++ src/evdev.h
+@@ -36,7 +36,15 @@
+ #define EVDEV_H
+
+ #include <linux/input.h>
+-#include <linux/types.h>
++#include <sys/types.h>
++
++/* XXX Copied from <xf86str.h> for linux */
++/* Tolerate prior #include <linux/input.h> */
++#undef BUS_NONE
++#undef BUS_PCI
++#undef BUS_SBUS
++#undef BUS_PLATFORM
++#undef BUS_last
+
+ #include <xorg-server.h>
+ #include <xf86Xinput.h>
Property changes on: trunk/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-drivers/xf86-input-evdev/pkg-descr
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/pkg-descr (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/pkg-descr 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,5 @@
+This package contains the X.Org xf86-input-evdev driver. It supports
+all input devices that webcamd knows about, including tablets,
+touchscreens, joysticks and HIDs.
+
+WWW: https://www.x.org/
Property changes on: trunk/x11-drivers/xf86-input-evdev/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/x11-drivers/xf86-input-evdev/pkg-plist
===================================================================
--- trunk/x11-drivers/xf86-input-evdev/pkg-plist (rev 0)
+++ trunk/x11-drivers/xf86-input-evdev/pkg-plist 2018-08-26 21:49:17 UTC (rev 23938)
@@ -0,0 +1,5 @@
+include/xorg/evdev-properties.h
+lib/xorg/modules/input/evdev_drv.so
+libdata/pkgconfig/xorg-evdev.pc
+man/man4/evdev.4x.gz
+share/X11/xorg.conf.d/10-evdev.conf
Property changes on: trunk/x11-drivers/xf86-input-evdev/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list