Index: x11/evtest/Makefile =================================================================== --- /dev/null +++ x11/evtest/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= evtest +DISTVERSIONPREFIX= ${PORTNAME}- +DISTVERSION= 1.34 +CATEGORIES= x11 +MASTER_SITES= https://gitlab.freedesktop.org/libevdev/${PORTNAME}/-/archive/${PORTNAME}-${DISTVERSION}/ + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Input device event monitor and query tool + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ + asciidoc:textproc/asciidoc \ + xmlto:textproc/xmlto \ + xsltproc:textproc/libxslt +LIB_DEPENDS= libevdev.so:devel/libevdev +USES= autoreconf gnome localbase pkgconfig +USE_GNOME= libxml2 +GNU_CONFIGURE= yes + +CFLAGS+= -Dprogram_invocation_short_name='getprogname()' + +PLIST_FILES= bin/evtest \ + man/man1/evtest.1.gz + +.include Index: x11/evtest/distinfo =================================================================== --- /dev/null +++ x11/evtest/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1605183618 +SHA256 (evtest-evtest-1.34.tar.gz) = 0e7a2eeff380af796e5e9b21b6f48fd706c58c931162c151c2c1074bdfeb85c6 +SIZE (evtest-evtest-1.34.tar.gz) = 19954 Index: x11/evtest/files/patch-evtest.c =================================================================== --- /dev/null +++ x11/evtest/files/patch-evtest.c @@ -0,0 +1,20 @@ +--- evtest.c.orig 2019-08-02 18:14:30 UTC ++++ evtest.c +@@ -43,7 +43,7 @@ + #include + #endif + +-#include ++#include + #include + + #include +@@ -875,7 +875,7 @@ static char* scan_devices(void) + char *filename; + int max_device = 0; + +- ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort); ++ ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort); + if (ndev <= 0) + return NULL; + Index: x11/evtest/pkg-descr =================================================================== --- /dev/null +++ x11/evtest/pkg-descr @@ -0,0 +1,5 @@ +evtest is a tool to print evdev kernel events. It reads directly from the +kernel device and prints a device description and the events with the value +and the symbolic name. + +WWW: https://gitlab.freedesktop.org/libevdev/evtest