Add gkleds2 0.8.1, GKrellM Leds for CapsLock, NumLock and ScrollLock.

PR:		46167
Submitted by:	Jan Stocker <Jan.Stocker@t-online.de>
This commit is contained in:
Pete Fritchman
2003-06-01 13:53:22 +00:00
parent ed00bc13af
commit 1da783e82c
6 changed files with 85 additions and 0 deletions

View File

@@ -94,6 +94,7 @@
SUBDIR += gcombust
SUBDIR += gconf-editor
SUBDIR += gfslicer
SUBDIR += gkleds2
SUBDIR += gkrellflynn
SUBDIR += gkrellm
SUBDIR += gkrellm2

26
sysutils/gkleds2/Makefile Normal file
View File

@@ -0,0 +1,26 @@
# New ports collection makefile for: gkleds2
# Date Created: Dec 10 2002
# Whom: Jan Stocker <Jan.Stocker@t-online.de>
#
# $FreeBSD$
#
PORTNAME= gkleds2
PORTVERSION= 0.8.1
CATEGORIES= sysutils
MASTER_SITES= http://heim.ifi.uio.no/~oyvinha/files/files/
DISTNAME= gkleds-${PORTVERSION}
MAINTAINER= Jan.Stocker@t-online.de
COMMENT= GKrellM Leds for CapsLock, NumLock and ScrollLock
BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2
USE_X_PREFIX= yes
USE_GMAKE= yes
MAKE_ENV+= PLUGIN_DIR=${PREFIX}/libexec/gkrellm2/plugins \
INSTALL_PROG="${INSTALL_PROGRAM}"
.include <bsd.port.mk>

View File

@@ -0,0 +1 @@
MD5 (gkleds-0.8.1.tar.gz) = 8329bc219c55f5b83c4dc5f097990d74

View File

@@ -0,0 +1,47 @@
$FreeBSD$
--- Makefile.orig Tue Jan 28 17:14:08 2003
+++ Makefile Sun Jun 1 08:47:34 2003
@@ -11,16 +11,14 @@
DEGUG = -DGKLEDS_DEBUG
LIBFLAGS = -shared
INCS = $(GTK_INCLUDES) -DGKLEDS_SELFCOMPILE
-COMPFLAGS = -Wall -O2 -fPIC
-CC = gcc
+COMPFLAGS = -Wall -fPIC ${CFLAGS}
+CC ?= gcc
SRCS = src/gkleds.c src/gkleds_ind.c src/gkleds_conf.c src/gkrellm2/win32-plugin.c
HDRS = src/gkleds.h src/gkleds_ind.c src/gkleds_conf.c src/gkrellm2/win32-plugin.h
WIN32_OBJS = gkleds.o gkleds_ind.o gkleds_conf.o win32-plugin.o
UNIX_OBJS = gkleds.o gkleds_ind.o gkleds_conf.o
-INSTALL_PROG = install
-
.PHONY : clean
.PHONY : install
.PHONY : uninstall
@@ -29,7 +27,7 @@
#=======================================================================
#=======================================================================
-unix : $(UNIX_OBJS)
+all : $(UNIX_OBJS)
$(CC) $(LIBFLAGS) $(UNIX_LIBS) -o gkleds.so $^
win32 : $(WIN32_OBJS)
@@ -59,13 +57,4 @@
rm -rf src/gkrellm2/*~ src/gkrellm2/\#*
install : gkleds.so
- @ if [ $$UID -ne 0 ]; \
- then PLUGIN_DIR=$$HOME/.gkrellm2/plugins; \
- elif [ -e /usr/bin/gkrellm ]; \
- then PLUGIN_DIR=/usr/lib/gkrellm2/plugins; \
- else \
- PLUGIN_DIR=/usr/local/lib/gkrellm2/plugins; \
- fi; \
- $(INSTALL_PROG) -d $$PLUGIN_DIR; \
- $(INSTALL_PROG) -s gkleds.so $$PLUGIN_DIR; \
- printf "\ngkleds installed in $$PLUGIN_DIR\n"
+ $(INSTALL_PROG) gkleds.so $(PLUGIN_DIR);

View File

@@ -0,0 +1,9 @@
gkleds is a GKrellM plugin which monitors the CapsLock, NumLock and
ScrollLock keys and reports their current status via on-screen LEDs.
This is useful for people who have keyboards without LEDs (typically
cordless keyboards).
Author: Oyvind Hagen <oyvinha@ifi.uio.no>
WWW: http://www.stud.ifi.uio.no/~oyvinha/gkleds
- Jan Stocker <Jan.Stocker@t-online.de>

View File

@@ -0,0 +1 @@
libexec/gkrellm2/plugins/gkleds.so