Lines 15-24
Link Here
|
15 |
USE_ICONV= yes |
15 |
USE_ICONV= yes |
16 |
USE_BZIP2= yes |
16 |
USE_BZIP2= yes |
17 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
18 |
USE_XORG?= x11 xext xdamage |
|
|
19 |
USE_GNOME?= pkgconfig |
20 |
USE_ICONV= yes |
18 |
USE_ICONV= yes |
21 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
|
|
20 |
USE_PKGCONFIG= build |
22 |
CONFIGURE_ARGS+= --disable-portmon \ |
21 |
CONFIGURE_ARGS+= --disable-portmon \ |
23 |
--disable-hddtemp \ |
22 |
--disable-hddtemp \ |
24 |
--disable-alsa \ |
23 |
--disable-alsa \ |
Lines 32-163
Link Here
|
32 |
PORTDOCS= README AUTHORS ChangeLog TODO NEWS \ |
31 |
PORTDOCS= README AUTHORS ChangeLog TODO NEWS \ |
33 |
docs.html variables.html config_settings.html |
32 |
docs.html variables.html config_settings.html |
34 |
|
33 |
|
35 |
OPTIONS+= APCUPSD "Enable APCUPSD support" Off \ |
34 |
OPTIONS_DEFINE= APCUPSD AUDACIOUS INOTIFY LUA METAR MPD NCURSES RSS \ |
36 |
AUDACIOUS "Enable Audacious support" Off \ |
35 |
X11 XMMS2 XOAP |
37 |
INOTIFY "Enable inotify support" Off \ |
|
|
38 |
MPD "Enable MPD support" Off \ |
39 |
NCURSES "Enable ncurses support" Off \ |
40 |
RSS "Enable RSS support" Off \ |
41 |
METAR "Enable METAR Weather support" Off \ |
42 |
XOAP "Enable XOAP Weather support" Off \ |
43 |
XMMS2 "Enable XMMS2 support" Off |
44 |
|
36 |
|
45 |
.if !empty(USE_XORG) |
37 |
OPTIONS_GROUP?= X11 |
46 |
OPTIONS+= DOUBLE_BUFFER "Enable double buffering" On \ |
38 |
OPTIONS_GROUP_X11= DOUBLE_BUFFER IMLIB2 XFT LUA_CAIRO LUA_IMLIB2 |
47 |
IMLIB2 "Enable Imlib2 support" Off \ |
39 |
OPTIONS_DEFAULT?= X11 DOUBLE_BUFFER |
48 |
LUA "Enable Lua support" Off \ |
|
|
49 |
LUA_CAIRO "Enable Lua-Cairo binding (impl. Lua)" Off \ |
50 |
LUA_IMLIB2 "Enable Lua-Imlib2 binding (impl. Lua/Imlib2)" Off \ |
51 |
XFT "Enable Xft support" Off |
52 |
.else |
53 |
OPTIONS+= LUA "Enable Lua support" Off |
54 |
.endif |
55 |
|
40 |
|
56 |
.include <bsd.port.pre.mk> |
41 |
APCUPSD_DESC= Monitor Apcupsd |
|
|
42 |
AUDACIOUS_DESC= Control Audacios sound player |
43 |
DOUBLE_BUFFER_DESC= Enable double buffering |
44 |
INOTIFY_DESC= Inotify support |
45 |
LUA_CAIRO_DESC= Lua-Cairo binding (Requires LUA) |
46 |
LUA_IMLIB2_DESC= Lua-Imlib2 binding (Requires LUA/Imlib2) |
47 |
METAR_DESC= Display METAR Weather reports |
48 |
MPD_DESC= Control mpd (Music Player Daemon) |
49 |
NCURSES_DESC= Output to ncurses display |
50 |
RSS_DESC= Display RSS feeds |
51 |
XMMS2_DESC= Control xmms2 media player |
52 |
XOAP_DESC= Display XOAP Weather reports |
57 |
|
53 |
|
58 |
.if empty(USE_XORG) |
54 |
.include <bsd.port.options.mk> |
59 |
WITHOUT_DOUBLE_BUFFER= On |
55 |
|
60 |
CONFIGURE_ARGS+= --disable-x11 --disable-own-window |
56 |
.if ${PORT_OPTIONS:MX11} |
61 |
.undef WITH_IMLIB2 |
57 |
USE_XORG= x11 xext xdamage |
62 |
.undef WITH_LUA_CAIRO |
58 |
|
63 |
.undef WITH_LUA_IMLIB2 |
59 |
. if ! ${PORT_OPTIONS:MDOUBLE_BUFFER} |
64 |
.undef WITH_XFT |
60 |
CONFIGURE_ARGS+= --disable-double-buffer |
|
|
61 |
. endif |
62 |
|
63 |
. if ${PORT_OPTIONS:MLUA_CAIRO} |
64 |
LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo |
65 |
BUILD_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
66 |
RUN_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
67 |
CONFIGURE_ARGS+= --enable-lua-cairo |
68 |
. endif |
69 |
|
70 |
. if ${PORT_OPTIONS:MLUA_IMLIB2} |
71 |
BUILD_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
72 |
RUN_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
73 |
CONFIGURE_ARGS+= --enable-lua-imlib2 |
74 |
. endif |
75 |
|
76 |
. if ${PORT_OPTIONS:MIMLIB} || ${PORT_OPTIONS:MLUA_IMLIB2} |
77 |
LIB_DEPENDS+= Imlib2:${PORTSDIR}/graphics/imlib2 |
78 |
CONFIGURE_ARGS+= --enable-imlib2 |
79 |
. else |
80 |
CONFIGURE_ARGS+= --disable-imlib2 |
81 |
. endif |
82 |
|
83 |
. if ${PORT_OPTIONS:MXFT} |
84 |
LIB_DEPENDS+= Xft:${PORTSDIR}/x11-fonts/libXft |
85 |
CONFIGURE_ARGS+= --enable-xft |
86 |
. else |
87 |
CONFIGURE_ARGS+= --disable-xft |
88 |
. endif |
89 |
|
90 |
.else |
91 |
CONFIGURE_ARGS+= --disable-x11 --disable-own-window --disable-imlib2 \ |
92 |
--disable-xft |
65 |
.endif |
93 |
.endif |
66 |
|
94 |
|
67 |
.if defined(WITH_APCUPSD) |
95 |
.if ${PORT_OPTIONS:MAPCUPSD} |
68 |
RUN_DEPENDS+= ${LOCALBASE}/sbin/apcupsd:${PORTSDIR}/sysutils/apcupsd |
96 |
RUN_DEPENDS+= ${LOCALBASE}/sbin/apcupsd:${PORTSDIR}/sysutils/apcupsd |
69 |
CONFIGURE_ARGS+= --enable-apcupsd |
97 |
CONFIGURE_ARGS+= --enable-apcupsd |
70 |
.else |
98 |
.else |
71 |
CONFIGURE_ARGS+= --disable-apcupsd |
99 |
CONFIGURE_ARGS+= --disable-apcupsd |
72 |
.endif |
100 |
.endif |
73 |
|
101 |
|
74 |
.if defined(WITH_AUDACIOUS) |
102 |
.if ${PORT_OPTIONS:MAUDACIOUS} |
75 |
LIB_DEPENDS+= audclient.2:${PORTSDIR}/multimedia/audacious |
103 |
LIB_DEPENDS+= audclient:${PORTSDIR}/multimedia/audacious |
76 |
CONFIGURE_ARGS+= --enable-audacious |
104 |
CONFIGURE_ARGS+= --enable-audacious |
77 |
.else |
105 |
.else |
78 |
CONFIGURE_ARGS+= --disable-audacious |
106 |
CONFIGURE_ARGS+= --disable-audacious |
79 |
.endif |
107 |
.endif |
80 |
|
108 |
|
81 |
.if defined(WITH_INOTIFY) |
109 |
.if ${PORT_OPTIONS:MINOTIFY} |
82 |
LIB_DEPENDS+= inotify.0:${PORTSDIR}/devel/libinotify |
110 |
LIB_DEPENDS+= inotify:${PORTSDIR}/devel/libinotify |
83 |
CONFIGURE_ARGS+= --enable-inotify |
111 |
CONFIGURE_ARGS+= --enable-inotify |
84 |
.else |
112 |
.else |
85 |
CONFIGURE_ARGS+= --disable-inotify |
113 |
CONFIGURE_ARGS+= --disable-inotify |
86 |
.endif |
114 |
.endif |
87 |
|
115 |
|
88 |
.if defined(WITH_LUA) || defined(WITH_LUA_CAIRO) || defined(WITH_LUA_IMLIB2) |
116 |
.if ${PORT_OPTIONS:MLUA} || ( ${PORT_OPTIONS:MLUA_CAIRO} || ${PORT_OPTIONS:MLUA_IMLIB2} && ${PORT_OPTIONS:MX11} ) |
89 |
USE_LUA= 5.1+ |
117 |
USE_LUA= 5.1+ |
90 |
CONFIGURE_ARGS+= --enable-lua |
118 |
CONFIGURE_ARGS+= --enable-lua |
91 |
.else |
119 |
.else |
92 |
CONFIGURE_ARGS+= --disable-lua |
120 |
CONFIGURE_ARGS+= --disable-lua |
93 |
.endif |
121 |
.endif |
94 |
|
122 |
|
95 |
.if defined(WITH_LUA_CAIRO) |
123 |
.if ${PORT_OPTIONS:MNCURSES} |
96 |
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo |
|
|
97 |
BUILD_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
98 |
RUN_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
99 |
CONFIGURE_ARGS+= --enable-lua-cairo |
100 |
.endif |
101 |
|
102 |
.if defined(WITH_IMLIB2) || defined(WITH_LUA_IMLIB2) |
103 |
LIB_DEPENDS+= Imlib2.5:${PORTSDIR}/graphics/imlib2 |
104 |
CONFIGURE_ARGS+= --enable-imlib2 |
105 |
.else |
106 |
CONFIGURE_ARGS+= --disable-imlib2 |
107 |
.endif |
108 |
|
109 |
.if defined(WITH_LUA_IMLIB2) |
110 |
BUILD_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
111 |
RUN_DEPENDS+= tolua++-5.1:${PORTSDIR}/lang/tolua++ |
112 |
CONFIGURE_ARGS+= --enable-lua-imlib2 |
113 |
.endif |
114 |
|
115 |
.if defined(WITH_NCURSES) |
116 |
CONFIGURE_ARGS+= --enable-ncurses |
124 |
CONFIGURE_ARGS+= --enable-ncurses |
117 |
.else |
125 |
.else |
118 |
CONFIGURE_ARGS+= --disable-ncurses |
126 |
CONFIGURE_ARGS+= --disable-ncurses |
119 |
.endif |
127 |
.endif |
120 |
|
128 |
|
121 |
.if defined(WITH_XFT) |
129 |
.if ${PORT_OPTIONS:MMPD} |
122 |
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft |
|
|
123 |
CONFIGURE_ARGS+= --enable-xft |
124 |
.else |
125 |
CONFIGURE_ARGS+= --disable-xft |
126 |
.endif |
127 |
|
128 |
.if defined(WITHOUT_MPD) |
129 |
CONFIGURE_ARGS+= --disable-mpd |
130 |
CONFIGURE_ARGS+= --disable-mpd |
130 |
.endif |
131 |
.endif |
131 |
|
132 |
|
132 |
.if defined(WITH_RSS) |
133 |
.if ${PORT_OPTIONS:MRSS} |
133 |
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl \ |
134 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl \ |
134 |
xml2.5:${PORTSDIR}/textproc/libxml2 |
135 |
xml2:${PORTSDIR}/textproc/libxml2 |
135 |
CONFIGURE_ARGS+= --enable-rss |
136 |
CONFIGURE_ARGS+= --enable-rss |
136 |
USE_GNOME+= glib20 |
137 |
USE_GNOME+= glib20 |
137 |
.endif |
138 |
.endif |
138 |
|
139 |
|
139 |
.if defined(WITH_METAR) |
140 |
.if ${PORT_OPTIONS:MMETAR} |
140 |
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl |
141 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
141 |
CONFIGURE_ARGS+= --enable-weather-metar |
142 |
CONFIGURE_ARGS+= --enable-weather-metar |
142 |
.endif |
143 |
.endif |
143 |
|
144 |
|
144 |
.if defined(WITH_XOAP) |
145 |
.if ${PORT_OPTIONS:MXOAP} |
145 |
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl \ |
146 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl \ |
146 |
xml2.5:${PORTSDIR}/textproc/libxml2 |
147 |
xml2:${PORTSDIR}/textproc/libxml2 |
147 |
CONFIGURE_ARGS+= --enable-weather-xoap |
148 |
CONFIGURE_ARGS+= --enable-weather-xoap |
148 |
.endif |
149 |
.endif |
149 |
|
150 |
|
150 |
.if defined(WITH_XMMS2) |
151 |
.if ${PORT_OPTIONS:MXMMS2} |
151 |
LIB_DEPENDS+= xmmsclient.6:${PORTSDIR}/audio/xmms2 |
152 |
LIB_DEPENDS+= xmmsclient:${PORTSDIR}/audio/xmms2 |
152 |
CONFIGURE_ARGS+= --enable-xmms2 |
153 |
CONFIGURE_ARGS+= --enable-xmms2 |
153 |
.else |
154 |
.else |
154 |
CONFIGURE_ARGS+= --disable-xmms2 |
155 |
CONFIGURE_ARGS+= --disable-xmms2 |
155 |
.endif |
156 |
.endif |
156 |
|
157 |
|
157 |
.if defined(WITHOUT_DOUBLE_BUFFER) |
|
|
158 |
CONFIGURE_ARGS+= --disable-double-buffer |
159 |
.endif |
160 |
|
161 |
post-patch: |
158 |
post-patch: |
162 |
@${REINPLACE_CMD} -e 's,lua5\.1,lua-5.1,g' \ |
159 |
@${REINPLACE_CMD} -e 's,lua5\.1,lua-5.1,g' \ |
163 |
${WRKSRC}/configure |
160 |
${WRKSRC}/configure |
Lines 169-184
Link Here
|
169 |
${INSTALL_MAN} ${WRKSRC}/doc/conky.1 ${PREFIX}/man/man1 |
166 |
${INSTALL_MAN} ${WRKSRC}/doc/conky.1 ${PREFIX}/man/man1 |
170 |
|
167 |
|
171 |
post-install: |
168 |
post-install: |
172 |
.if !defined(NOPORTEXAMPLES) |
169 |
.if ${PORT_OPTIONS:MEXAMPLES} |
173 |
@${MKDIR} ${EXAMPLESDIR} |
170 |
@${MKDIR} ${EXAMPLESDIR} |
174 |
. if !empty(USE_XORG) |
171 |
. if ${PORT_OPTIONS:MX11} |
175 |
@${INSTALL_DATA} ${WRKSRC}/data/conky.conf ${EXAMPLESDIR}/conkyrc.sample |
172 |
@${INSTALL_DATA} ${WRKSRC}/data/conky.conf ${EXAMPLESDIR}/conkyrc.sample |
176 |
. else |
173 |
. else |
177 |
@${INSTALL_DATA} ${WRKSRC}/data/conky_no_x11.conf ${EXAMPLESDIR}/conkyrc.sample |
174 |
@${INSTALL_DATA} ${WRKSRC}/data/conky_no_x11.conf ${EXAMPLESDIR}/conkyrc.sample |
178 |
. endif |
175 |
. endif |
179 |
.endif |
176 |
.endif |
180 |
|
177 |
|
181 |
.if !defined(NOPORTDOCS) |
178 |
.if ${PORT_OPTIONS:MDOCS} |
182 |
@${MKDIR} ${DOCSDIR} |
179 |
@${MKDIR} ${DOCSDIR} |
183 |
.for i in README AUTHORS ChangeLog TODO NEWS |
180 |
.for i in README AUTHORS ChangeLog TODO NEWS |
184 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
181 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
Lines 188-191
Link Here
|
188 |
.endfor |
185 |
.endfor |
189 |
.endif |
186 |
.endif |
190 |
|
187 |
|
191 |
.include <bsd.port.post.mk> |
188 |
.include <bsd.port.mk> |