aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2007-07-28 17:56:18 +0800
committerlwhsu <lwhsu@FreeBSD.org>2007-07-28 17:56:18 +0800
commitb696544a80adaf3d1929142ffb7c9438f45aa4d2 (patch)
treee9fecdae955e349a5d1f288f39986098d39c16ee /sysutils
parent74611b088a671bd1df439de8b40008c5a827148c (diff)
downloadfreebsd-ports-gnome-b696544a80adaf3d1929142ffb7c9438f45aa4d2.tar.gz
freebsd-ports-gnome-b696544a80adaf3d1929142ffb7c9438f45aa4d2.tar.zst
freebsd-ports-gnome-b696544a80adaf3d1929142ffb7c9438f45aa4d2.zip
Add usbhotkey 0.2, a utility to remap USB keyboards under X11.
PR: ports/114628 Submitted by: ntarmos at ceid.upatras.gr
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/usbhotkey/Makefile36
-rw-r--r--sysutils/usbhotkey/distinfo3
-rw-r--r--sysutils/usbhotkey/pkg-descr7
-rw-r--r--sysutils/usbhotkey/pkg-plist14
5 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index feb5eba50c4c..dfcf3036d8d4 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -655,6 +655,7 @@
SUBDIR += upsmon
SUBDIR += uptimec
SUBDIR += uptimed
+ SUBDIR += usbhotkey
SUBDIR += uschedule
SUBDIR += userinfo
SUBDIR += userlist
diff --git a/sysutils/usbhotkey/Makefile b/sysutils/usbhotkey/Makefile
new file mode 100644
index 000000000000..2eb460abd23b
--- /dev/null
+++ b/sysutils/usbhotkey/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: usbhotkey
+# Date created: 16 July 2007
+# Whom: ntarmos@ceid.upatras.gr
+#
+# $FreeBSD$
+#
+
+PORTNAME= usbhotkey
+PORTVERSION= 0.2
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= usbhotkey
+
+MAINTAINER= ntarmos@ceid.upatras.gr
+COMMENT= A utility to remap USB keyboards under X11
+
+LIB_DEPENDS= hid.0:${PORTSDIR}/devel/libhid \
+ Xtst.6:${PORTSDIR}/x11/libXtst
+
+OPTIONS= GUI "Enable GUI bits (Imlib dependency)" on
+
+USE_RUBY= yes
+USE_GMAKE= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
+ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_GUI)
+LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
+.else
+CONFIGURE_ARGS+= --without-Imlib
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/usbhotkey/distinfo b/sysutils/usbhotkey/distinfo
new file mode 100644
index 000000000000..245ba3c9f0cc
--- /dev/null
+++ b/sysutils/usbhotkey/distinfo
@@ -0,0 +1,3 @@
+MD5 (usbhotkey-0.2.tar.gz) = 665583928c1bd9d422e5b514780733c5
+SHA256 (usbhotkey-0.2.tar.gz) = c5a917cbbdb664c63f4e0df84d1e4881e06289c6a2143f9c76d873936e4738e7
+SIZE (usbhotkey-0.2.tar.gz) = 197756
diff --git a/sysutils/usbhotkey/pkg-descr b/sysutils/usbhotkey/pkg-descr
new file mode 100644
index 000000000000..9755ec2017ad
--- /dev/null
+++ b/sysutils/usbhotkey/pkg-descr
@@ -0,0 +1,7 @@
+USBHotkey allows you to catch USB keyboard events (key press and release
+events) and transform them into X11 keyboard events using a ruby script.
+This provides a mechanism for creating keymaps that can be more
+complicated than the standard table-based keymap approach of X11.
+
+
+WWW: http://usbhotkey.sourceforge.net/
diff --git a/sysutils/usbhotkey/pkg-plist b/sysutils/usbhotkey/pkg-plist
new file mode 100644
index 000000000000..5d475663f14c
--- /dev/null
+++ b/sysutils/usbhotkey/pkg-plist
@@ -0,0 +1,14 @@
+share/usbhotkey-0.2/X11_keycodes.rb
+share/usbhotkey-0.2/ag5/level0.png
+share/usbhotkey-0.2/ag5/level1.png
+share/usbhotkey-0.2/ag5/level2.png
+share/usbhotkey-0.2/ag5/level3.png
+share/usbhotkey-0.2/ag5/level4.png
+share/usbhotkey-0.2/ag5/level5.png
+share/usbhotkey-0.2/ag5/level6.png
+share/usbhotkey-0.2/ag5/level7.png
+share/usbhotkey-0.2/ag5-3colors.rb
+share/usbhotkey-0.2/ag5-replicate-colours.rb
+bin/usbhotkey
+@dirrm share/usbhotkey-0.2/ag5
+@dirrm share/usbhotkey-0.2