diff options
-rw-r--r-- | sysutils/gkx86info/DESCR | 6 | ||||
-rw-r--r-- | sysutils/gkx86info/Makefile | 18 | ||||
-rw-r--r-- | sysutils/gkx86info/PLIST | 3 | ||||
-rw-r--r-- | sysutils/gkx86info/distinfo | 5 | ||||
-rw-r--r-- | sysutils/gkx86info/patches/patch-aa | 12 | ||||
-rw-r--r-- | sysutils/gkx86info/patches/patch-ab | 28 |
6 files changed, 72 insertions, 0 deletions
diff --git a/sysutils/gkx86info/DESCR b/sysutils/gkx86info/DESCR new file mode 100644 index 00000000000..16a1c1bb94b --- /dev/null +++ b/sysutils/gkx86info/DESCR @@ -0,0 +1,6 @@ +This is a plugin for gkrellm that simply prints the current clock +speed for users that own speed stepping processors. It works on +normal non-stepping processors also, but there isn't really any point +in measuring the clock if it is the same every time you measure it, is +there? Included code from x86info to calculate an estimate clock +speed. diff --git a/sysutils/gkx86info/Makefile b/sysutils/gkx86info/Makefile new file mode 100644 index 00000000000..ae08eb4817a --- /dev/null +++ b/sysutils/gkx86info/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/07/10 13:46:58 agc Exp $ +# + +DISTNAME= gkx86info0.0.2 +PKGNAME= gkx86info-0.0.2 +CATEGORIES= sysutils +MASTER_SITES= http://asdfnews.org/yargon/ + +MAINTAINER= ptiJo@noos.fr +HOMEPAGE= http://asdfnews.org/yargon/ +COMMENT= gkrellm plugin that prints the current clock speed + +DEPENDS+= gkrellm>=1.2:../../sysutils/gkrellm + +pre-build: + ${TOUCH} ${WRKSRC}/Makefile + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/gkx86info/PLIST b/sysutils/gkx86info/PLIST new file mode 100644 index 00000000000..2c3eb523b37 --- /dev/null +++ b/sysutils/gkx86info/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/10 13:46:58 agc Exp $ +lib/gkrellm/plugins/gkx86info.so +@dirrm lib/gkrellm/plugins diff --git a/sysutils/gkx86info/distinfo b/sysutils/gkx86info/distinfo new file mode 100644 index 00000000000..fd77df7032a --- /dev/null +++ b/sysutils/gkx86info/distinfo @@ -0,0 +1,5 @@ + +SHA1 (gkx86info0.0.2.tar.gz) = c8f0855641177c6d2f53a1a98c1ae88469df12eb +Size (gkx86info0.0.2.tar.gz) = 9429 bytes +SHA1 (patch-aa) = 2d0253662c5fcbbfb9e81cd04c304866284e229b +SHA1 (patch-ab) = 1980acc7ab1ad6e617536117622d88a30b9dcde7 diff --git a/sysutils/gkx86info/patches/patch-aa b/sysutils/gkx86info/patches/patch-aa new file mode 100644 index 00000000000..0178783fd8e --- /dev/null +++ b/sysutils/gkx86info/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/07/10 13:46:58 agc Exp $ + +--- MHz.c.orig Sat Oct 6 10:41:28 2001 ++++ MHz.c +@@ -14,6 +14,7 @@ + #include <sys/time.h> + #include <string.h> + #include <unistd.h> ++#include <stdlib.h> + + __inline__ unsigned long long int rdtsc() + { diff --git a/sysutils/gkx86info/patches/patch-ab b/sysutils/gkx86info/patches/patch-ab new file mode 100644 index 00000000000..3a94e85d427 --- /dev/null +++ b/sysutils/gkx86info/patches/patch-ab @@ -0,0 +1,28 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/07/10 13:46:58 agc Exp $ + +--- Makefile.orig Tue Jun 11 18:10:11 2002 ++++ Makefile +@@ -0,0 +1,23 @@ ++GTK_CFLAGS= `gtk-config --cflags` ++IMLIB_CFLAGS= `imlib-config --cflags-gdk` ++INCLUDE+= -I$(LOCALBASE)/include ++CFLAGS+= -fPIC -Wall -W -g -O2 -shared $(GTK_CFLAGS) $(IMLIB_CFLAGS) $(INCLUDE) ++CC= gcc ++ ++all: gkx86info.so ++ ++gkx86info.so: MHz.o gkx86info.o ++ $(CC) $(CFLAGS) -o gkx86info.so MHz.o gkx86info.o ++ ++MHz.o: ++ $(CC) $(CFLAGS) -o MHz.o -c MHz.c ++ ++gkx86info.o: ++ $(CC) $(CFLAGS) -c gkx86info.c ++ ++install: ++ $(INSTALL) -d $(LOCALBASE)/lib/gkrellm/plugins ++ $(INSTALL) -c -m 0755 -o root -g wheel gkx86info.so $(LOCALBASE)/lib/gkrellm/plugins/gkx86info.so ++ ++clean: ++ $(RM) -f *~ *.o *.so |