the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: hotbabe
Version: 0.2.2
Revision: 1004
Description: Displays the system activity
License: Artistic
Maintainer: Todai Fink Team
Depends: gtk+2-shlibs (>= 2.12.0-1), glib2-shlibs (>= 2.14.0-1), pango1-xft2-ft219-shlibs (>= 1.18.4-4), libgettext3-shlibs, libiconv, x11
BuildDepends: atk1 (>= 1.20.0-1), glitz, expat1, libpng3, cairo (>= 1.6-1), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1), gtk+2-dev (>= 2.12.0-1), glib2-dev (>= 2.14.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), pkgconfig (>= 0.21-1), libgettext3-dev, libiconv-dev, x11-dev, xft2-dev
Source: http://dindinx.net/%n/downloads/hot-babe-%v.tar.bz2
Source-MD5: 482a9496b493d2394601689659971042
Patch: %n.patch
CompileScript: PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config make PREFIX=%p
InstallScript: make install PREFIX=%p DESTDIR=%d
DescDetail: <<
Hot-babe is a small graphical utility which displays the system activity in a
very special way. When the CPU is idle, it displays a dressed girl, and when
the activity goes up, as the temperature increases, the girl begins to undress,
to finish totally naked when the system activity reaches 100%. Of course, if
you can be shocked by nudity, don't use it!
<<
DescPort: <<
The patch is provided by 2ch.net. Thanks, Nanashi-san!
http://pc7.2ch.net/test/read.cgi/mac/1089767349/226-227
<<
Homepage: http://dindinx.net/hotbabe/
diff -Nru hot-babe-0.2.2/hot-babe.c hot-babe-0.2.2.fink/hot-babe.c
--- hot-babe-0.2.2/hot-babe.c Mon Dec 6 07:59:38 2004
+++ hot-babe-0.2.2.fink/hot-babe.c Fri May 27 15:43:33 2005
@@ -28,6 +28,10 @@
#include
#endif
#endif
+#ifdef __APPLE__
+#include
+#include
+#endif
/* x11 includes */
#include
@@ -99,6 +103,13 @@
long cp_time[CPUSTATES];
size_t len = sizeof(cp_time);
#endif
+#ifdef __APPLE__
+ unsigned long load, total, oload, ototal;
+ unsigned long ab, ac, ad, ae;
+ static mach_port_t port = NULL;
+ mach_msg_type_number_t count = HOST_CPU_LOAD_INFO_COUNT;
+ host_cpu_load_info_data_t aa;
+#endif
#ifdef __linux__
stat = fopen("/proc/stat", "r");
@@ -113,6 +124,16 @@
ac = cp_time[CP_NICE];
ad = cp_time[CP_SYS];
ae = cp_time[CP_IDLE];
+#endif
+#ifdef __APPLE__
+ if (port == NULL)
+ port = mach_host_self();
+ if (host_statistics(port, HOST_CPU_LOAD_INFO, (host_info_t)&aa, &count) != KERN_SUCCESS)
+ (void)fprintf(stderr, "Cannot get HOST_CPU_LOAD_INFO");
+ ab = aa.cpu_ticks[CPU_STATE_USER];
+ ac = aa.cpu_ticks[CPU_STATE_NICE];
+ ad = aa.cpu_ticks[CPU_STATE_SYSTEM];
+ ae = aa.cpu_ticks[CPU_STATE_IDLE];
#endif
Package: hotbabe
Version: 0.2.2
Revision: 1004
Description: Displays the system activity
License: Artistic
Maintainer: Todai Fink Team
Depends: gtk+2-shlibs (>= 2.12.0-1), glib2-shlibs (>= 2.14.0-1), pango1-xft2-ft219-shlibs (>= 1.18.4-4), libgettext3-shlibs, libiconv, x11
BuildDepends: atk1 (>= 1.20.0-1), glitz, expat1, libpng3, cairo (>= 1.6-1), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1), gtk+2-dev (>= 2.12.0-1), glib2-dev (>= 2.14.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), pkgconfig (>= 0.21-1), libgettext3-dev, libiconv-dev, x11-dev, xft2-dev
Source: http://dindinx.net/%n/downloads/hot-babe-%v.tar.bz2
Source-MD5: 482a9496b493d2394601689659971042
Patch: %n.patch
CompileScript: PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config make PREFIX=%p
InstallScript: make install PREFIX=%p DESTDIR=%d
DescDetail: <<
Hot-babe is a small graphical utility which displays the system activity in a
very special way. When the CPU is idle, it displays a dressed girl, and when
the activity goes up, as the temperature increases, the girl begins to undress,
to finish totally naked when the system activity reaches 100%. Of course, if
you can be shocked by nudity, don't use it!
<<
DescPort: <<
The patch is provided by 2ch.net. Thanks, Nanashi-san!
http://pc7.2ch.net/test/read.cgi/mac/1089767349/226-227
<<
Homepage: http://dindinx.net/hotbabe/
diff -Nru hot-babe-0.2.2/hot-babe.c hot-babe-0.2.2.fink/hot-babe.c
--- hot-babe-0.2.2/hot-babe.c Mon Dec 6 07:59:38 2004
+++ hot-babe-0.2.2.fink/hot-babe.c Fri May 27 15:43:33 2005
@@ -28,6 +28,10 @@
#include
#endif
#endif
+#ifdef __APPLE__
+#include
+#include
+#endif
/* x11 includes */
#include
@@ -99,6 +103,13 @@
long cp_time[CPUSTATES];
size_t len = sizeof(cp_time);
#endif
+#ifdef __APPLE__
+ unsigned long load, total, oload, ototal;
+ unsigned long ab, ac, ad, ae;
+ static mach_port_t port = NULL;
+ mach_msg_type_number_t count = HOST_CPU_LOAD_INFO_COUNT;
+ host_cpu_load_info_data_t aa;
+#endif
#ifdef __linux__
stat = fopen("/proc/stat", "r");
@@ -113,6 +124,16 @@
ac = cp_time[CP_NICE];
ad = cp_time[CP_SYS];
ae = cp_time[CP_IDLE];
+#endif
+#ifdef __APPLE__
+ if (port == NULL)
+ port = mach_host_self();
+ if (host_statistics(port, HOST_CPU_LOAD_INFO, (host_info_t)&aa, &count) != KERN_SUCCESS)
+ (void)fprintf(stderr, "Cannot get HOST_CPU_LOAD_INFO");
+ ab = aa.cpu_ticks[CPU_STATE_USER];
+ ac = aa.cpu_ticks[CPU_STATE_NICE];
+ ad = aa.cpu_ticks[CPU_STATE_SYSTEM];
+ ae = aa.cpu_ticks[CPU_STATE_IDLE];
#endif