init
This commit is contained in:
68
sysutils/conky/Makefile
Normal file
68
sysutils/conky/Makefile
Normal file
@@ -0,0 +1,68 @@
|
||||
# $OpenBSD: Makefile,v 1.60 2020/07/17 08:36:04 tb Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= ${APM_ARCHS}
|
||||
|
||||
COMMENT= light-weight system monitor
|
||||
|
||||
CATEGORIES= sysutils
|
||||
|
||||
GH_ACCOUNT = brndnmtthws
|
||||
GH_PROJECT = conky
|
||||
GH_TAGNAME = v1.11.6
|
||||
|
||||
# mostly GPLv3; see COPYING
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
BUILD_DEPENDS= textproc/docbook2x
|
||||
|
||||
CONFIGURE_ARGS= -Wno-dev
|
||||
|
||||
CONFIGURE_ENV= CMAKE_C_FLAGS="${CFLAGS} -I${X11BASE}/include" \
|
||||
CMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include"
|
||||
|
||||
WANTLIB= c crypto curl curses glib-2.0 iconv intl kvm lzma m \
|
||||
nghttp2 ossaudio pcre pthread ssl xml2 z ${MODLUA_WANTLIB}
|
||||
|
||||
MODULES= lang/lua devel/cmake
|
||||
MODLUA_SA= Yes
|
||||
|
||||
LIB_DEPENDS= devel/glib2 \
|
||||
devel/pcre \
|
||||
net/curl \
|
||||
textproc/libxml \
|
||||
${MODLUA_LIB_DEPENDS}
|
||||
|
||||
FLAVORS= no_x11 xmms2
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:Mno_x11}
|
||||
. if ${FLAVOR:Mxmms2}
|
||||
ERRORS+="Fatal: nonsense combination of flavors"
|
||||
. else
|
||||
CONFIGURE_ARGS+=--disable-double-buffer \
|
||||
--disable-own-window \
|
||||
--disable-xdamage \
|
||||
--disable-xft \
|
||||
--disable-x11
|
||||
. endif
|
||||
.else
|
||||
CONFIGURE_ARGS+=--enable-imlib2
|
||||
LIB_DEPENDS+= graphics/imlib2
|
||||
WANTLIB += Imlib2 X11 Xdamage Xext Xfixes Xft
|
||||
WANTLIB += Xrender expat fontconfig freetype xcb
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:Mxmms2}
|
||||
CONFIGURE_ARGS+=--enable-xmms2
|
||||
LIB_DEPENDS+= audio/xmms2
|
||||
WANTLIB+= xmmsclient
|
||||
.endif
|
||||
|
||||
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
|
||||
|
||||
FAKE_FLAGS= configdir=${PREFIX}/share/examples/conky
|
||||
|
||||
.include <bsd.port.mk>
|
||||
Reference in New Issue
Block a user