2020-07-17 08:36:04 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.60 2020/07/17 08:36:04 tb Exp $
|
2007-10-19 12:12:33 +00:00
|
|
|
|
2010-03-21 11:35:26 +00:00
|
|
|
ONLY_FOR_ARCHS= ${APM_ARCHS}
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2008-02-03 16:04:09 +00:00
|
|
|
COMMENT= light-weight system monitor
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2012-12-31 09:36:38 +00:00
|
|
|
DISTNAME= conky-1.9.0
|
2008-02-03 16:04:09 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
HOMEPAGE= http://conky.sourceforge.net/
|
2020-07-17 08:36:04 +00:00
|
|
|
REVISION= 20
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2008-02-03 16:04:09 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=conky/}
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2011-04-28 10:31:16 +00:00
|
|
|
# mostly GPLv3; see COPYING
|
2019-07-12 21:02:12 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2017-11-16 18:39:25 +00:00
|
|
|
WANTLIB= c crypto curl curses glib-2.0 iconv intl kvm lzma m \
|
|
|
|
nghttp2 ossaudio pcre pthread ssl xml2 z ${MODLUA_WANTLIB}
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2017-11-16 18:39:25 +00:00
|
|
|
MODULES= lang/lua
|
2012-07-10 15:22:44 +00:00
|
|
|
MODLUA_SA= Yes
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2010-11-20 17:22:40 +00:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
devel/pcre \
|
|
|
|
net/curl \
|
|
|
|
textproc/libxml \
|
2012-05-15 19:38:01 +00:00
|
|
|
${MODLUA_LIB_DEPENDS}
|
2007-10-10 21:20:23 +00:00
|
|
|
|
2014-11-04 12:38:57 +00:00
|
|
|
FLAVORS= no_x11 xmms2
|
2009-05-10 19:07:47 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2014-11-04 12:38:57 +00:00
|
|
|
. if ${FLAVOR:Mxmms2}
|
2011-04-27 12:55:10 +00:00
|
|
|
ERRORS+="Fatal: nonsense combination of flavors"
|
|
|
|
. else
|
2009-05-10 19:07:47 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-double-buffer \
|
2011-04-27 12:55:10 +00:00
|
|
|
--disable-own-window \
|
|
|
|
--disable-xdamage \
|
|
|
|
--disable-xft \
|
|
|
|
--disable-x11
|
|
|
|
. endif
|
2009-05-10 19:07:47 +00:00
|
|
|
.else
|
2011-06-13 10:11:05 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-imlib2
|
|
|
|
LIB_DEPENDS+= graphics/imlib2
|
2012-12-23 12:25:30 +00:00
|
|
|
WANTLIB += Imlib2 X11 Xdamage Xext Xfixes Xft
|
2017-10-23 17:11:02 +00:00
|
|
|
WANTLIB += Xrender expat fontconfig freetype xcb
|
2009-05-10 19:07:47 +00:00
|
|
|
.endif
|
2008-02-03 16:04:09 +00:00
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mxmms2}
|
2011-04-27 12:55:10 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-xmms2
|
|
|
|
LIB_DEPENDS+= audio/xmms2
|
|
|
|
WANTLIB+= xmmsclient
|
|
|
|
.endif
|
|
|
|
|
2008-02-03 16:04:09 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS+=--enable-mpd \
|
|
|
|
--enable-rss \
|
2009-05-10 19:07:47 +00:00
|
|
|
--disable-config-output \
|
2011-04-27 12:55:10 +00:00
|
|
|
--disable-moc \
|
2009-11-23 16:46:20 +00:00
|
|
|
--disable-portmon \
|
|
|
|
--enable-lua \
|
2011-04-27 12:55:10 +00:00
|
|
|
--enable-curl \
|
|
|
|
--with-libiconv-prefix="${LOCALBASE}"
|
2012-07-10 15:22:44 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
|
|
|
|
LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
|
2007-10-19 12:12:33 +00:00
|
|
|
|
2007-10-10 21:20:23 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/conky
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/conky
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/conky
|
|
|
|
|
2008-02-03 16:04:09 +00:00
|
|
|
FAKE_FLAGS= configdir=${PREFIX}/share/examples/conky
|
|
|
|
|
2007-10-10 21:20:23 +00:00
|
|
|
.include <bsd.port.mk>
|