diff options
author | tron <tron@pkgsrc.org> | 2008-08-05 20:36:42 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-08-05 20:36:42 +0000 |
commit | a396d1ff50be81d2b84258fdbe52a24377aadc5e (patch) | |
tree | 34d0231bd009a5bccf8868b7c0fc7c024ea34378 /chat | |
parent | 40fb83bfa3ee74dc1bfacf4eedd2b7f8cd7006e5 (diff) | |
download | pkgsrc-a396d1ff50be81d2b84258fdbe52a24377aadc5e.tar.gz |
Report the CPU frequency and the number of CPU cores under NetBSD/amd64
and NetBSD/i386 similar to Linux, FreeBSD and Mac OS X.
Bump package revision because of this enhancement.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/xchat/Makefile | 3 | ||||
-rw-r--r-- | chat/xchat/distinfo | 3 | ||||
-rw-r--r-- | chat/xchat/patches/patch-ab | 57 |
3 files changed, 61 insertions, 2 deletions
diff --git a/chat/xchat/Makefile b/chat/xchat/Makefile index 0334fbda7f9..5b1ac31bfca 100644 --- a/chat/xchat/Makefile +++ b/chat/xchat/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.57 2008/07/29 13:57:34 tron Exp $ +# $NetBSD: Makefile,v 1.58 2008/08/05 20:36:42 tron Exp $ PKG_DESTDIR_SUPPORT= user-destdir .include "Makefile.common" +PKGREVISION= 1 OWNER= tron@NetBSD.org COMMENT= X11 (X Window System) IRC client, using the GTK2 toolkit diff --git a/chat/xchat/distinfo b/chat/xchat/distinfo index de2ba63701d..cb1bbfdd189 100644 --- a/chat/xchat/distinfo +++ b/chat/xchat/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.35 2008/07/29 13:57:34 tron Exp $ +$NetBSD: distinfo,v 1.36 2008/08/05 20:36:42 tron Exp $ SHA1 (xchat-2.8.6.tar.bz2) = 7a7463e65cb26c680ed70dd96cec98bcc05435a4 RMD160 (xchat-2.8.6.tar.bz2) = bc199e3b58a9db3dfd9f2af6bac7fb6162c53d6e Size (xchat-2.8.6.tar.bz2) = 1423645 bytes SHA1 (patch-aa) = 99ec48125bc394745b5e5d0d8ebd8323d1aca4af +SHA1 (patch-ab) = b9c9a1e94dc5fbe6365c0f7ccd18e79f7c836355 diff --git a/chat/xchat/patches/patch-ab b/chat/xchat/patches/patch-ab new file mode 100644 index 00000000000..087267a7972 --- /dev/null +++ b/chat/xchat/patches/patch-ab @@ -0,0 +1,57 @@ +$NetBSD: patch-ab,v 1.10 2008/08/05 20:36:42 tron Exp $ + +--- src/common/util.c.orig 2008-02-24 02:59:48.000000000 +0000 ++++ src/common/util.c 2008-08-05 21:23:28.000000000 +0100 +@@ -47,8 +47,16 @@ + #define WANTSOCKET + #include "inet.h" + ++#if defined(__NetBSD__) && (defined(__amd64__) || defined(__i386__)) ++#define USING_NETBSD /**/ ++#endif ++ + #if defined (USING_FREEBSD) || defined (__APPLE__) + #include <sys/sysctl.h> ++#elif defined(USING_NETBSD) ++#define session NetBSD_session ++#include <sys/sysctl.h> ++#undef session + #endif + #ifdef SOCKS + #include <socks.h> +@@ -510,7 +518,7 @@ + return len; + } + +-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) ++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (USING_NETBSD) + + static void + get_cpu_info (double *mhz, int *cpus) +@@ -554,7 +562,7 @@ + *cpus = 1; + + #endif +-#ifdef USING_FREEBSD ++#if defined(USING_FREEBSD) || defined (USING_NETBSD) + + int mib[2], ncpu; + u_long freq; +@@ -656,7 +664,7 @@ + char * + get_cpu_str (void) + { +-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) ++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (USING_NETBSD) + double mhz; + #endif + int cpus = 1; +@@ -670,7 +678,7 @@ + + uname (&un); + +-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) ++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (USING_NETBSD) + get_cpu_info (&mhz, &cpus); + if (mhz) + { |