Makefile.am 9.04 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 vlc-openbd.desktop vlc-opendvd.desktop vlc-openvcd.desktop vlc-opencda.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
EXTRA_DIST += vlc-openbd.desktop.in vlc-opendvd.desktop.in vlc-openvcd.desktop.in vlc-opencda.desktop.in
17
CLEANFILES += $(desktop_DATA) $(appdata_DATA)
18

19
%.desktop: %.desktop.in $(top_builddir)/config.status
20 21 22 23
	$(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-$@
24 25
	$(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
	$(AM_V_at)mv -f tmp-$@ $@
26

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

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

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

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

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

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

71 72 73
DIST_icons = \
	vlc512x512.png

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

81
skins2_default_vlt_FILES = \
82
	skins2/default/theme.xml \
83 84 85 86 87 88 89 90 91
	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
92

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

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

.lua.luac:
110 111 112 113 114 115 116 117
	$(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
118 119 120 121
	$(AM_V_at)mkdir -p "$$(dirname '$@')"
	$(luac_verbose)$(LUAC) -o $@ $<

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

nobase_doc_DATA = \
	lua/README.txt \
	lua/extensions/README.txt \
164
	lua/http/requests/README.txt \
165 166
	lua/intf/README.txt \
	lua/intf/dumpmeta.lua \
167
	lua/meta/README.txt \
168 169 170 171 172 173
	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 \
174
	lua/playlist/liveleak.lua \
175 176 177
	lua/playlist/youtube.lua \
	lua/sd/README.txt \
	lua/sd/icecast.lua \
Julien 'Lta' BALLET's avatar
Julien 'Lta' BALLET committed
178
	lua/sd/icast.lua \
179 180
	$(NULL)

181
nobase_dist_pkgdata_DATA += \
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
	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
241
endif
242
MOSTLYCLEANFILES += $(nobase_pkgdata_DATA)
243 244

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