freebsd-ports/sysutils/conky/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

143 lines
4.2 KiB
Makefile

# Created by: Roman Bogorodskiy <novel@FreeBSD.org>
# $FreeBSD$
PORTNAME= conky
PORTVERSION= 1.9.0
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= ntarmos@ceid.upatras.gr
COMMENT?= Advanced, highly configurable system monitor for X11
CONFLICTS?= conky-awesome-[0-9]*
SLAVEDIRS= sysutils/conky-awesome
USES= gmake iconv pkgconfig tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-portmon \
--disable-hddtemp \
--disable-alsa \
--disable-bmpx \
--disable-iostats
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/conky man/man1/conky.1.gz
PORTEXAMPLES= conkyrc.sample
PORTDOCS= README AUTHORS ChangeLog TODO NEWS \
docs.html variables.html config_settings.html
OPTIONS_DEFINE= APCUPSD AUDACIOUS INOTIFY LUA METAR MOC MPD NCURSES RSS \
X11 XMMS2 XOAP
OPTIONS_GROUP?= X11
OPTIONS_GROUP_X11= ARGB DOUBLE_BUFFER IMLIB2 XFT LUA_CAIRO LUA_IMLIB2
OPTIONS_DEFAULT?= X11 ARGB DOUBLE_BUFFER
APCUPSD_DESC= Monitor APCUPSD
APCUPSD_CONFIGURE_ENABLE=apcupsd
ARGB_DESC= Use an ARGB visual to draw on X11
ARGB_CONFIGURE_ENABLE= argb
AUDACIOUS_DESC= Control Audacious sound player
AUDACIOUS_CONFIGURE_ENABLE=audacious
AUDACIOUS_LIB_DEPENDS= libaudclient.so:${PORTSDIR}/multimedia/audacious
DOUBLE_BUFFER_DESC= Enable X11 double buffering
DOUBLE_BUFFER_CONFIGURE_ENABLE=double-buffer
INOTIFY_DESC= Monitor file changes via Inotify
INOTIFY_CONFIGURE_ENABLE=inotify
INOTIFY_LIB_DEPENDS= libinotify.so:${PORTSDIR}/devel/libinotify
LUA_CAIRO_DESC= Lua-Cairo binding
LUA_CAIRO_CONFIGURE_ENABLE=lua-cairo
LUA_CAIRO_LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo
LUA_IMLIB2_DESC= Lua-Imlib2 binding
LUA_IMLIB2_CONFIGURE_ENABLE=lua-imlib2
METAR_DESC= Display METAR weather reports
METAR_CONFIGURE_ENABLE= weather-metar
METAR_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
MOC_DESC= Control MOC (Music On Console)
MOC_CONFIGURE_ENABLE= moc
MPD_DESC= Control MPD (Music Player Daemon)
MPD_CONFIGURE_ENABLE= mpd
NCURSES_DESC= Use ncurses to draw on terminals
NCURSES_CONFIGURE_ENABLE=ncurses
RSS_DESC= Display RSS feeds
RSS_CONFIGURE_ENABLE= rss
RSS_USE= GNOME=glib20
RSS_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libxml2.so:${PORTSDIR}/textproc/libxml2
XFT_CONFIGURE_ENABLE= xft
XFT_LIB_DEPENDS= libXft.so:${PORTSDIR}/x11-fonts/libXft
XMMS2_DESC= Control XMMS2 media player
XMMS2_CONFIGURE_ENABLE= xmms2
XMMS2_LIB_DEPENDS= libxmmsclient.so:${PORTSDIR}/audio/xmms2
XOAP_DESC= Display XOAP weather reports
XOAP_CONFIGURE_ENABLE= weather-xoap
XOAP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libxml2.so:${PORTSDIR}/textproc/libxml2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MARGB} || ${PORT_OPTIONS:MDOUBLE_BUFFER} || ${PORT_OPTIONS:MIMLIB2} || ${PORT_OPTIONS:MLUA_CAIRO} || ${PORT_OPTIONS:MLUA_IMLIB2} || ${PORT_OPTIONS:MXFT} || ${PORT_OPTIONS:MX11}
USE_XORG= x11 xext xdamage
CONFIGURE_ARGS+= --enable-x11 --enable-own-window
EXAMPLE_CONF_FILE= ${WRKSRC}/data/conky.conf
.else
CONFIGURE_ARGS+= --disable-x11 --disable-own-window
EXAMPLE_CONF_FILE= ${WRKSRC}/data/conky_no_x11.conf
.endif
.if ${PORT_OPTIONS:MIMLIB2} || ${PORT_OPTIONS:MLUA_IMLIB2}
LIB_DEPENDS+= libImlib2.so:${PORTSDIR}/graphics/imlib2
CONFIGURE_ARGS+= --enable-imlib2
.else
CONFIGURE_ARGS+= --disable-imlib2
.endif
.if ${PORT_OPTIONS:MLUA} || ${PORT_OPTIONS:MLUA_CAIRO} || ${PORT_OPTIONS:MLUA_IMLIB2}
USE_LUA= 5.1+
CONFIGURE_ARGS+= --enable-lua
.else
CONFIGURE_ARGS+= --disable-lua
.endif
.if ${PORT_OPTIONS:MLUA_CAIRO} || ${PORT_OPTIONS:MLUA_IMLIB2}
LUA_COMPS= toluaxx
.endif
post-patch:
@${REINPLACE_CMD} -e 's,lua5\.1,lua-5.1,g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,imlib_context_disconnect_display();,,g' \
${WRKSRC}/src/imlib2.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/conky ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/conky.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLE_CONF_FILE} ${STAGEDIR}${EXAMPLESDIR}/conkyrc.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README AUTHORS ChangeLog TODO NEWS
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.for i in docs.html variables.html config_settings.html
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>