Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2020 16:40:49 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529051 - in head/x11: . showkeys showkeys/files
Message-ID:  <202003241640.02OGenTd043282@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Tue Mar 24 16:40:48 2020
New Revision: 529051
URL: https://svnweb.freebsd.org/changeset/ports/529051

Log:
  New port: x11/showkeys
  
  Showkeys is a simple program to display keys being pressed on the screen.
  
  WWW: https://github.com/nibrahim/showkeys

Added:
  head/x11/showkeys/
  head/x11/showkeys/Makefile   (contents, props changed)
  head/x11/showkeys/distinfo   (contents, props changed)
  head/x11/showkeys/files/
  head/x11/showkeys/files/patch-Makefile   (contents, props changed)
  head/x11/showkeys/files/patch-keystack.c   (contents, props changed)
  head/x11/showkeys/pkg-descr   (contents, props changed)
Modified:
  head/x11/Makefile

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Tue Mar 24 16:36:25 2020	(r529050)
+++ head/x11/Makefile	Tue Mar 24 16:40:48 2020	(r529051)
@@ -292,6 +292,7 @@
     SUBDIR += sessreg
     SUBDIR += setlayout
     SUBDIR += setxkbmap
+    SUBDIR += showkeys
     SUBDIR += simdock
     SUBDIR += simplestroke
     SUBDIR += sisctrl

Added: head/x11/showkeys/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/showkeys/Makefile	Tue Mar 24 16:40:48 2020	(r529051)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME=	showkeys
+DISTVERSION=	g20191004
+CATEGORIES=	x11
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Display keystrokes during screencasts or presentations
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libxosd.so:misc/xosd
+
+USES=		localbase xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	nibrahim
+GH_TAGNAME=	187d59c
+USE_XORG=	x11 xext xinerama xtst
+
+ALL_TARGET=	${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>

Added: head/x11/showkeys/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/showkeys/distinfo	Tue Mar 24 16:40:48 2020	(r529051)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1585063387
+SHA256 (nibrahim-showkeys-g20191004-187d59c_GH0.tar.gz) = ec7859595ee148d29115a90e39ce7a7629b5011ab0368df5782f4ef5a668c617
+SIZE (nibrahim-showkeys-g20191004-187d59c_GH0.tar.gz) = 18033

Added: head/x11/showkeys/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/showkeys/files/patch-Makefile	Tue Mar 24 16:40:48 2020	(r529051)
@@ -0,0 +1,28 @@
+--- Makefile.orig	2019-10-04 17:36:38 UTC
++++ Makefile
+@@ -1,18 +1,18 @@
+ showkeys: showkeys.c showkeys.h keystack.o
+-	gcc -g -Wall showkeys.c keystack.o -o showkeys -lX11 -lxosd -lpthread -lXext -lX11 -lXinerama -lXtst
++	${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall showkeys.c keystack.o -o showkeys -lX11 -lxosd -lpthread -lXext -lX11 -lXinerama -lXtst
+ 
+ 
+ keystack.o: keystack.c keystack.h
+-	gcc -c -g keystack.c
++	${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -c -g keystack.c
+ 
+ clean:
+ 	rm showkeys keystack.o record-attempt record-example
+ 
+ check-syntax:
+-	gcc -Wall -o nul -S ${CHK_SOURCES}
++	${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -Wall -o nul -S ${CHK_SOURCES}
+ 
+-record-attempt: record-attempt.c
+-	gcc -g -Wall record-attempt.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-attempt
++record-attempt: tests/record-attempt.c
++	${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall tests/record-attempt.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-attempt
+ 
+-record-example: record-example.c
+-	gcc -g -Wall record-example.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-example
++record-example: tests/record-example.c
++	${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -g -Wall tests/record-example.c -L/usr/lib -lXtst -lxosd -lpthread -lXext -lX11 -lXinerama -o record-example

Added: head/x11/showkeys/files/patch-keystack.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/showkeys/files/patch-keystack.c	Tue Mar 24 16:40:48 2020	(r529051)
@@ -0,0 +1,10 @@
+--- keystack.c.orig	2020-03-24 16:28:07 UTC
++++ keystack.c
+@@ -11,6 +11,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ 
++#include "config.h"
+ #include "keystack.h"
+ 
+ static void

Added: head/x11/showkeys/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/showkeys/pkg-descr	Tue Mar 24 16:40:48 2020	(r529051)
@@ -0,0 +1,16 @@
+Showkeys is a simple program to display keys being pressed on the screen.
+
+It is useful while making presentations and screencasts. The audience will be
+able to see the keys being pressed.
+
+It is similar to key-mon. Key-mon has more features than showkeys. The
+advantages of showkeys are
+
+1. Doesn't use GTK/GNOME.
+2. Uses libXosd to display keys directly onto the screen.
+3. No floating windows that always need to be on top. This is very useful if
+   you're using a tiling WM like Xmonad.
+4. Keystroke history. key-mon has this but doesn't show modifiers. showkeys
+   does this using an Emacs style key notation.
+
+WWW: https://github.com/nibrahim/showkeys



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003241640.02OGenTd043282>