summaryrefslogtreecommitdiffstats
path: root/sysutils/gkrellm/files
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-02-11 18:37:23 +0000
committerume <ume@FreeBSD.org>2002-02-11 18:37:23 +0000
commit3bf41f4cd6e3110b8fa2397664ef4b812cd3abbe (patch)
treeed14171fff00ac4b7a7dc688adf2870b88820460 /sysutils/gkrellm/files
parent9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec (diff)
downloadFreeBSD-ports-3bf41f4cd6e3110b8fa2397664ef4b812cd3abbe.zip
FreeBSD-ports-3bf41f4cd6e3110b8fa2397664ef4b812cd3abbe.tar.gz
apm and sensor are available only on i386.
Reported by: Xavier Beaudouin <kiwi@oav.net>
Diffstat (limited to 'sysutils/gkrellm/files')
-rw-r--r--sysutils/gkrellm/files/patch-ba22
-rw-r--r--sysutils/gkrellm/files/patch-bb32
2 files changed, 54 insertions, 0 deletions
diff --git a/sysutils/gkrellm/files/patch-ba b/sysutils/gkrellm/files/patch-ba
new file mode 100644
index 0000000..5b707bd
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-ba
@@ -0,0 +1,22 @@
+Index: src/apm.c
+diff -u src/apm.c.orig src/apm.c
+--- src/apm.c.orig Wed Jan 2 06:06:27 2002
++++ src/apm.c Mon Feb 11 10:51:43 2002
+@@ -61,7 +61,7 @@
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/apm_bios.h>
+ #define APMDEV "/dev/apm"
+@@ -206,7 +206,7 @@
+ return TRUE;
+ }
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ read_apm_data = read_freebsd_apm_data;
+ available = TRUE;
+ #endif
diff --git a/sysutils/gkrellm/files/patch-bb b/sysutils/gkrellm/files/patch-bb
new file mode 100644
index 0000000..8fb70de
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-bb
@@ -0,0 +1,32 @@
+Index: src/sensors.c
+diff -u src/sensors.c.orig src/sensors.c
+--- src/sensors.c.orig Wed Jan 2 06:48:02 2002
++++ src/sensors.c Tue Feb 12 02:49:08 2002
+@@ -228,7 +228,7 @@
+ /* ====== System dependent interface ====================================== */
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/cpufunc.h>
+ #if __FreeBSD_version >= 300000
+@@ -805,7 +805,8 @@
+
+
+ /* ----- Other Systems -------------------------------------------------- */
+-#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__)
++#if !(defined(__FreeBSD__) && defined(__i386__)) && \
++ !defined(__linux__) && !defined(__NetBSD__)
+
+ #define SENSORS_DIR ""
+
+@@ -817,7 +818,7 @@
+ static gboolean
+ setup_sensor_interface(void)
+ {
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ get_temperature = get_freebsd_sensor;
+ get_fan = get_freebsd_sensor;
+ get_voltage = get_freebsd_sensor;
OpenPOWER on IntegriCloud