From 6efd2fc8517500bc04062c041eaa67491815ead2 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 6 Oct 2020 11:33:29 +0000 Subject: [PATCH] Add x11/xclickroot xclickroot runs a command every time a given mouse button is pressed on the root window. WWW: https://github.com/phillbush/xclickroot --- x11/Makefile | 1 + x11/xclickroot/Makefile | 34 ++++++++++++++++++++++++++++++++++ x11/xclickroot/distinfo | 5 +++++ x11/xclickroot/pkg-descr | 4 ++++ 4 files changed, 44 insertions(+) create mode 100644 x11/xclickroot/Makefile create mode 100644 x11/xclickroot/distinfo create mode 100644 x11/xclickroot/pkg-descr diff --git a/x11/Makefile b/x11/Makefile index 59cfb34add6f..3ef070e15c02 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -389,6 +389,7 @@ SUBDIR += xcb-util-wm SUBDIR += xcb-util-xrm SUBDIR += xcbautolock + SUBDIR += xclickroot SUBDIR += xclip SUBDIR += xclipboard SUBDIR += xcm diff --git a/x11/xclickroot/Makefile b/x11/xclickroot/Makefile new file mode 100644 index 000000000000..a177bcd77059 --- /dev/null +++ b/x11/xclickroot/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= xclickroot +DISTVERSIONPREFIX= v +DISTVERSION= 1.1 +CATEGORIES= x11 +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/ +PATCHFILES= 1.patch:-p1 + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Run a command every time a given mouse button is pressed on the root window + +LICENSE= PD +LICENSE_FILE= ${WRKSRC}/README + +USES= localbase:ldflags xorg +USE_GITHUB= yes +GH_ACCOUNT= phillbush +USE_XORG= x11 + +MAKE_ARGS= CC="${CC}" \ + CFLAGS="${CFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS} -lX11" \ + LIBS="${LIBS}" \ + PREFIX="${PREFIX}" + +PLIST_FILES= bin/${PORTNAME} \ + share/man/man1/${PORTNAME}.1.gz + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/x11/xclickroot/distinfo b/x11/xclickroot/distinfo new file mode 100644 index 000000000000..2d5096f03032 --- /dev/null +++ b/x11/xclickroot/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1601981388 +SHA256 (phillbush-xclickroot-v1.1_GH0.tar.gz) = 289e96b5aad2bf2c9cb2d6aa79c1f0f1e4679e4aa2bc69a9522f14af1b78fc62 +SIZE (phillbush-xclickroot-v1.1_GH0.tar.gz) = 2250 +SHA256 (1.patch) = ab78b9b7c7eb7380d4d53aa7a774df918bbe53dbb672a9ea5904f5e45064610f +SIZE (1.patch) = 939 diff --git a/x11/xclickroot/pkg-descr b/x11/xclickroot/pkg-descr new file mode 100644 index 000000000000..ab62e4b3df11 --- /dev/null +++ b/x11/xclickroot/pkg-descr @@ -0,0 +1,4 @@ +xclickroot runs a command every time a given mouse button is pressed +on the root window. + +WWW: https://github.com/phillbush/xclickroot