From 2417cb6450eb28a8fc1e079776304bdef981cb30 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 18 Jan 2024 22:47:42 -0800 Subject: [PATCH] devel/libuiohook: New port: C library to provide global keyboard and mouse hooks from userland --- devel/Makefile | 1 + devel/libuiohook/Makefile | 25 +++++++++++++++++++++++++ devel/libuiohook/distinfo | 3 +++ devel/libuiohook/pkg-descr | 1 + devel/libuiohook/pkg-plist | 7 +++++++ 5 files changed, 37 insertions(+) create mode 100644 devel/libuiohook/Makefile create mode 100644 devel/libuiohook/distinfo create mode 100644 devel/libuiohook/pkg-descr create mode 100644 devel/libuiohook/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index adc75a7ca812..5ed6a5ffcd63 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1428,6 +1428,7 @@ SUBDIR += libubox SUBDIR += libudev-devd SUBDIR += libuinputplus + SUBDIR += libuiohook SUBDIR += libukcprog SUBDIR += libunicode SUBDIR += libuninum diff --git a/devel/libuiohook/Makefile b/devel/libuiohook/Makefile new file mode 100644 index 000000000000..1f212672481c --- /dev/null +++ b/devel/libuiohook/Makefile @@ -0,0 +1,25 @@ +PORTNAME= libuiohook +DISTVERSION= 1.2.2-11 +DISTVERSIONSUFFIX= -gf259ff3 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C library to provide global keyboard and mouse hooks from userland +WWW= https://github.com/kwhat/libuiohook + +LICENSE= LGPL20 +LICENSE_FILE= ${WRKSRC}/COPYING.LESSER.md + +LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \ + libxkbfile.so:x11/libxkbfile + +USES= cmake pkgconfig xorg +USE_XORG= x11 xcb xinerama xt xtst +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= kwhat + +CMAKE_ON= BUILD_SHARED_LIBS + +.include diff --git a/devel/libuiohook/distinfo b/devel/libuiohook/distinfo new file mode 100644 index 000000000000..5d916873d030 --- /dev/null +++ b/devel/libuiohook/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1705645716 +SHA256 (kwhat-libuiohook-1.2.2-11-gf259ff3_GH0.tar.gz) = 51f64194e4afafab3414c1c120e8da178d666439880222b878fcf19c2ce33019 +SIZE (kwhat-libuiohook-1.2.2-11-gf259ff3_GH0.tar.gz) = 113855 diff --git a/devel/libuiohook/pkg-descr b/devel/libuiohook/pkg-descr new file mode 100644 index 000000000000..a4f1b6aee061 --- /dev/null +++ b/devel/libuiohook/pkg-descr @@ -0,0 +1 @@ +libUIOHook is a cross-platform keyboard and mouse hooking from userland. diff --git a/devel/libuiohook/pkg-plist b/devel/libuiohook/pkg-plist new file mode 100644 index 000000000000..ad1d68dc1a79 --- /dev/null +++ b/devel/libuiohook/pkg-plist @@ -0,0 +1,7 @@ +include/uiohook.h +lib/cmake/uiohook/uiohook-config-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/uiohook/uiohook-config.cmake +lib/libuiohook.so +lib/libuiohook.so.1 +lib/libuiohook.so.1.2.0 +libdata/pkgconfig/uiohook.pc