mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Fix bmpx dependency
- Fix CPU frequency displaying [1] Reported by: Karsten Rothemund <photor@photor.de> [1]
This commit is contained in:
parent
a80fbc4a9a
commit
e8ed9fc36e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163227
@ -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
|
||||
|
11
sysutils/conky-awesome/files/patch-src-freebsd.c
Normal file
11
sysutils/conky-awesome/files/patch-src-freebsd.c
Normal file
@ -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);
|
||||
}
|
@ -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
|
||||
|
11
sysutils/conky/files/patch-src-freebsd.c
Normal file
11
sysutils/conky/files/patch-src-freebsd.c
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user