2005-08-31 07:45:52 +00:00
|
|
|
# New ports collection makefile for: conky
|
|
|
|
# Date created: 2005-08-27
|
|
|
|
# Whom: Roman Bogorodskiy <novel@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= conky
|
2006-12-24 09:05:41 +00:00
|
|
|
PORTVERSION= 1.4.5
|
2005-08-31 07:45:52 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= novel@FreeBSD.org
|
|
|
|
COMMENT= An advanced, highly configurable system monitor for X
|
|
|
|
|
2005-11-24 18:08:15 +00:00
|
|
|
USE_BZIP2= yes
|
2006-12-04 05:24:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-05-22 17:01:14 +00:00
|
|
|
USE_ICONV= yes
|
2005-08-31 07:45:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
2006-11-12 13:52:38 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-portmon \
|
|
|
|
--disable-proc-uptime \
|
|
|
|
--disable-hddtemp
|
2006-05-22 17:01:14 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2005-08-31 07:45:52 +00:00
|
|
|
|
|
|
|
MAN1= conky.1
|
|
|
|
|
2006-12-24 09:05:41 +00:00
|
|
|
PORTDOCS= README AUTHORS ChangeLog TODO NEWS \
|
2005-08-31 07:45:52 +00:00
|
|
|
docs.html variables.html config_settings.html
|
|
|
|
|
2006-11-12 13:52:38 +00:00
|
|
|
.if defined(WITH_AUDACIOUS)
|
|
|
|
LIB_DEPENDS+= audacious.3:${PORTSDIR}/multimedia/audacious
|
|
|
|
CONFIGURE_ARGS+= --enable-audacious
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-audacious
|
|
|
|
.endif
|
|
|
|
|
2006-01-02 08:20:33 +00:00
|
|
|
.if defined(WITH_BMPX)
|
2006-05-24 04:19:58 +00:00
|
|
|
BUILD_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
|
|
|
|
RUN_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
|
2006-10-14 08:54:54 +00:00
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
2006-01-02 08:20:33 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-bmpx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-bmpx
|
|
|
|
.endif
|
|
|
|
|
2005-08-31 07:45:52 +00:00
|
|
|
.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
|
|
|
|
|
2006-08-11 17:18:58 +00:00
|
|
|
.if defined(WITHOUT_SETI)
|
|
|
|
CONFIGURE_ARGS+= --disable-seti
|
|
|
|
.endif
|
|
|
|
|
2006-01-02 08:20:33 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "You may specify the following on the command line:"
|
|
|
|
@${ECHO_MSG} " "
|
2006-11-13 13:13:30 +00:00
|
|
|
@${ECHO_MSG} "WITH_AUDACIOUS=yes to enable Audacious support"
|
2006-01-02 08:20:33 +00:00
|
|
|
@${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} " "
|
2005-08-31 10:55:33 +00:00
|
|
|
|
2006-05-22 17:01:14 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lm|-lm -liconv|' ${WRKSRC}/src/Makefile
|
|
|
|
|
2005-08-31 07:45:52 +00:00
|
|
|
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}
|
2006-12-24 09:05:41 +00:00
|
|
|
.for i in README AUTHORS ChangeLog TODO NEWS
|
2005-08-31 07:45:52 +00:00
|
|
|
${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
|
2006-05-22 17:01:14 +00:00
|
|
|
IGNORE= not supported on 4.x
|
2005-08-31 07:45:52 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|