2005-08-31 09:45:52 +02:00
|
|
|
# New ports collection makefile for: conky
|
|
|
|
# Date created: 2005-08-27
|
|
|
|
# Whom: Roman Bogorodskiy <novel@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= conky
|
2009-09-17 21:03:46 +02:00
|
|
|
PORTVERSION= 1.7.2
|
2009-12-02 18:31:04 +01:00
|
|
|
PORTREVISION= 2
|
2005-08-31 09:45:52 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF
|
2005-08-31 09:45:52 +02:00
|
|
|
|
2009-03-25 18:45:33 +01:00
|
|
|
MAINTAINER?= ntarmos@cs.uoi.gr
|
2008-05-25 19:20:54 +02:00
|
|
|
COMMENT?= An advanced, highly configurable system monitor for X
|
|
|
|
|
|
|
|
CONFLICTS?= conky-awesome-[0-9]*
|
|
|
|
SLAVEDIRS= sysutils/conky-awesome
|
2005-08-31 09:45:52 +02:00
|
|
|
|
2005-11-24 19:08:15 +01:00
|
|
|
USE_BZIP2= yes
|
2006-12-04 06:24:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-05-25 19:20:54 +02:00
|
|
|
USE_XORG?= x11 xext xdamage
|
|
|
|
USE_GNOME?= pkgconfig
|
2006-05-22 19:01:14 +02:00
|
|
|
USE_ICONV= yes
|
2009-06-17 19:29:41 +02:00
|
|
|
USE_GMAKE= yes
|
2006-11-12 14:52:38 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-portmon \
|
|
|
|
--disable-hddtemp
|
2009-06-14 01:47:55 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2005-08-31 09:45:52 +02:00
|
|
|
|
|
|
|
MAN1= conky.1
|
2009-06-14 01:47:55 +02:00
|
|
|
PLIST_FILES= bin/conky
|
|
|
|
PORTEXAMPLES= conkyrc.sample
|
2006-12-24 10:05:41 +01:00
|
|
|
PORTDOCS= README AUTHORS ChangeLog TODO NEWS \
|
2005-08-31 09:45:52 +02:00
|
|
|
docs.html variables.html config_settings.html
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
OPTIONS+= AUDACIOUS "Enable Audacious support" Off \
|
|
|
|
BMPX "Enable BMPX support" Off \
|
|
|
|
LUA "Enable Lua support" Off \
|
|
|
|
MPD "Enable MPD support" Off \
|
|
|
|
XMMS2 "Enable XMMS2 support" Off
|
|
|
|
|
2009-06-17 19:29:41 +02:00
|
|
|
.if !empty(USE_XORG)
|
|
|
|
OPTIONS+= DOUBLE_BUFFER "Enable double buffering" On \
|
|
|
|
IMLIB2 "Enable Imlib2 support" Off \
|
|
|
|
XFT "Enable Xft support" Off
|
|
|
|
.endif
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-06-17 19:29:41 +02:00
|
|
|
.if empty(USE_XORG)
|
|
|
|
WITHOUT_DOUBLE_BUFFER= On
|
|
|
|
.undef WITH_IMLIB2
|
|
|
|
.undef WITH_XFT
|
|
|
|
.endif
|
|
|
|
|
2006-11-12 14:52:38 +01:00
|
|
|
.if defined(WITH_AUDACIOUS)
|
2009-05-21 09:47:01 +02:00
|
|
|
LIB_DEPENDS+= audclient.2:${PORTSDIR}/multimedia/audacious
|
2006-11-12 14:52:38 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-audacious
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-audacious
|
|
|
|
.endif
|
|
|
|
|
2006-01-02 09:20:33 +01:00
|
|
|
.if defined(WITH_BMPX)
|
2006-05-24 06:19:58 +02:00
|
|
|
BUILD_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
|
|
|
|
RUN_DEPENDS+= beep-media-player-2:${PORTSDIR}/multimedia/bmpx
|
2006-10-14 10:54:54 +02:00
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
2006-01-02 09:20:33 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-bmpx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-bmpx
|
|
|
|
.endif
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
.if defined(WITH_LUA)
|
|
|
|
USE_LUA= 5.1+
|
|
|
|
CONFIGURE_ARGS+= --enable-lua
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lua
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IMLIB2)
|
|
|
|
LIB_DEPENDS+= Imlib2.5:${PORTSDIR}/graphics/imlib2
|
|
|
|
CONFIGURE_ARGS+= --enable-imlib2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-imlib2
|
|
|
|
.endif
|
|
|
|
|
2005-08-31 09:45:52 +02:00
|
|
|
.if defined(WITH_XFT)
|
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
|
|
|
CONFIGURE_ARGS+= --enable-xft
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xft
|
|
|
|
.endif
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
.if defined(WITHOUT_MPD)
|
2005-08-31 09:45:52 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-mpd
|
|
|
|
.endif
|
|
|
|
|
2008-01-21 10:06:57 +01:00
|
|
|
.if defined(WITH_XMMS2)
|
2009-09-18 21:49:25 +02:00
|
|
|
LIB_DEPENDS+= xmmsclient.5:${PORTSDIR}/audio/xmms2
|
2008-01-21 10:06:57 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-xmms2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xmms2
|
|
|
|
.endif
|
|
|
|
|
2005-08-31 09:45:52 +02:00
|
|
|
.if defined(WITHOUT_DOUBLE_BUFFER)
|
|
|
|
CONFIGURE_ARGS+= --disable-double-buffer
|
|
|
|
.endif
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,lua5\.1,lua-5.1,g' \
|
|
|
|
${WRKSRC}/configure
|
2009-09-17 21:03:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,imlib_context_disconnect_display();,,g' \
|
|
|
|
${WRKSRC}/src/imlib2.c
|
2005-08-31 12:55:33 +02:00
|
|
|
|
2005-08-31 09:45:52 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/conky ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/conky.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
post-install:
|
2009-06-14 01:47:55 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2005-08-31 09:45:52 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2009-06-17 19:29:41 +02:00
|
|
|
. if !empty(USE_XORG)
|
2009-05-03 20:18:27 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/conky.conf ${EXAMPLESDIR}/conkyrc.sample
|
2009-06-17 19:29:41 +02:00
|
|
|
. else
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/conky_no_x11.conf ${EXAMPLESDIR}/conkyrc.sample
|
|
|
|
. endif
|
2009-06-14 01:47:55 +02:00
|
|
|
.endif
|
2005-08-31 09:45:52 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-12-24 10:05:41 +01:00
|
|
|
.for i in README AUTHORS ChangeLog TODO NEWS
|
2005-08-31 09:45:52 +02: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
|
|
|
|
|
2009-06-14 01:47:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|