aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/conky-awesome
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2006-05-24 12:19:58 +0800
committernovel <novel@FreeBSD.org>2006-05-24 12:19:58 +0800
commit5f414034a534e98115e2b4447fbb65ca0e823d95 (patch)
treee69ac606465350a95edf8358df5653f3506f9375 /sysutils/conky-awesome
parente91e7ecb8d690ab97d8c9669db22bd52dd1d176d (diff)
downloadfreebsd-ports-gnome-5f414034a534e98115e2b4447fbb65ca0e823d95.tar.gz
freebsd-ports-gnome-5f414034a534e98115e2b4447fbb65ca0e823d95.tar.zst
freebsd-ports-gnome-5f414034a534e98115e2b4447fbb65ca0e823d95.zip
- Fix bmpx dependency
- Fix CPU frequency displaying [1] Reported by: Karsten Rothemund <photor@photor.de> [1]
Diffstat (limited to 'sysutils/conky-awesome')
-rw-r--r--sysutils/conky-awesome/Makefile5
-rw-r--r--sysutils/conky-awesome/files/patch-src-freebsd.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/conky-awesome/Makefile b/sysutils/conky-awesome/Makefile
index 4b81c2c6b6a1..bda0d86265e3 100644
--- a/sysutils/conky-awesome/Makefile
+++ b/sysutils/conky-awesome/Makefile
@@ -7,6 +7,7 @@
PORTNAME= conky
PORTVERSION= 1.4.2
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -28,8 +29,8 @@ PORTDOCS= README AUTHORS ChangeLog TODO \
docs.html variables.html config_settings.html
.if defined(WITH_BMPX)
-BUILD_DEPENDS+= bmpx:${PORTSDIR}/multimedia/bmpx
-RUN_DEPENDS+= bmpx:${PORTSDIR}/multimedia/bmpx
+BUILD_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
+RUN_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
LIB_DEPENDS+= dbus-1.2:${PORTSDIR}/devel/dbus
CONFIGURE_ARGS+= --enable-bmpx
.else
diff --git a/sysutils/conky-awesome/files/patch-src-freebsd.c b/sysutils/conky-awesome/files/patch-src-freebsd.c
new file mode 100644
index 000000000000..0e1e6322072a
--- /dev/null
+++ b/sysutils/conky-awesome/files/patch-src-freebsd.c
@@ -0,0 +1,11 @@
+--- src/freebsd.c.orig Sun Mar 26 01:47:50 2006
++++ src/freebsd.c Wed May 24 07:57:35 2006
+@@ -508,7 +508,7 @@
+
+ if (GETSYSCTL("dev.cpu.0.freq", freq) == 0)
+ snprintf(p_client_buffer, client_buffer_size,
+- p_format, freq/divisor);
++ p_format, (float)freq/(float)divisor);
+ else
+ snprintf(p_client_buffer, client_buffer_size, p_format, 0.0f);
+ }