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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
|
NULL =
public_icons_themes = \
hicolor \
$(NULL)
public_icons = \
hicolor_apps_16x16_empathy.png \
hicolor_apps_22x22_empathy.png \
hicolor_apps_24x24_empathy.png \
hicolor_apps_32x32_empathy.png \
hicolor_apps_48x48_empathy.png \
hicolor_apps_256x256_empathy.png \
$(NULL)
private_icons_themes = \
hicolor \
$(NULL)
private_icons = \
hicolor_actions_16x16_im-message-new.png \
hicolor_actions_22x22_im-message-new.png \
hicolor_actions_24x24_im-message-new.png \
hicolor_status_16x16_im-message.png \
hicolor_status_22x22_im-message.png \
hicolor_status_16x16_user-typing.png \
hicolor_apps_16x16_im-aim.png \
hicolor_apps_16x16_im-ekiga.png \
hicolor_apps_16x16_im-facebook.png \
hicolor_apps_16x16_im-gizmo.png \
hicolor_apps_16x16_im-google-talk.png \
hicolor_apps_16x16_im-icq.png \
hicolor_apps_16x16_im-irc.png \
hicolor_apps_16x16_im-jabber.png \
hicolor_apps_16x16_im-msn.png \
hicolor_apps_16x16_im-silc.png \
hicolor_apps_16x16_im-sip.png \
hicolor_apps_16x16_im-local-xmpp.png \
hicolor_apps_16x16_im-gadugadu.png \
hicolor_apps_16x16_im-groupwise.png \
hicolor_apps_16x16_im-qq.png \
hicolor_apps_16x16_im-meanwhile.png \
hicolor_apps_16x16_im-mxit.png \
hicolor_apps_16x16_im-myspace.png \
hicolor_apps_16x16_im-sametime.png \
hicolor_apps_16x16_im-yahoo.png \
hicolor_apps_16x16_im-zephyr.png \
hicolor_apps_22x22_im-aim.png \
hicolor_apps_22x22_im-ekiga.png \
hicolor_apps_22x22_im-facebook.png \
hicolor_apps_22x22_im-gizmo.png \
hicolor_apps_22x22_im-google-talk.png \
hicolor_apps_22x22_im-icq.png \
hicolor_apps_22x22_im-irc.png \
hicolor_apps_22x22_im-jabber.png \
hicolor_apps_22x22_im-msn.png \
hicolor_apps_22x22_im-silc.png \
hicolor_apps_22x22_im-sip.png \
hicolor_apps_22x22_im-local-xmpp.png \
hicolor_apps_22x22_im-gadugadu.png \
hicolor_apps_22x22_im-groupwise.png \
hicolor_apps_22x22_im-qq.png \
hicolor_apps_22x22_im-meanwhile.png \
hicolor_apps_22x22_im-mxit.png \
hicolor_apps_22x22_im-myspace.png \
hicolor_apps_22x22_im-sametime.png \
hicolor_apps_22x22_im-yahoo.png \
hicolor_apps_22x22_im-zephyr.png \
hicolor_apps_24x24_im-aim.png \
hicolor_apps_24x24_im-ekiga.png \
hicolor_apps_24x24_im-gizmo.png \
hicolor_apps_24x24_im-google-talk.png \
hicolor_apps_24x24_im-icq.png \
hicolor_apps_24x24_im-irc.png \
hicolor_apps_24x24_im-jabber.png \
hicolor_apps_24x24_im-msn.png \
hicolor_apps_24x24_im-silc.png \
hicolor_apps_24x24_im-sip.png \
hicolor_apps_24x24_im-local-xmpp.png \
hicolor_apps_24x24_im-gadugadu.png \
hicolor_apps_24x24_im-groupwise.png \
hicolor_apps_24x24_im-qq.png \
hicolor_apps_24x24_im-meanwhile.png \
hicolor_apps_24x24_im-mxit.png \
hicolor_apps_24x24_im-myspace.png \
hicolor_apps_24x24_im-sametime.png \
hicolor_apps_24x24_im-yahoo.png \
hicolor_apps_24x24_im-zephyr.png \
hicolor_apps_32x32_im-aim.png \
hicolor_apps_32x32_im-ekiga.png \
hicolor_apps_32x32_im-gizmo.png \
hicolor_apps_32x32_im-google-talk.png \
hicolor_apps_32x32_im-icq.png \
hicolor_apps_32x32_im-irc.png \
hicolor_apps_32x32_im-jabber.png \
hicolor_apps_32x32_im-msn.png \
hicolor_apps_32x32_im-silc.png \
hicolor_apps_32x32_im-sip.png \
hicolor_apps_32x32_im-local-xmpp.png \
hicolor_apps_32x32_im-gadugadu.png \
hicolor_apps_32x32_im-groupwise.png \
hicolor_apps_32x32_im-qq.png \
hicolor_apps_32x32_im-meanwhile.png \
hicolor_apps_32x32_im-mxit.png \
hicolor_apps_32x32_im-myspace.png \
hicolor_apps_32x32_im-sametime.png \
hicolor_apps_32x32_im-yahoo.png \
hicolor_apps_32x32_im-zephyr.png \
hicolor_apps_48x48_im-aim.png \
hicolor_apps_48x48_im-ekiga.png \
hicolor_apps_48x48_im-facebook.png \
hicolor_apps_48x48_im-gizmo.png \
hicolor_apps_48x48_im-google-talk.png \
hicolor_apps_48x48_im-icq.png \
hicolor_apps_48x48_im-irc.png \
hicolor_apps_48x48_im-jabber.png \
hicolor_apps_48x48_im-msn.png \
hicolor_apps_48x48_im-silc.png \
hicolor_apps_48x48_im-sip.png \
hicolor_apps_48x48_im-local-xmpp.png \
hicolor_apps_48x48_im-gadugadu.png \
hicolor_apps_48x48_im-groupwise.png \
hicolor_apps_48x48_im-qq.png \
hicolor_apps_48x48_im-meanwhile.png \
hicolor_apps_48x48_im-mxit.png \
hicolor_apps_48x48_im-myspace.png \
hicolor_apps_48x48_im-sametime.png \
hicolor_apps_48x48_im-yahoo.png \
hicolor_apps_48x48_im-zephyr.png \
hicolor_apps_scalable_im-aim.svg \
hicolor_apps_scalable_im-ekiga.svg \
hicolor_apps_scalable_im-gizmo.svg \
hicolor_apps_scalable_im-google-talk.svg \
hicolor_apps_scalable_im-icq.svg \
hicolor_apps_scalable_im-irc.svg \
hicolor_apps_scalable_im-jabber.svg \
hicolor_apps_scalable_im-msn.svg \
hicolor_apps_scalable_im-silc.svg \
hicolor_apps_scalable_im-sip.svg \
hicolor_apps_scalable_im-local-xmpp.svg \
hicolor_apps_scalable_im-gadugadu.svg \
hicolor_apps_scalable_im-groupwise.svg \
hicolor_apps_scalable_im-qq.svg \
hicolor_apps_scalable_im-meanwhile.svg \
hicolor_apps_scalable_im-mxit.svg \
hicolor_apps_scalable_im-myspace.svg \
hicolor_apps_scalable_im-sametime.svg \
hicolor_apps_scalable_im-yahoo.svg \
hicolor_apps_scalable_im-zephyr.svg \
hicolor_status_16x16_user-available.png \
hicolor_status_16x16_user-away.png \
hicolor_status_16x16_user-busy.png \
hicolor_status_16x16_user-idle.png \
hicolor_status_16x16_user-offline.png \
hicolor_status_16x16_empathy-pending.png \
hicolor_status_22x22_user-available.png \
hicolor_status_22x22_user-away.png \
hicolor_status_22x22_user-busy.png \
hicolor_status_22x22_user-idle.png \
hicolor_status_22x22_user-offline.png \
hicolor_status_22x22_empathy-pending.png \
hicolor_status_24x24_user-available.png \
hicolor_status_24x24_user-away.png \
hicolor_status_24x24_user-busy.png \
hicolor_status_24x24_user-idle.png \
hicolor_status_24x24_user-offline.png \
hicolor_status_24x24_empathy-pending.png \
hicolor_status_32x32_user-available.png \
hicolor_status_32x32_user-away.png \
hicolor_status_32x32_user-busy.png \
hicolor_status_32x32_user-idle.png \
hicolor_status_32x32_user-offline.png \
hicolor_status_32x32_empathy-pending.png \
hicolor_status_48x48_user-available.png \
hicolor_status_48x48_user-away.png \
hicolor_status_48x48_user-busy.png \
hicolor_status_48x48_user-idle.png \
hicolor_status_48x48_user-offline.png \
hicolor_status_48x48_empathy-pending.png \
hicolor_status_scalable_user-available.svg \
hicolor_status_scalable_user-away.svg \
hicolor_status_scalable_user-busy.svg \
hicolor_status_scalable_user-idle.svg \
hicolor_status_scalable_user-offline.svg \
hicolor_status_scalable_empathy-pending.svg \
$(NULL)
EXTRA_DIST = \
$(public_icons) \
$(private_icons) \
empathy.svg \
local-xmpp.svg \
$(NULL)
include $(srcdir)/utils.mk
###############################################################################
gtk_update_icon_cache = gtk-update-icon-cache -f -t
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
for theme in $(public_icons_themes); do \
$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
done; \
for theme in $(private_icons_themes); do \
$(gtk_update_icon_cache) $(pkgdatadir)/icons/$$theme; \
done; \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
for theme in $(public_icons_themes); do \
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
done; \
for theme in $(private_icons_themes); do \
echo "*** $(gtk_update_icon_cache) $(pkgdatadir)/icons/$$theme"; \
done; \
fi
install-icons:
for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done; \
for icon in $(private_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
mkdir -p $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
uninstall-icons:
-for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done; \
for icon in $(private_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
rm -f $(DESTDIR)$(pkgdatadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
install-data-local:
$(MAKE) install-icons
$(MAKE) update-icon-cache
uninstall-local:
$(MAKE) uninstall-icons
$(MAKE) update-icon-cache
# Local copy of the "installed" icon. This is used to be able to run empathy
# from source (see bgo #616159)
local_icons_dir = local-copy
# Generate the lists of destination paths
public_icons_local_install_paths = $(foreach obj, $(public_icons), $(local_icons_dir)/$(subst _,/,$(call reorder,_,1 3 2 4,$(obj))))
private_icons_local_install_paths = $(foreach obj, $(private_icons), $(local_icons_dir)/$(subst _,/,$(call reorder,_,1 3 2 4,$(obj))))
# For each destination path we'll need to compute back the original icon
# and create a rule that will ensure that the destination directory exists
# and then copy the original file
define icon_local_install_rule_template
$(local_icons_dir)/$$(subst _,/,$$(call reorder,_,1 3 2 4,$1)): $1
$$(AM_V_GEN)mkdir -p $$(@D)
$$(AM_V_GEN)cp $$^ $$@
endef
# Instantiate the template above for each icon
$(foreach icon,$(public_icons),$(eval $(call icon_local_install_rule_template,$(icon))))
$(foreach icon,$(private_icons),$(eval $(call icon_local_install_rule_template,$(icon))))
install-icons-src: $(public_icons_local_install_paths) $(private_icons_local_install_paths)
all: install-icons-src
clean-local:
-rm -rf $(local_icons_dir)
|