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
|
2005-11-17 10:48:37 +00:00
|
|
|
PORTVERSION= 1.3.4
|
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
|
2005-08-31 10:55:33 +00:00
|
|
|
USE_REINPLACE= yes
|
2005-08-31 07:45:52 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_X_PREFIX= yes
|
2005-10-26 16:17:34 +00:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
|
2005-08-31 07:45:52 +00:00
|
|
|
|
|
|
|
MAN1= conky.1
|
|
|
|
|
|
|
|
PORTDOCS= README AUTHORS ChangeLog TODO \
|
|
|
|
docs.html variables.html config_settings.html
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2005-08-31 10:55:33 +00:00
|
|
|
post-extract:
|
2005-09-02 18:07:32 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|== xyes|= xyes|g" ${WRKSRC}/configure
|
2005-08-31 10:55:33 +00:00
|
|
|
|
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}
|
|
|
|
.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
|
|
|
|
BROKEN= "Doesn't compile on 4.x"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|