Makefile.am 8.86 KB
Newer Older
1
CLEANFILES = skins2/default.vlt
2
MOSTLYCLEANFILES =
3
EXTRA_DIST =
4

5
desktopdir = $(datadir)/applications
6
if !HAVE_WIN32
7
if !HAVE_DARWIN
8
desktop_DATA = vlc.desktop
9
appdatadir = $(datarootdir)/metainfo
10 11
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = vlc.appdata.xml.in
12 13
endif
endif
14

15
EXTRA_DIST += vlc.desktop.in vlc.desktop.mimetypes
16
CLEANFILES += $(desktop_DATA) $(appdata_DATA)
17 18

vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
19 20 21 22
	$(AM_V_GEN)mimetypes="$$(sed 's/\s*#.*$$//g' $(srcdir)/vlc.desktop.mimetypes | egrep -v '^$$' | tr "\n" ';')"; \
	sed \
		-e 's,\@bindir\@,$(bindir),g' \
		 -e "s,\@MIMETYPES\@,$$mimetypes,g" < "$<" > tmp-$@
23 24
	$(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
	$(AM_V_at)mv -f tmp-$@ $@
25

26
vlc.appdata.xml: vlc.appdata.xml.in
27
	$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ || cp $< $@
28

29
iconsdatadir = $(datadir)/icons/hicolor
30 31 32 33 34 35
icons16dir = $(iconsdatadir)/16x16/apps
icons32dir = $(iconsdatadir)/32x32/apps
icons48dir = $(iconsdatadir)/48x48/apps
icons128dir = $(iconsdatadir)/128x128/apps
icons256dir = $(iconsdatadir)/256x256/apps

36
if !HAVE_WIN32
37
dist_pkgdata_DATA = icons/vlc.ico
38 39
dist_icons16_DATA = icons/16x16/vlc.png icons/16x16/vlc.xpm
dist_icons32_DATA = icons/32x32/vlc.png icons/32x32/vlc.xpm \
40
			icons/32x32/vlc-xmas.xpm
41
dist_icons48_DATA = icons/48x48/vlc.png icons/48x48/vlc-xmas.png
42 43
dist_icons128_DATA = icons/128x128/vlc.png icons/128x128/vlc-xmas.png \
                     icons/128x128/vlc-kb.png
44
dist_icons256_DATA = icons/256x256/vlc.png
45

46
nobase_dist_pkgdata_SCRIPTS = \
47
	utils/gnome-vlc-default.sh \
48 49
	utils/audio-vlc-default.sh \
	utils/video-vlc-default.sh \
50
	$(NULL)
51
endif
52

53
EXTRA_DIST += \
54
	$(skins2_default_vlt_FILES) \
55
	$(DIST_icons) \
56
	$(DIST_http_lua) \
57
	$(DIST_solid)
58

59
nobase_pkgdata_DATA =
60
nobase_pkglibexec_SCRIPTS =
61
nobase_dist_pkgdata_DATA =
62
if BUILD_SKINS
63 64
nobase_pkgdata_DATA += skins2/default.vlt
nobase_dist_pkgdata_DATA += $(DIST_skins2)
65
endif
66 67 68
if KDE_SOLID
soliddata_DATA = $(DIST_solid)
endif
69

70 71 72
DIST_icons = \
	vlc512x512.png

73 74
DIST_skins2 = \
	skins2/fonts/FreeSans.ttf \
75
	skins2/fonts/FreeSansBold.ttf \
76
	skins2/skin.dtd \
77
	skins2/skin.catalog \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
78
	skins2/winamp2.xml
79

80
skins2_default_vlt_FILES = \
81
	skins2/default/theme.xml \
82 83 84 85 86 87 88 89 90
	skins2/default/subX/about.png \
	skins2/default/subX/eq.png \
	skins2/default/subX/font.otf \
	skins2/default/subX/main.png \
	skins2/default/subX/playtreeglyphs.png \
	skins2/default/subX/pl.png \
	skins2/default/subX/sysbuttons.png \
	skins2/default/subX/vol_anim.png \
	skins2/default/subX/vol_slider.png
91

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
92
skins2/default.vlt: $(skins2_default_vlt_FILES)
93
	$(AM_V_at)mkdir -p skins2
94
	$(AM_V_at)rm -f -- skins2/default.vlt.tmp
95
	$(AM_V_GEN)GZIP=--no-name \
96
	tar cvvzf skins2/default.vlt.tmp \
97 98
		--owner=root --group=root --directory="$(srcdir)/skins2" \
		default/
99
	$(AM_V_at)mv -f -- skins2/default.vlt.tmp skins2/default.vlt
100

101 102 103 104
#
# LUA
#
luac_verbose = $(luac_verbose_$(V))
105
luac_verbose_ = $(luac_verbose_$(AM_DEFAULT_VERBOSITY))
106 107 108
luac_verbose_0 = @echo "  LUAC   $@";

.lua.luac:
109 110 111 112 113 114 115 116
	$(AM_V_at)for f in $(EXTRA_DIST); do \
		test "$(srcdir)" = . || f="$(srcdir)/$$f"; \
		if test $$f = $<; then \
			exit 0; \
		fi; \
	done; \
	echo "Attempt to byte-compile unknown file: $(<)!"; \
	exit 1
117 118 119 120
	$(AM_V_at)mkdir -p "$$(dirname '$@')"
	$(luac_verbose)$(LUAC) -o $@ $<

if BUILD_LUA
121
nobase_pkglibexec_SCRIPTS += \
122
	lua/extensions/VLSub.luac \
Pierre Ynard's avatar
Pierre Ynard committed
123
	lua/intf/cli.luac \
124 125 126
	lua/intf/dummy.luac \
	lua/intf/dumpmeta.luac \
	lua/intf/luac.luac \
127
	lua/intf/http.luac \
128
	lua/intf/modules/host.luac \
129
	lua/intf/modules/httprequests.luac \
130 131
	lua/intf/telnet.luac \
	lua/meta/art/02_frenchtv.luac \
132
	lua/meta/art/03_lastfm.luac \
133
	lua/meta/art/01_googleimage.luac \
134
	lua/meta/art/00_musicbrainz.luac \
135
	lua/meta/reader/filename.luac \
136
	lua/modules/common.luac \
Rob Jonson's avatar
Rob Jonson committed
137
	lua/modules/dkjson.luac \
138
	lua/modules/sandbox.luac \
139
	lua/modules/simplexml.luac \
140
	lua/playlist/anevia_streams.luac \
141
	lua/playlist/anevia_xml.luac \
142
	lua/playlist/appletrailers.luac \
143
	lua/playlist/bbc_co_uk.luac \
144
	lua/playlist/cue.luac \
145
	lua/playlist/dailymotion.luac \
146
	lua/playlist/jamendo.luac \
147
	lua/playlist/koreus.luac \
148
	lua/playlist/liveleak.luac \
149
	lua/playlist/newgrounds.luac \
150
	lua/playlist/rockbox_fm_presets.luac \
Cheng Sun's avatar
Cheng Sun committed
151
	lua/playlist/soundcloud.luac \
152
	lua/playlist/vimeo.luac \
153
	lua/playlist/vocaroo.luac \
154
	lua/playlist/youtube.luac \
155
	lua/playlist/twitch.luac \
156
	lua/sd/icecast.luac \
157
	lua/sd/jamendo.luac \
158
	$(NULL)
159 160 161 162

nobase_doc_DATA = \
	lua/README.txt \
	lua/extensions/README.txt \
163
	lua/http/requests/README.txt \
164 165
	lua/intf/README.txt \
	lua/intf/dumpmeta.lua \
166
	lua/meta/README.txt \
167 168 169 170 171 172
	lua/meta/art/README.txt \
	lua/meta/art/01_googleimage.lua \
	lua/meta/fetcher/README.txt \
	lua/meta/reader/README.txt \
	lua/meta/reader/filename.lua \
	lua/playlist/README.txt \
173
	lua/playlist/liveleak.lua \
174 175 176
	lua/playlist/youtube.lua \
	lua/sd/README.txt \
	lua/sd/icecast.lua \
Julien 'Lta' BALLET's avatar
Julien 'Lta' BALLET committed
177
	lua/sd/icast.lua \
178 179
	$(NULL)

180
nobase_dist_pkgdata_DATA += \
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
	lua/http/view.html \
	lua/http/mobile.html \
	lua/http/dialogs/create_stream.html \
	lua/http/dialogs/equalizer_window.html \
	lua/http/dialogs/mosaic_window.html \
	lua/http/dialogs/batch_window.html \
	lua/http/dialogs/error_window.html \
	lua/http/dialogs/browse_window.html \
	lua/http/dialogs/stream_window.html \
	lua/http/dialogs/offset_window.html \
	lua/http/dialogs/stream_config_window.html \
	lua/http/custom.lua \
	lua/http/vlm.html \
	lua/http/images/buttons.png \
	lua/http/images/speaker-32.png \
	lua/http/images/vlc-48.png \
	lua/http/images/Audio-48.png \
	lua/http/images/Folder-48.png \
	lua/http/images/Other-48.png \
	lua/http/images/Back-48.png \
	lua/http/images/Video-48.png \
	lua/http/images/vlc16x16.png \
	lua/http/mobile_equalizer.html \
	lua/http/vlm_export.html \
	lua/http/mobile_browse.html \
	lua/http/favicon.ico \
	lua/http/mobile_view.html \
	lua/http/requests/playlist.xml \
	lua/http/requests/playlist.json \
	lua/http/requests/README.txt \
	lua/http/requests/playlist_jstree.xml \
	lua/http/requests/browse.xml \
	lua/http/requests/browse.json \
	lua/http/requests/vlm_cmd.xml \
	lua/http/requests/status.xml \
	lua/http/requests/status.json \
	lua/http/requests/vlm.xml \
	lua/http/index.html \
	lua/http/css/ui-lightness/jquery-ui-1.8.13.custom.css \
	lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png \
	lua/http/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png \
	lua/http/css/ui-lightness/images/ui-icons_ffffff_256x240.png \
	lua/http/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png \
	lua/http/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png \
	lua/http/css/ui-lightness/images/ui-icons_222222_256x240.png \
	lua/http/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png \
	lua/http/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png \
	lua/http/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png \
	lua/http/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png \
	lua/http/css/ui-lightness/images/ui-icons_ffd27a_256x240.png \
	lua/http/css/ui-lightness/images/ui-icons_228ef1_256x240.png \
	lua/http/css/ui-lightness/images/ui-icons_ef8c08_256x240.png \
	lua/http/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png \
	lua/http/css/main.css \
	lua/http/css/mobile.css \
	lua/http/js/ui.js \
	lua/http/js/common.js \
	lua/http/js/jquery.jstree.js \
	lua/http/js/controllers.js
240
endif
241
MOSTLYCLEANFILES += $(nobase_pkgdata_DATA)
242 243

EXTRA_DIST += \
244
	lua/README.txt \
245
	lua/extensions/README.txt \
246
	lua/extensions/VLSub.lua \
247
	lua/intf/README.txt \
Pierre Ynard's avatar
Pierre Ynard committed
248
	lua/intf/cli.lua \
249 250 251 252 253
	lua/intf/dummy.lua \
	lua/intf/dumpmeta.lua \
	lua/intf/http.lua \
	lua/intf/luac.lua \
	lua/intf/modules/host.lua \
254
	lua/intf/modules/httprequests.lua \
255
	lua/intf/telnet.lua \
256
	lua/meta/README.txt \
257
	lua/meta/art/README.txt \
258
	lua/meta/art/02_frenchtv.lua \
259
	lua/meta/art/03_lastfm.lua \
260
	lua/meta/art/01_googleimage.lua \
261
	lua/meta/art/00_musicbrainz.lua \
262
	lua/meta/fetcher/README.txt \
263 264
	lua/meta/reader/README.txt \
	lua/meta/reader/filename.lua \
265
	lua/modules/common.lua \
Rob Jonson's avatar
Rob Jonson committed
266
	lua/modules/dkjson.lua \
267 268
	lua/modules/sandbox.lua \
	lua/modules/simplexml.lua \
269
	lua/playlist/README.txt \
270
	lua/playlist/anevia_streams.lua \
271
	lua/playlist/anevia_xml.lua \
272
	lua/playlist/appletrailers.lua \
273
	lua/playlist/bbc_co_uk.lua \
274
	lua/playlist/break.lua \
275
	lua/playlist/cue.lua \
276
	lua/playlist/dailymotion.lua \
277
	lua/playlist/extreme.lua \
278
	lua/playlist/france2.lua \
279
	lua/playlist/jamendo.lua \
280
	lua/playlist/katsomo.lua \
281
	lua/playlist/koreus.lua \
282
	lua/playlist/lelombrik.lua \
283
	lua/playlist/liveleak.lua \
284
	lua/playlist/metacafe.lua \
285
	lua/playlist/mpora.lua \
286
	lua/playlist/newgrounds.lua \
287 288
	lua/playlist/pinkbike.lua \
	lua/playlist/rockbox_fm_presets.lua \
Cheng Sun's avatar
Cheng Sun committed
289
	lua/playlist/soundcloud.lua \
290
	lua/playlist/vimeo.lua \
291
	lua/playlist/vocaroo.lua \
292
	lua/playlist/youtube.lua \
293
	lua/playlist/twitch.lua \
294
	lua/playlist/zapiks.lua \
295
	lua/sd/README.txt \
296
	lua/sd/fmc.lua \
297
	lua/sd/icecast.lua \
Julien 'Lta' BALLET's avatar
Julien 'Lta' BALLET committed
298
	lua/sd/icast.lua \
299
	lua/sd/jamendo.lua
300
DIST_solid = \
301
	solid/vlc-openbd.desktop \
302 303
	solid/vlc-opencda.desktop \
	solid/vlc-opendvd.desktop \
304
	solid/vlc-openvcd.desktop