diff options
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/gkx86info/Makefile | 43 | ||||
-rw-r--r-- | misc/gkx86info/distinfo | 1 | ||||
-rw-r--r-- | misc/gkx86info/files/patch-MHz.c | 19 | ||||
-rw-r--r-- | misc/gkx86info/pkg-comment | 1 | ||||
-rw-r--r-- | misc/gkx86info/pkg-descr | 13 | ||||
-rw-r--r-- | misc/gkx86info/pkg-plist | 4 | ||||
-rw-r--r-- | misc/gkx86info2/Makefile | 43 | ||||
-rw-r--r-- | misc/gkx86info2/distinfo | 1 | ||||
-rw-r--r-- | misc/gkx86info2/files/patch-MHz.c | 19 | ||||
-rw-r--r-- | misc/gkx86info2/pkg-comment | 1 | ||||
-rw-r--r-- | misc/gkx86info2/pkg-descr | 13 | ||||
-rw-r--r-- | misc/gkx86info2/pkg-plist | 4 |
13 files changed, 163 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index e50dfcf15aa8..aaf2f3fdf45f 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -87,6 +87,7 @@ SUBDIR += gkrellscore SUBDIR += gkrellshoot SUBDIR += gkrellweather + SUBDIR += gkx86info SUBDIR += gman SUBDIR += gnomehier SUBDIR += gnomemimedata diff --git a/misc/gkx86info/Makefile b/misc/gkx86info/Makefile new file mode 100644 index 000000000000..69ecb8b76417 --- /dev/null +++ b/misc/gkx86info/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: gkx86info +# Date created: Thu Aug 8 01:49:15 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gkx86info +PORTVERSION= 0.0.2 +CATEGORIES= misc +MASTER_SITES= http://asdfnews.org/yargon/ +DISTNAME= ${PORTNAME}${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org + +BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm +RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm + +USE_X_PREFIX= yes +USE_GNOMENG= yes +USE_GNOME= gtk12 imlib + +DOC_FILES= COPYING README + +do-build: + @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -o MHz.o -c MHz.c + @cd ${WRKSRC} && eval ${CC} -fPIC ${CFLAGS} \ + `${GTK_CONFIG} --cflags` \ + `${IMLIB_CONFIG} --cflags-gdk` -c gkx86info.c + @cd ${WRKSRC} && eval ${CC} -shared ${CFLAGS} ${LDFLAGS} \ + -o ${PORTNAME}.so MHz.o gkx86info.o + +do-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif #NOPORTDOCS + @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.so \ + ${PREFIX}/libexec/gkrellm/plugins/ + +.include <bsd.port.mk> diff --git a/misc/gkx86info/distinfo b/misc/gkx86info/distinfo new file mode 100644 index 000000000000..575118e6bf3d --- /dev/null +++ b/misc/gkx86info/distinfo @@ -0,0 +1 @@ +MD5 (gkx86info0.0.2.tar.gz) = ad855b4f4e4556efee1ec9ac0871e215 diff --git a/misc/gkx86info/files/patch-MHz.c b/misc/gkx86info/files/patch-MHz.c new file mode 100644 index 000000000000..0bd1afcea79e --- /dev/null +++ b/misc/gkx86info/files/patch-MHz.c @@ -0,0 +1,19 @@ +--- MHz.c.orig Sat Oct 6 05:41:06 2001 ++++ MHz.c Wed Aug 7 23:01:05 2002 +@@ -11,6 +11,7 @@ + */ + + #include <stdio.h> ++#include <stdlib.h> + #include <sys/time.h> + #include <string.h> + #include <unistd.h> +@@ -45,7 +46,7 @@ + microseconds = ((tvstop.tv_sec-tvstart.tv_sec)*1000000) + + (tvstop.tv_usec-tvstart.tv_usec); + +- buffer = malloc(sizeof(char)*512); ++ buffer = (char *) malloc(sizeof(char)*512); + sprintf(buffer, "%lldMHz", + (cycles[1]-cycles[0])/microseconds); + diff --git a/misc/gkx86info/pkg-comment b/misc/gkx86info/pkg-comment new file mode 100644 index 000000000000..fc2898548327 --- /dev/null +++ b/misc/gkx86info/pkg-comment @@ -0,0 +1 @@ +GKrellM plugin that simply prints the current clock speed diff --git a/misc/gkx86info/pkg-descr b/misc/gkx86info/pkg-descr new file mode 100644 index 000000000000..4cf2f5b33877 --- /dev/null +++ b/misc/gkx86info/pkg-descr @@ -0,0 +1,13 @@ +[ excerpt from developer's www site ] + +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 is not any +point in mesuring the clock if it is the same every time you mesure +it, now is there? + +Included code from x86info to calculate an estimate clock speed. + +Author: Jake Richardson <jake@asdfnews.org> +WWW: http://asdfnews.org/yargon/ diff --git a/misc/gkx86info/pkg-plist b/misc/gkx86info/pkg-plist new file mode 100644 index 000000000000..6599095a4358 --- /dev/null +++ b/misc/gkx86info/pkg-plist @@ -0,0 +1,4 @@ +libexec/gkrellm/plugins/gkx86info.so +%%PORTDOCS%%share/doc/gkx86info/COPYING +%%PORTDOCS%%share/doc/gkx86info/README +%%PORTDOCS%%@dirrm share/doc/gkx86info diff --git a/misc/gkx86info2/Makefile b/misc/gkx86info2/Makefile new file mode 100644 index 000000000000..69ecb8b76417 --- /dev/null +++ b/misc/gkx86info2/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: gkx86info +# Date created: Thu Aug 8 01:49:15 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gkx86info +PORTVERSION= 0.0.2 +CATEGORIES= misc +MASTER_SITES= http://asdfnews.org/yargon/ +DISTNAME= ${PORTNAME}${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org + +BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm +RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm + +USE_X_PREFIX= yes +USE_GNOMENG= yes +USE_GNOME= gtk12 imlib + +DOC_FILES= COPYING README + +do-build: + @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -o MHz.o -c MHz.c + @cd ${WRKSRC} && eval ${CC} -fPIC ${CFLAGS} \ + `${GTK_CONFIG} --cflags` \ + `${IMLIB_CONFIG} --cflags-gdk` -c gkx86info.c + @cd ${WRKSRC} && eval ${CC} -shared ${CFLAGS} ${LDFLAGS} \ + -o ${PORTNAME}.so MHz.o gkx86info.o + +do-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif #NOPORTDOCS + @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.so \ + ${PREFIX}/libexec/gkrellm/plugins/ + +.include <bsd.port.mk> diff --git a/misc/gkx86info2/distinfo b/misc/gkx86info2/distinfo new file mode 100644 index 000000000000..575118e6bf3d --- /dev/null +++ b/misc/gkx86info2/distinfo @@ -0,0 +1 @@ +MD5 (gkx86info0.0.2.tar.gz) = ad855b4f4e4556efee1ec9ac0871e215 diff --git a/misc/gkx86info2/files/patch-MHz.c b/misc/gkx86info2/files/patch-MHz.c new file mode 100644 index 000000000000..0bd1afcea79e --- /dev/null +++ b/misc/gkx86info2/files/patch-MHz.c @@ -0,0 +1,19 @@ +--- MHz.c.orig Sat Oct 6 05:41:06 2001 ++++ MHz.c Wed Aug 7 23:01:05 2002 +@@ -11,6 +11,7 @@ + */ + + #include <stdio.h> ++#include <stdlib.h> + #include <sys/time.h> + #include <string.h> + #include <unistd.h> +@@ -45,7 +46,7 @@ + microseconds = ((tvstop.tv_sec-tvstart.tv_sec)*1000000) + + (tvstop.tv_usec-tvstart.tv_usec); + +- buffer = malloc(sizeof(char)*512); ++ buffer = (char *) malloc(sizeof(char)*512); + sprintf(buffer, "%lldMHz", + (cycles[1]-cycles[0])/microseconds); + diff --git a/misc/gkx86info2/pkg-comment b/misc/gkx86info2/pkg-comment new file mode 100644 index 000000000000..fc2898548327 --- /dev/null +++ b/misc/gkx86info2/pkg-comment @@ -0,0 +1 @@ +GKrellM plugin that simply prints the current clock speed diff --git a/misc/gkx86info2/pkg-descr b/misc/gkx86info2/pkg-descr new file mode 100644 index 000000000000..4cf2f5b33877 --- /dev/null +++ b/misc/gkx86info2/pkg-descr @@ -0,0 +1,13 @@ +[ excerpt from developer's www site ] + +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 is not any +point in mesuring the clock if it is the same every time you mesure +it, now is there? + +Included code from x86info to calculate an estimate clock speed. + +Author: Jake Richardson <jake@asdfnews.org> +WWW: http://asdfnews.org/yargon/ diff --git a/misc/gkx86info2/pkg-plist b/misc/gkx86info2/pkg-plist new file mode 100644 index 000000000000..6599095a4358 --- /dev/null +++ b/misc/gkx86info2/pkg-plist @@ -0,0 +1,4 @@ +libexec/gkrellm/plugins/gkx86info.so +%%PORTDOCS%%share/doc/gkx86info/COPYING +%%PORTDOCS%%share/doc/gkx86info/README +%%PORTDOCS%%@dirrm share/doc/gkx86info |