diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/conky/Makefile | 104 | ||||
-rw-r--r-- | sysutils/conky/distinfo | 3 | ||||
-rw-r--r-- | sysutils/conky/files/patch-src-freebsd.c | 11 | ||||
-rw-r--r-- | sysutils/conky/pkg-descr | 3 | ||||
-rw-r--r-- | sysutils/conky/pkg-plist | 4 |
5 files changed, 125 insertions, 0 deletions
diff --git a/sysutils/conky/Makefile b/sysutils/conky/Makefile new file mode 100644 index 000000000..9e2c4b31e --- /dev/null +++ b/sysutils/conky/Makefile @@ -0,0 +1,104 @@ +# New ports collection makefile for: conky +# Date created: 2005-08-27 +# Whom: Roman Bogorodskiy <novel@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= conky +PORTVERSION= 1.4.2 +PORTREVISION= 2 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= novel@FreeBSD.org +COMMENT= An advanced, highly configurable system monitor for X + +USE_BZIP2= yes +HAS_CONFIGURE= yes +USE_ICONV= yes +USE_X_PREFIX= yes +CONFIGURE_ARGS+= --disable-portmon --disable-proc-uptime +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib" + +MAN1= conky.1 + +PORTDOCS= README AUTHORS ChangeLog TODO \ + docs.html variables.html config_settings.html + +.if defined(WITH_BMPX) +BUILD_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx +RUN_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx +LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus +CONFIGURE_ARGS+= --enable-bmpx +.else +CONFIGURE_ARGS+= --disable-bmpx +.endif + +.if defined(WITH_XFT) +LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft +CONFIGURE_ARGS+= --enable-xft +.else +CONFIGURE_ARGS+= --disable-xft +.endif + +.if !defined(WITHOUT_OWN_WINDOW) +CONFIGURE_ARGS+= --enable-own-window +.else +CONFIGURE_ARGS+= --disable-own-widnow +.endif + +.if defined(WITH_MPD) +CONFIGURE_ARGS+= --enable-mpd +.else +CONFIGURE_ARGS+= --disable-mpd +.endif + +.if defined(WITHOUT_DOUBLE_BUFFER) +CONFIGURE_ARGS+= --disable-double-buffer +.endif + +.if defined(WITHOUT_SETI) +CONFIGURE_ARGS+= --disable-seti +.endif + +pre-everything:: + @${ECHO_MSG} "You may specify the following on the command line:" + @${ECHO_MSG} " " + @${ECHO_MSG} "WITH_BMPX=yes to enable BMPx support" + @${ECHO_MSG} "WITH_XFT=yes to enable XFT support" + @${ECHO_MSG} "WITHOUT_OWN_WINDOW=yes to disable own window support" + @${ECHO_MSG} "WITH_MPD=yes to enable MPD support" + @${ECHO_MSG} "WITHOUT_DOUBLE_BUFFER=yes to disable double buffer support" + @${ECHO_MSG} " " + +post-configure: + @${REINPLACE_CMD} -e 's|-lm|-lm -liconv|' ${WRKSRC}/src/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/conky ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/conky.1 ${PREFIX}/man/man1 + +post-install: + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/conkyrc.sample ${EXAMPLESDIR} + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for i in README AUTHORS ChangeLog TODO + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.for i in docs.html variables.html config_settings.html + ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= not supported on 4.x +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/conky/distinfo b/sysutils/conky/distinfo new file mode 100644 index 000000000..9265e2027 --- /dev/null +++ b/sysutils/conky/distinfo @@ -0,0 +1,3 @@ +MD5 (conky-1.4.2.tar.bz2) = 050a53bdb359a96421ef3ddf761f143c +SHA256 (conky-1.4.2.tar.bz2) = e792a1ea4f865225e6f9d1e4cafd405745390a09d48d4a8936d4b0556e6e32b2 +SIZE (conky-1.4.2.tar.bz2) = 400574 diff --git a/sysutils/conky/files/patch-src-freebsd.c b/sysutils/conky/files/patch-src-freebsd.c new file mode 100644 index 000000000..0e1e63220 --- /dev/null +++ b/sysutils/conky/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); + } diff --git a/sysutils/conky/pkg-descr b/sysutils/conky/pkg-descr new file mode 100644 index 000000000..67194efac --- /dev/null +++ b/sysutils/conky/pkg-descr @@ -0,0 +1,3 @@ +Conky is an advanced, highly configurable system monitor for X + +WWW: http://conky.sourceforge.net/ diff --git a/sysutils/conky/pkg-plist b/sysutils/conky/pkg-plist new file mode 100644 index 000000000..b84c16ce3 --- /dev/null +++ b/sysutils/conky/pkg-plist @@ -0,0 +1,4 @@ +@comment $FreeBSD: ports/sysutils/conky/pkg-plist,v 1.1 2005/08/31 07:45:52 novel Exp $ +bin/conky +%%EXAMPLESDIR%%/conkyrc.sample +@dirrm %%EXAMPLESDIR%% |