blob: 74c9a4df41023c34880e596ed944709cedbcfc80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
PORTNAME= conky
PORTVERSION= 1.14.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= madpilot@FreeBSD.org
COMMENT?= Advanced, highly configurable system monitor for X11
WWW= https://github.com/brndnmtthws/conky
LIB_DEPENDS= libinotify.so:devel/libinotify
BUILD_DEPENDS= gsed:textproc/gsed \
pandoc:textproc/hs-pandoc \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR}
USES= cpe cmake:noninja compiler:c++11-lib gettext-runtime iconv \
localbase lua:52-53 pkgconfig python:3.7+,build tar:bzip2
CMAKE_ARGS= -DBUILD_PORT_MONITORS:BOOL=false \
-DBUILD_IBM:BOOL=false \
-DBUILD_HDDTEMP:BOOL=false \
-DBUILD_IOSTATS:BOOL=false \
-DBUILD_AUDACIOUS:BOOL=false \
-DBUILD_DOCS:BOOL=true \
-DAPP_SED=${LOCALBASE}/bin/gsed
CONFLICTS?= conky-awesome
SLAVEDIRS= sysutils/conky-awesome
PLIST_FILES= bin/conky man/man1/conky.1.gz
PORTEXAMPLES= conky.conf conky_no_x11.conf convert.lua
PORTDOCS= config_settings.yaml variables.yaml lua.yaml
USE_GITHUB= yes
GH_ACCOUNT= brndnmtthws
OPTIONS_DEFINE= APCUPSD CURL DOCS EXAMPLES IPV6 METAR MOC MPD NCURSES RSS \
X11 XOAP
OPTIONS_GROUP?= X11
OPTIONS_GROUP_X11= ARGB DOUBLE_BUFFER IMLIB2 XFT XINERAMA LUA_CAIRO LUA_IMLIB2 LUA_RSVG
OPTIONS_DEFAULT?= X11 ARGB DOUBLE_BUFFER XFT LUA_CAIRO
APCUPSD_DESC= Monitor APCUPSD
APCUPSD_CMAKE_BOOL= BUILD_APCUPSD
ARGB_DESC= Use an ARGB visual to draw on X11
ARGB_CMAKE_BOOL= BUILD_ARGB
ARGB_IMPLIES= X11
CURL_CMAKE_BOOL= BUILD_CURL
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
DOUBLE_BUFFER_DESC= X11 double buffering
DOUBLE_BUFFER_CMAKE_BOOL=BUILD_XDBE
DOUBLE_BUFFER_IMPLIES= X11
IMLIB2_CMAKE_BOOL= BUILD_IMLIB2
IMLIB2_LIB_DEPENDS= libImlib2.so:graphics/imlib2
IMLIB2_IMPLIES= X11
IMLIB2_USE= xorg=ice,sm
IPV6_CMAKE_BOOL= BUILD_IPV6
LUA_CAIRO_DESC= Lua-Cairo binding
LUA_CAIRO_CMAKE_BOOL= BUILD_LUA_CAIRO
LUA_CAIRO_USES= gnome
LUA_CAIRO_USE= gnome=cairo
LUA_CAIRO_PLIST_FILES= lib/conky/libcairo.so
LUA_CAIRO_IMPLIES= X11
LUA_IMLIB2_DESC= Lua-Imlib2 binding
LUA_IMLIB2_CMAKE_BOOL= BUILD_LUA_IMLIB2
LUA_IMLIB2_PLIST_FILES= lib/conky/libimlib2.so
LUA_IMLIB2_IMPLIES= IMLIB2 X11
LUA_RSVG_DESC= Lua-rsvg binding
LUA_RSVG_CMAKE_BOOL= BUILD_LUA_RSVG
LUA_RSVG_USES= gnome
LUA_RSVG_USE= gnome=librsvg2
LUA_RSVG_PLIST_FILES= lib/conky/librsvg.so
LUA_RSVG_IMPLIES= X11
METAR_DESC= Display METAR weather reports
METAR_CMAKE_BOOL= BUILD_WEATHER_METAR
METAR_IMPLIES= CURL
MOC_DESC= Control MOC (Music On Console)
MOC_CMAKE_BOOL= BUILD_MOC
MPD_DESC= Control MPD (Music Player Daemon)
MPD_CMAKE_BOOL= BUILD_MPD
NCURSES_DESC= Use ncurses to draw on terminals
NCURSES_CMAKE_BOOL= BUILD_NCURSES
NCURSES_USES= ncurses:port
RSS_DESC= Display RSS feeds
RSS_CMAKE_BOOL= BUILD_RSS
RSS_USES= gnome
RSS_USE= gnome=glib20,libxml2
RSS_IMPLIES= CURL
X11_USES= xorg
X11_USE= xorg=x11,xext,xdamage,xfixes
X11_CMAKE_BOOL= BUILD_X11 OWN_WINDOW
X11_VARS= EXAMPLE_CONF_FILE=${WRKSRC}/data/conky.conf
X11_VARS_OFF= EXAMPLE_CONF_FILE=${WRKSRC}/data/conky_no_x11.conf
XFT_CMAKE_BOOL= BUILD_XFT
XFT_USE= xorg=xft
XFT_IMPLIES= X11
XINERAMA_CMAKE_BOOL= BUILD_XINERAMA
XINERAMA_USE= xorg=xinerama
XINERAMA_IMPLIES= X11
XOAP_DESC= Display XOAP weather reports
XOAP_CMAKE_BOOL= BUILD_WEATHER_XOAP
XOAP_IMPLIES= CURL METAR
XOAP_USES= gnome
XOAP_USE= gnome=libxml2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLUA_CAIRO} && ${PORT_OPTIONS:MLUA_IMLIB2}
PLIST_FILES+= lib/conky/libcairo_imlib2_helper.so
.endif
# disable apm on non-x86 archs
.if ${ARCH} != amd64 && ${ARCH} != i386
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src_CMakeLists.txt
.endif
post-patch:
@${REINPLACE_CMD} -e 's/^#\(set(RELEASE true\)/\1/' \
-e 's/-D_POSIX_C_SOURCE=200809L/& -D__BSD_VISIBLE=1 -D_XOPEN_SOURCE=700/' \
${WRKSRC}/cmake/Conky.cmake
@${REINPLACE_CMD} -e 's,^set(INCLUDE_SEARCH_PATH \(.*\)),set(INCLUDE_SEARCH_PATH \1 ${LUA_INCDIR}),' \
-e 's/ -lbsd/ -lintl -linotify/' \
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
.if ${LUA_DEFAULT} == 5.2
# Force using lua 5.2
@${REINPLACE_CMD} -e 's/lua.*5\.*3//' \
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
.elif ${LUA_DEFAULT} == 5.3
# Force using lua 5.3
@${REINPLACE_CMD} -e 's/lua.*5\.*2//' \
${WRKSRC}/cmake/ConkyPlatformChecks.cmake
.endif
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|