Qt: adv settings: Optimize synchronization panel
[vlc/solaris.git] / Makefile.am
blobd6e24808330a98c44e93e2e751c85f427c80fd0f
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 # SUBDIRS stores the directories where a "make" is required when building
6 # something. DIST_SUBDIRS stores the directories where nothing is built but
7 # which have makefiles with distribution information.
8 #  - src (libvlc) is nedeed by modules
9 #  - libs/* are needed by modules
10 DIST_SUBDIRS = m4 compat doc po share src modules lib bin test
11 SUBDIRS = compat doc po share src modules lib
12 if BUILD_VLC
13 SUBDIRS += bin
14 endif
15 SUBDIRS += test
17 EXTRA_DIST = \
18         extras/package/win32/vlc.exe.manifest \
19         extras/package/win32/libvlc.dll.manifest \
20         extras/package/macosx/README.MacOSX.rtf \
21         extras/package/rpm/vlc.fedora.spec \
22         extras/package/rpm/vlc.altlinux.spec \
23         extras/package/win32/vlc.win32.nsi.in \
24         extras/package/win32/spad.nsi.in \
25         extras/package/win32/UAC.nsh \
26         extras/package/win32/UAC.dll \
27         extras/package/win32/languages/declaration.nsh \
28         extras/package/win32/languages/bengali.nsh \
29         extras/package/win32/languages/basque.nsh \
30         extras/package/win32/languages/brazilian_portuguese.nsh \
31         extras/package/win32/languages/bulgarian.nsh \
32         extras/package/win32/languages/catalan.nsh \
33         extras/package/win32/languages/danish.nsh \
34         extras/package/win32/languages/dutch.nsh \
35         extras/package/win32/languages/english.nsh \
36         extras/package/win32/languages/estonian.nsh \
37         extras/package/win32/languages/finnish.nsh \
38         extras/package/win32/languages/french.nsh \
39         extras/package/win32/languages/german.nsh \
40         extras/package/win32/languages/hungarian.nsh \
41         extras/package/win32/languages/italian.nsh \
42         extras/package/win32/languages/japanese.nsh \
43         extras/package/win32/languages/lithuanian.nsh \
44         extras/package/win32/languages/occitan.nsh \
45         extras/package/win32/languages/polish.nsh \
46         extras/package/win32/languages/punjabi.nsh \
47         extras/package/win32/languages/romanian.nsh \
48         extras/package/win32/languages/schinese.nsh \
49         extras/package/win32/languages/slovak.nsh \
50         extras/package/win32/languages/slovenian.nsh \
51         extras/package/win32/languages/sorani.nsh \
52         extras/package/win32/languages/spanish.nsh
54 dist_noinst_SCRIPTS = bootstrap
55 nodist_noinst_SCRIPTS = compile
57 BUILT_SOURCES_distclean =
58 if HAVE_WIN32
59 BUILT_SOURCES_distclean += \
60         extras/package/win32/vlc.win32.nsi extras/package/win32/spad.nsi
61 endif
62 if HAVE_DARWIN
63 BUILT_SOURCES_clean = macosx-sdk
64 else
65 BUILT_SOURCES_clean =
66 endif
68 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
70 SUFFIXES = 
72 DISTCHECK_CONFIGURE_FLAGS = \
73         --enable-fast-install \
74         --disable-a52 \
75         --disable-avcodec --disable-avformat \
76         --disable-postproc --disable-swscale \
77         --disable-dbus \
78         --disable-mad --disable-libmpeg2 \
79         --disable-faad --disable-skins2 \
80         --disable-live555 \
81         --disable-fribidi --disable-glx \
82         --disable-mkv \
83         --with-kde-solid='$${datadir}/kde4/apps'
85 ACLOCAL_AMFLAGS = -I m4
86 AUTOMAKE_OPTIONS = \
87         1.11 \
88         -Wall \
89         check-news \
90         dist-xz \
91         no-dist-gzip
92 #       std-options
94 ChangeLog: Makefile.am
95         rm -f -- "$@"
96         cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
97         $(LN_S) -f doc/ChangeLog-2009 "$@"
99 ###############################################################################
100 # MacOS X project
101 ###############################################################################
103 EXTRA_DIST += \
104         extras/package/macosx/Resources/about_bg.png \
105         extras/package/macosx/Resources/add_embedded.png \
106         extras/package/macosx/Resources/add_embedded_graphite.png \
107         extras/package/macosx/Resources/dsa_pub.pem \
108         extras/package/macosx/Resources/embedded_vout.png \
109         extras/package/macosx/Resources/English.lproj/About.xib \
110         extras/package/macosx/Resources/English.lproj/AudioEffects.xib \
111         extras/package/macosx/Resources/English.lproj/Bookmarks.xib \
112         extras/package/macosx/Resources/English.lproj/CoreDialogs.xib \
113         extras/package/macosx/Resources/English.lproj/ErrorPanel.xib \
114         extras/package/macosx/Resources/English.lproj/MainMenu.xib \
115         extras/package/macosx/Resources/English.lproj/MediaInfo.xib \
116         extras/package/macosx/Resources/English.lproj/Open.xib \
117         extras/package/macosx/Resources/English.lproj/Preferences.xib \
118         extras/package/macosx/Resources/English.lproj/SyncTracks.xib \
119         extras/package/macosx/Resources/English.lproj/VideoEffects.xib \
120         extras/package/macosx/Resources/English.lproj/Wizard.xib \
121         extras/package/macosx/Resources/fspanel/fs_background.png \
122         extras/package/macosx/Resources/fspanel/fs_exit_fullscreen.png \
123         extras/package/macosx/Resources/fspanel/fs_exit_fullscreen_highlight.png \
124         extras/package/macosx/Resources/fspanel/fs_forward.png \
125         extras/package/macosx/Resources/fspanel/fs_forward_highlight.png \
126         extras/package/macosx/Resources/fspanel/fs_pause.png \
127         extras/package/macosx/Resources/fspanel/fs_pause_highlight.png \
128         extras/package/macosx/Resources/fspanel/fs_play.png \
129         extras/package/macosx/Resources/fspanel/fs_play_highlight.png \
130         extras/package/macosx/Resources/fspanel/fs_rewind.png \
131         extras/package/macosx/Resources/fspanel/fs_rewind_highlight.png \
132         extras/package/macosx/Resources/fspanel/fs_skip_next.png \
133         extras/package/macosx/Resources/fspanel/fs_skip_next_highlight.png \
134         extras/package/macosx/Resources/fspanel/fs_skip_previous.png \
135         extras/package/macosx/Resources/fspanel/fs_skip_previous_highlight.png \
136         extras/package/macosx/Resources/fspanel/fs_stop.png \
137         extras/package/macosx/Resources/fspanel/fs_stop_highlight.png \
138         extras/package/macosx/Resources/fspanel/fs_time_slider.png \
139         extras/package/macosx/Resources/fspanel/fs_time_slider_knob.png \
140         extras/package/macosx/Resources/fspanel/fs_time_slider_knob_highlight.png \
141         extras/package/macosx/Resources/fspanel/fs_volume_max.png \
142         extras/package/macosx/Resources/fspanel/fs_volume_max_highlight.png \
143         extras/package/macosx/Resources/fspanel/fs_volume_mute.png \
144         extras/package/macosx/Resources/fspanel/fs_volume_mute_highlight.png \
145         extras/package/macosx/Resources/fspanel/fs_volume_slider_bar.png \
146         extras/package/macosx/Resources/fspanel/fs_volume_slider_knob.png \
147         extras/package/macosx/Resources/fspanel/fs_volume_slider_knob_highlight.png \
148         extras/package/macosx/Resources/fspanel/fs_background@x1.5.png \
149         extras/package/macosx/Resources/fspanel/fs_exit_fullscreen@x1.5.png \
150         extras/package/macosx/Resources/fspanel/fs_exit_fullscreen_highlight@x1.5.png \
151         extras/package/macosx/Resources/fspanel/fs_forward@x1.5.png \
152         extras/package/macosx/Resources/fspanel/fs_forward_highlight@x1.5.png \
153         extras/package/macosx/Resources/fspanel/fs_pause@x1.5.png \
154         extras/package/macosx/Resources/fspanel/fs_pause_highlight@x1.5.png \
155         extras/package/macosx/Resources/fspanel/fs_play@x1.5.png \
156         extras/package/macosx/Resources/fspanel/fs_play_highlight@x1.5.png \
157         extras/package/macosx/Resources/fspanel/fs_rewind@x1.5.png \
158         extras/package/macosx/Resources/fspanel/fs_rewind_highlight@x1.5.png \
159         extras/package/macosx/Resources/fspanel/fs_skip_next@x1.5.png \
160         extras/package/macosx/Resources/fspanel/fs_skip_next_highlight@x1.5.png \
161         extras/package/macosx/Resources/fspanel/fs_skip_previous@x1.5.png \
162         extras/package/macosx/Resources/fspanel/fs_skip_previous_highlight@x1.5.png \
163         extras/package/macosx/Resources/fspanel/fs_stop@x1.5.png \
164         extras/package/macosx/Resources/fspanel/fs_stop_highlight@x1.5.png \
165         extras/package/macosx/Resources/fspanel/fs_time_slider@x1.5.png \
166         extras/package/macosx/Resources/fspanel/fs_time_slider_knob@x1.5.png \
167         extras/package/macosx/Resources/fspanel/fs_time_slider_knob_highlight@x1.5.png \
168         extras/package/macosx/Resources/fspanel/fs_volume_max@x1.5.png \
169         extras/package/macosx/Resources/fspanel/fs_volume_max_highlight@x1.5.png \
170         extras/package/macosx/Resources/fspanel/fs_volume_mute@x1.5.png \
171         extras/package/macosx/Resources/fspanel/fs_volume_mute_highlight@x1.5.png \
172         extras/package/macosx/Resources/fspanel/fs_volume_slider_bar@x1.5.png \
173         extras/package/macosx/Resources/fspanel/fs_volume_slider_knob@x1.5.png \
174         extras/package/macosx/Resources/fspanel/fs_volume_slider_knob_highlight@x1.5.png \
175         extras/package/macosx/Resources/icons/aiff.icns \
176         extras/package/macosx/Resources/icons/audio.icns \
177         extras/package/macosx/Resources/icons/avi.icns \
178         extras/package/macosx/Resources/icons/flv.icns \
179         extras/package/macosx/Resources/icons/generic.icns \
180         extras/package/macosx/Resources/icons/m4a.icns \
181         extras/package/macosx/Resources/icons/m4v.icns \
182         extras/package/macosx/Resources/icons/mkv.icns \
183         extras/package/macosx/Resources/icons/mov.icns \
184         extras/package/macosx/Resources/icons/movie.icns \
185         extras/package/macosx/Resources/icons/mp3.icns \
186         extras/package/macosx/Resources/icons/mpeg.icns \
187         extras/package/macosx/Resources/icons/ogg.icns \
188         extras/package/macosx/Resources/icons/playlist.icns \
189         extras/package/macosx/Resources/icons/rm.icns \
190         extras/package/macosx/Resources/icons/subtitle.icns \
191         extras/package/macosx/Resources/icons/vlc.icns \
192         extras/package/macosx/Resources/icons/vob.icns \
193         extras/package/macosx/Resources/icons/wav.icns \
194         extras/package/macosx/Resources/icons/wma.icns \
195         extras/package/macosx/Resources/icons/wmv.icns \
196         extras/package/macosx/Resources/mainwindow/back-pressed.png \
197         extras/package/macosx/Resources/mainwindow/back.png \
198         extras/package/macosx/Resources/mainwindow/bottom-background.png \
199         extras/package/macosx/Resources/mainwindow/bottombar-mini.png \
200         extras/package/macosx/Resources/mainwindow/dropzone-background.png \
201         extras/package/macosx/Resources/mainwindow/dropzone.png \
202         extras/package/macosx/Resources/mainwindow/effects-double-buttons-blue.png \
203         extras/package/macosx/Resources/mainwindow/effects-double-buttons-pressed.png \
204         extras/package/macosx/Resources/mainwindow/effects-double-buttons.png \
205         extras/package/macosx/Resources/mainwindow/effects-one-button-blue.png \
206         extras/package/macosx/Resources/mainwindow/effects-one-button.png \
207         extras/package/macosx/Resources/mainwindow/forward-pressed.png \
208         extras/package/macosx/Resources/mainwindow/forward.png \
209         extras/package/macosx/Resources/mainwindow/fullscreen-double-buttons-pressed.png \
210         extras/package/macosx/Resources/mainwindow/fullscreen-double-buttons.png \
211         extras/package/macosx/Resources/mainwindow/mini-progressbar-fill-left.png \
212         extras/package/macosx/Resources/mainwindow/mini-progressbar-fill-middle.png \
213         extras/package/macosx/Resources/mainwindow/mini-progressbar-fill-right.png \
214         extras/package/macosx/Resources/mainwindow/mini-progressbar-knob.png \
215         extras/package/macosx/Resources/mainwindow/mini-progressbar-wrapper-left.png \
216         extras/package/macosx/Resources/mainwindow/mini-progressbar-wrapper-middle.png \
217         extras/package/macosx/Resources/mainwindow/mini-progressbar-wrapper-right.png \
218         extras/package/macosx/Resources/mainwindow/pause-pressed.png \
219         extras/package/macosx/Resources/mainwindow/pause.png \
220         extras/package/macosx/Resources/mainwindow/play-pressed.png \
221         extras/package/macosx/Resources/mainwindow/play.png \
222         extras/package/macosx/Resources/mainwindow/playlist-blue.png \
223         extras/package/macosx/Resources/mainwindow/playlist-pressed.png \
224         extras/package/macosx/Resources/mainwindow/playlist.png \
225         extras/package/macosx/Resources/mainwindow/progression-fill-left.png \
226         extras/package/macosx/Resources/mainwindow/progression-fill-middle.png \
227         extras/package/macosx/Resources/mainwindow/progression-fill-right.png \
228         extras/package/macosx/Resources/mainwindow/progression-knob.png \
229         extras/package/macosx/Resources/mainwindow/progression-track-wrapper-left.png \
230         extras/package/macosx/Resources/mainwindow/progression-track-wrapper-middle.png \
231         extras/package/macosx/Resources/mainwindow/progression-track-wrapper-right.png \
232         extras/package/macosx/Resources/mainwindow/repeat-all-pressed.png \
233         extras/package/macosx/Resources/mainwindow/repeat-all.png \
234         extras/package/macosx/Resources/mainwindow/repeat-one-pressed.png \
235         extras/package/macosx/Resources/mainwindow/repeat-one.png \
236         extras/package/macosx/Resources/mainwindow/repeat-pressed.png \
237         extras/package/macosx/Resources/mainwindow/repeat.png \
238         extras/package/macosx/Resources/mainwindow/shuffle-blue-pressed.png \
239         extras/package/macosx/Resources/mainwindow/shuffle-on.png \
240         extras/package/macosx/Resources/mainwindow/shuffle-pressed.png \
241         extras/package/macosx/Resources/mainwindow/shuffle.png \
242         extras/package/macosx/Resources/mainwindow/stop-pressed.png \
243         extras/package/macosx/Resources/mainwindow/stop.png \
244         extras/package/macosx/Resources/mainwindow/volume-high.png \
245         extras/package/macosx/Resources/mainwindow/volume-low.png \
246         extras/package/macosx/Resources/mainwindow/volume-slider-knob.png \
247         extras/package/macosx/Resources/mainwindow/volume-slider-track.png \
248         extras/package/macosx/Resources/mainwindow_dark/back-pressed_dark.png \
249         extras/package/macosx/Resources/mainwindow_dark/back_dark.png \
250         extras/package/macosx/Resources/mainwindow_dark/bottom-background_dark.png \
251         extras/package/macosx/Resources/mainwindow_dark/bottombar-mini.png \
252         extras/package/macosx/Resources/mainwindow_dark/effects-double-buttons-blue_dark.png \
253         extras/package/macosx/Resources/mainwindow_dark/effects-double-buttons-pressed_dark.png \
254         extras/package/macosx/Resources/mainwindow_dark/effects-double-buttons_dark.png \
255         extras/package/macosx/Resources/mainwindow_dark/effects-one-button-blue_dark.png \
256         extras/package/macosx/Resources/mainwindow_dark/effects-one-button_dark.png \
257         extras/package/macosx/Resources/mainwindow_dark/forward-pressed_dark.png \
258         extras/package/macosx/Resources/mainwindow_dark/forward_dark.png \
259         extras/package/macosx/Resources/mainwindow_dark/fullscreen-double-buttons-pressed_dark.png \
260         extras/package/macosx/Resources/mainwindow_dark/fullscreen-double-buttons_dark.png \
261         extras/package/macosx/Resources/mainwindow_dark/pause-pressed_dark.png \
262         extras/package/macosx/Resources/mainwindow_dark/pause_dark.png \
263         extras/package/macosx/Resources/mainwindow_dark/play-pressed_dark.png \
264         extras/package/macosx/Resources/mainwindow_dark/play_dark.png \
265         extras/package/macosx/Resources/mainwindow_dark/playlist-blue-pressed_dark.png \
266         extras/package/macosx/Resources/mainwindow_dark/playlist-blue_dark.png \
267         extras/package/macosx/Resources/mainwindow_dark/playlist-pressed_dark.png \
268         extras/package/macosx/Resources/mainwindow_dark/playlist_dark.png \
269         extras/package/macosx/Resources/mainwindow_dark/progressbar-fill-left_dark.png \
270         extras/package/macosx/Resources/mainwindow_dark/progressbar-fill-middle_dark.png \
271         extras/package/macosx/Resources/mainwindow_dark/progressbar-fill-right_dark.png \
272         extras/package/macosx/Resources/mainwindow_dark/progression-knob_dark.png \
273         extras/package/macosx/Resources/mainwindow_dark/progression-track-wrapper-left_dark.png \
274         extras/package/macosx/Resources/mainwindow_dark/progression-track-wrapper-middle_dark.png \
275         extras/package/macosx/Resources/mainwindow_dark/progression-track-wrapper-right_dark.png \
276         extras/package/macosx/Resources/mainwindow_dark/repeat-all-blue-pressed_dark.png \
277         extras/package/macosx/Resources/mainwindow_dark/repeat-all-blue_dark.png \
278         extras/package/macosx/Resources/mainwindow_dark/repeat-one-blue-pressed_dark.png \
279         extras/package/macosx/Resources/mainwindow_dark/repeat-one-blue_dark.png \
280         extras/package/macosx/Resources/mainwindow_dark/repeat-pressed_dark.png \
281         extras/package/macosx/Resources/mainwindow_dark/repeat_dark.png \
282         extras/package/macosx/Resources/mainwindow_dark/shuffle-blue-pressed_dark.png \
283         extras/package/macosx/Resources/mainwindow_dark/shuffle-blue_dark.png \
284         extras/package/macosx/Resources/mainwindow_dark/shuffle-pressed_dark.png \
285         extras/package/macosx/Resources/mainwindow_dark/shuffle_dark.png \
286         extras/package/macosx/Resources/mainwindow_dark/stop-pressed_dark.png \
287         extras/package/macosx/Resources/mainwindow_dark/stop_dark.png \
288         extras/package/macosx/Resources/mainwindow_dark/volume-high_dark.png \
289         extras/package/macosx/Resources/mainwindow_dark/volume-low_dark.png \
290         extras/package/macosx/Resources/mainwindow_dark/volume-slider-knob_dark.png \
291         extras/package/macosx/Resources/mainwindow_dark/volume-slider-track_dark.png \
292         extras/package/macosx/Resources/noart.png \
293         extras/package/macosx/Resources/pause_embedded.png \
294         extras/package/macosx/Resources/pause_embedded_graphite.png \
295         extras/package/macosx/Resources/play_embedded.png \
296         extras/package/macosx/Resources/play_embedded_graphite.png \
297         extras/package/macosx/Resources/prefs/spref_cone_Audio_64.png \
298         extras/package/macosx/Resources/prefs/spref_cone_Hotkeys_64.png \
299         extras/package/macosx/Resources/prefs/spref_cone_Input_64.png \
300         extras/package/macosx/Resources/prefs/spref_cone_Interface_64.png \
301         extras/package/macosx/Resources/prefs/spref_cone_Subtitles_64.png \
302         extras/package/macosx/Resources/prefs/spref_cone_Video_64.png \
303         extras/package/macosx/Resources/README \
304         extras/package/macosx/Resources/repeat_embedded.png \
305         extras/package/macosx/Resources/repeat_embedded_graphite.png \
306         extras/package/macosx/Resources/repeat_single_embedded_graphite.png \
307         extras/package/macosx/Resources/shuffle_embedded.png \
308         extras/package/macosx/Resources/shuffle_embedded_graphite.png \
309         extras/package/macosx/Resources/sidebar-icons/document-music-playlist.png \
310         extras/package/macosx/Resources/sidebar-icons/film-cast.png \
311         extras/package/macosx/Resources/sidebar-icons/film.png \
312         extras/package/macosx/Resources/sidebar-icons/music-beam.png \
313         extras/package/macosx/Resources/sidebar-icons/network-cloud.png \
314         extras/package/macosx/Resources/sidebar-icons/picture.png \
315         extras/package/macosx/Resources/sidebar-icons/README \
316         extras/package/macosx/Resources/skip_forward_active_embedded.png \
317         extras/package/macosx/Resources/skip_forward_embedded_graphite.png \
318         extras/package/macosx/Resources/skip_previous_active_embedded.png \
319         extras/package/macosx/Resources/skip_previous_embedded_graphite.png \
320         extras/package/macosx/Resources/vlc.scriptSuite \
321         extras/package/macosx/Resources/vlc.scriptTerminology \
322         extras/package/macosx/fullscreen_panel.svg \
323         extras/package/macosx/ub.sh \
324         extras/package/macosx/vlc.xcodeproj/project.pbxproj \
325         extras/package/macosx/Delete_Preferences.app/Contents/Info.plist \
326         extras/package/macosx/Delete_Preferences.app/Contents/PkgInfo \
327         extras/package/macosx/Delete_Preferences.app/Contents/MacOS/applet \
328         extras/package/macosx/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
329         extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.icns \
330         extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.rsrc \
331         extras/package/macosx/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
332         extras/package/macosx/eyetvplugin/EyeTVPluginDefs.h \
333         extras/package/macosx/eyetvplugin/Info.plist \
334         extras/package/macosx/eyetvplugin/eyetvplugin.c \
335         extras/package/macosx/eyetvplugin/eyetvplugin.h \
336         extras/package/macosx/eyetvplugin/English.lproj/InfoPlist.strings \
337         extras/package/macosx/eyetvplugin/eyetvplugin.xcodeproj/project.pbxproj \
338         extras/package/macosx/README.MacOSX.rtf \
339         extras/package/macosx/Info.plist.in
342 ###############################################################################
343 # Various utilities ( editor syntax files, D-Bus controller ... )
344 ##############################################################################
345 EXTRA_DIST += \
346         extras/analyser/zsh_completion.sh \
347         extras/analyser/zsh.cpp \
348         extras/analyser/emacs.init \
349         extras/analyser/vlc.vim \
350         extras/analyser/valgrind.suppressions \
351         extras/buildsystem/make.pl \
352         extras/misc/mpris.py \
353         extras/misc/mpris.xml
355 ###############################################################################
356 # Scripts for building dependencies.
357 ##############################################################################
358 EXTRA_DIST += \
359         contrib/bootstrap \
360         contrib/src/
362 ###############################################################################
363 # Building libvlc
364 ###############################################################################
366 CLEANFILES = $(BUILT_SOURCES_clean)
367 DISTCLEANFILES = $(BUILT_SOURCES_distclean) compile
368 MAINTAINERCLEANFILES = ChangeLog
370 # Shortcut for developers to rebuild the core (libvlc + vlc)
371 # Don't use it if you don't know what it is about.
372 # Don't complain if it doesn't work. -- Courmisch
373 libcompat:
374         cd compat && $(MAKE) $(AM_MAKEFLAGS)
376 libvlccore: libcompat
377         cd src && $(MAKE) $(AM_MAKEFLAGS) libvlccore.la
379 libvlc: libvlccore
380         cd lib && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
382 core: libvlc vlc$(EXEEXT)
383         cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
385 doc:
386         cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
388 .PHONY: libvlc core doc
390 ###############################################################################
391 # Building aliases
392 ###############################################################################
394 ALL_ALIASES = cvlc rvlc svlc qvlc nvlc mvlc
395 bin_SCRIPTS = $(ALIASES)
396 CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
397 EXTRA_SCRIPTS = $(ALL_ALIASES)
399 dist_noinst_SCRIPTS += make-alias
401 MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
403 cvlc: make-alias Makefile
404         $(AM_V_GEN)$(MKALIAS) dummy
406 rvlc: make-alias Makefile
407         $(AM_V_GEN)$(MKALIAS) rc
409 svlc: make-alias Makefile
410         $(AM_V_GEN)$(MKALIAS) skins2
412 qvlc: make-alias Makefile
413         $(AM_V_GEN)$(MKALIAS) qt4
415 nvlc: make-alias Makefile
416         $(AM_V_GEN)$(MKALIAS) ncurses
418 mvlc: make-alias Makefile
419         $(AM_V_GEN)$(MKALIAS) maemo
421 if BUILD_VLC
422 noinst_SCRIPTS = vlc$(EXEEXT)
423 endif
425 vlc$(EXEEXT):
426         $(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
428 if HAVE_DARWIN
429 if BUILD_MACOSX_VLC_APP
430 # Create the MacOS X app
431 noinst_DATA = VLC.app
432 endif
433 endif
435 ###############################################################################
436 # Installing plugins cache
437 ###############################################################################
438 install-exec-hook:
439         if test "$(build)" = "$(host)"; then \
440                 LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
441                 "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
442                          "$(DESTDIR)$(vlclibdir)/plugins" ; \
443         else \
444                 echo "Cross-compilation: cache generation skipped!" ; \
445         fi
447 silentstd = $(silentstd_$(V))
448 silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY))
449 silentstd_0 = 2>&1 >/dev/null
451 # VLC-release.app for packaging and giving it to your friends
452 # use package-macosx to get a nice dmg
453 VLC-release.app: vlc
454         ( cd src && $(MAKE) $(AM_MAKEFLAGS) install $(silentstd) )
455         ( cd lib && $(MAKE) $(AM_MAKEFLAGS) install $(silentstd) )
456         rm -Rf "$(top_builddir)/tmp"
457         mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
458         rm -Rf $(top_builddir)/VLC-release.app
459         for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \
460           cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
461         done
462         REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \
463         cat $(top_builddir)/extras/package/macosx/Info.plist | \
464         sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
465         cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
466         for i in AUTHORS COPYING THANKS; do \
467           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
468         done
469         mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle
470         cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle
471         mkdir -p $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
472         cp -R $(CONTRIB_DIR)/BGHUDAppKit/BGHUDAppKit.framework $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
473         mkdir -p $(top_builddir)/tmp/extras/contrib/Growl
474         cp -R $(CONTRIB_DIR)/Growl/Growl.framework $(top_builddir)/tmp/extras/contrib/Growl
475         mkdir -p $(top_builddir)/tmp/modules/audio_output
476         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
477         for i in \
478             AppleRemote.h \
479             AppleRemote.m \
480             about.h \
481             about.m \
482             applescript.h \
483             applescript.m \
484             controls.h \
485             controls.m \
486             intf.h \
487             intf.m \
488             macosx.m \
489             misc.h \
490             misc.m \
491             open.h \
492             open.m \
493             output.h \
494             output.m \
495             playlist.h \
496             playlist.m \
497             playlistinfo.h \
498             playlistinfo.m \
499             prefs_widgets.h \
500             prefs_widgets.m \
501             prefs.h \
502             prefs.m \
503             simple_prefs.h \
504             simple_prefs.m \
505             wizard.h \
506             wizard.m \
507             bookmarks.h \
508             bookmarks.m \
509             coredialogs.h \
510             coredialogs.m \
511             fspanel.h \
512             fspanel.m; do \
513           cp "$(srcdir)/modules/gui/macosx/$$i" \
514              $(top_builddir)/tmp/modules/gui/macosx; \
515         done
516         $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
517         xcodebuild -target vlc SYMROOT=../../../build DSTROOT=../../../build $(silentstd) && \
518         cd ../../../../ && \
519         cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC-release.app; \
520         rm -Rf $(top_builddir)/tmp
521         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
522         PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
523         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua
524         for i in $(srcdir)/share/lua/*.* ; do \
525           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/`basename $${i}` ; \
526         done ; \
527         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist
528         for i in $(srcdir)/share/lua/playlist/*.* ; do \
529           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; \
530         done ; \
531         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta
532         for i in $(srcdir)/share/lua/meta/*.* ; do \
533           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta/`basename $${i}` ; \
534         done ; \
535         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf
536         for i in $(srcdir)/share/lua/intf/*.* ; do \
537           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/`basename $${i}` ; \
538         done ; \
539         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules
540         for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
541           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules/`basename $${i}` ; \
542         done ; \
543         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs
544         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js
545         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images
546         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests
547         $(INSTALL) -m 644 $(srcdir)/share/lua/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/.hosts
548         for i in $(srcdir)/share/lua/http/*.* ; do \
549           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/`basename $${i}` ; \
550         done
551         for i in $(srcdir)/share/lua/http/dialogs/* ; do \
552           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs/`basename $${i}` ; \
553         done
554         for i in $(srcdir)/share/lua/http/js/*.* ; do \
555           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js/`basename $${i}` ; \
556         done
557         for i in $(srcdir)/share/lua/http/images/*.* ; do \
558           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images/`basename $${i}` ; \
559         done
560         for i in $(srcdir)/share/lua/http/requests/*.* ; do \
561           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/`basename $${i}` ; \
562         done
563         $(INSTALL) -m 644 $(srcdir)/share/lua/http/requests/README.txt $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/README.txt
564         $(INSTALL) -m 644 $(srcdir)/share/vlc512x512.png $(top_builddir)/VLC-release.app/Contents/MacOS/share/vlc512x512.png
565         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale
566         cat $(top_srcdir)/po/LINGUAS | while read i; do \
567           $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
568           $(INSTALL) $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
569           mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
570           $(LN_S) -f ../English.lproj/InfoPlist.strings \
571               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
572           $(LN_S) -f ../English.lproj/MainMenu.xib \
573               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
574         done
575         printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
576         rm -Rf $(top_builddir)/VLC-release.app/Contents/Frameworks/BGHUDAppKit.framework/Resources/
577         find $(top_builddir)/VLC-release.app -type d -exec chmod ugo+rx '{}' \;
578         find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \;
580 # This is just for development purposes. 
581 # The resulting VLC.app will only run in this tree.
582 VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/lib/.libs/libvlc.dylib
583         $(AM_V_GEN)(cd src && make install $(silentstd))
584         $(AM_V_GEN)(cd lib && make install $(silentstd))
585         rm -Rf $(top_builddir)/tmp
586         mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
587         rm -Rf $(top_builddir)/VLC.app
588         for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \
589           cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
590         done
591         REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \
592         cat $(top_builddir)/extras/package/macosx/Info.plist | \
593         sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
594         cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
595         for i in AUTHORS COPYING THANKS; do \
596           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
597         done
598         mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle
599         cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle
600         mkdir -p $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
601         cp -R $(CONTRIB_DIR)/BGHUDAppKit/BGHUDAppKit.framework $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
602         mkdir -p $(top_builddir)/tmp/extras/contrib/Growl
603         cp -R $(CONTRIB_DIR)/Growl/Growl.framework $(top_builddir)/tmp/extras/contrib/Growl
604         mkdir -p $(top_builddir)/tmp/modules/audio_output
605         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
606         for i in \
607             AppleRemote.h \
608             AppleRemote.m \
609             about.h \
610             about.m \
611             applescript.h \
612             applescript.m \
613             controls.h \
614             controls.m \
615             intf.h \
616             intf.m \
617             macosx.m \
618             misc.h \
619             misc.m \
620             open.h \
621             open.m \
622             output.h \
623             output.m \
624             playlist.h \
625             playlist.m \
626             playlistinfo.h \
627             playlistinfo.m \
628             prefs_widgets.h \
629             prefs_widgets.m \
630             prefs.h \
631             prefs.m \
632             simple_prefs.h \
633             simple_prefs.m \
634             wizard.h \
635             wizard.m \
636             bookmarks.h \
637             bookmarks.m \
638             coredialogs.h \
639             coredialogs.m \
640             fspanel.h \
641             fspanel.m; do \
642           cp "$(srcdir)/modules/gui/macosx/$$i" \
643              $(top_builddir)/tmp/modules/gui/macosx; \
644         done
645         $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
646         xcodebuild -target vlc SYMROOT=../../../build DSTROOT=../../../build $(silentstd) && \
647         cd ../../../../ && \
648         cp -R -L $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC.app
649         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
650         touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
651         chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
652         $(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
653         $(LN_S) -f ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/plugins
654         install -d $(top_builddir)/VLC.app/Contents/MacOS/share
655         for i in `ls $(srcdir)/share`; do \
656            $(LN_S) -f `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; \
657         done
658         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
659         cat $(top_srcdir)/po/LINGUAS | while read i; do \
660           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
661           $(LN_S) -f `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
662           mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
663           $(LN_S) -f ../English.lproj/InfoPlist.strings \
664               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
665           $(LN_S) -f ../English.lproj/MainMenu.xib \
666               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
667         done
668         printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
670 ###############################################################################
671 # Building architecture-specific binary packages
672 ###############################################################################
674 # XXX: this rule is probably only useful to you if you have exactly
675 # the same setup as the maintaner(s).
678 ############################################################################
679 ## Win                                                                    ##
680 ############################################################################
681 destdir=$(prefix)
682 win32_destdir=$(top_builddir)/vlc-$(VERSION)
683 win32_debugdir=$(top_builddir)/symbols-$(VERSION)
684 win32_xpi_destdir=$(win32_destdir)/vlc-plugin
686 if HAVE_WIN64
687 build-npapi:
688         touch $@
690 build-activex:
691         touch $@
692 else
693 if HAVE_WINCE
694 build-npapi:
695         touch $@
697 build-activex:
698         touch $@
699 else
700 if HAVE_WIN32
701 include extras/package/npapi.am
702 include extras/package/activex.am
703 endif
704 endif
705 endif
707 #Win-common is for win32 and wince
708 package-win-common: install build-npapi build-activex
709 # Check that tmp isn't in the way
710         @if test -e "$(win32_destdir)"; then \
711             echo "Error: please remove $(win32_destdir), it is in the way"; \
712             false; \
713         elif test -e "$(win32_debugdir)"; then \
714             echo "Error: please remove $(win32_debugdir), it is in the way"; \
715             false; \
716         else \
717             echo "Debug dir OK."; mkdir -p "$(win32_debugdir)"; \
718             echo "Dest dir OK."; mkdir -p "$(win32_destdir)"; \
719         fi
721 # Executables, major libs+manifests
722         find $(destdir) -maxdepth 4 \( -name "*$(LIBEXT)" -o -name "*$(EXEEXT)" \) -exec cp {} "$(win32_destdir)/" \;
723         for file in $(top_srcdir)/extras/package/win32/vlc$(EXEEXT).manifest \
724                 $(top_srcdir)/extras/package/win32/libvlc$(LIBEXT).manifest; \
725             do cp $$file "$(win32_destdir)/" ; done;
727 # Text files and clean them
728         for file in AUTHORS THANKS ; \
729           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt" ; done;
730         for file in NEWS COPYING README; \
731           do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
733 # Necessary icon
734         cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)
736 # Locales
737         -cp -r $(destdir)/share/locale $(win32_destdir)
739 # Plugins
740         cp -r $(destdir)/lib/vlc/plugins $(win32_destdir)
742 if BUILD_LUA
743         mkdir -p $(win32_destdir)/lua
744         cp -r $(destdir)/lib/vlc/lua/* $(win32_destdir)/lua
745         cp -r $(destdir)/share/vlc/lua/* $(win32_destdir)/lua
746 endif
748 if BUILD_SKINS
749         cp -r $(destdir)/share/vlc/skins2 $(win32_destdir)/skins
750 endif
751 if BUILD_OSDMENU
752         cp -r $(destdir)/share/vlc/osdmenu "$(win32_destdir)/osdmenu"
753         for file in $(win32_destdir)/osdmenu/*.cfg; do \
754                 sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \
755                 sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \
756                 rm -f -- "$$file.tmp"; \
757         done
758 endif
759 if !HAVE_WIN64
760 if !HAVE_WINCE
761         cp "$(top_builddir)/activex-vlc/src/axvlc.dll.manifest" "$(win32_destdir)/"
762         cp "$(top_builddir)/activex-vlc/installed/lib/axvlc.dll" "$(win32_destdir)/"
763         cp "$(top_builddir)/npapi-vlc/npapi/npvlc.dll.manifest" "$(win32_destdir)/"
764         cp "$(top_builddir)/npapi-vlc/installed/lib/npvlc.dll" "$(win32_destdir)/"
765 endif
766 endif
768 # SDK
769         mkdir -p "$(win32_destdir)/sdk/lib"
770         cp -r $(destdir)/include "$(win32_destdir)/sdk"
771         cp -r $(destdir)/lib/pkgconfig "$(win32_destdir)/sdk/lib"
772         for file in libvlc.dll.a libvlc.la libvlccore.dll.a libvlccore.la; do \
773         cp -rv $(destdir)/lib/$$file "$(win32_destdir)/sdk/lib"; done
774 if !HAVE_WIN64
775 if !HAVE_WINCE
776         mkdir -p "$(win32_destdir)/sdk/activex"
777         cp $(top_builddir)/activex-vlc/README $(win32_destdir)/sdk/activex/README.TXT
778         cp $(top_builddir)/activex-vlc/src/test.html $(win32_destdir)/sdk/activex/
779 endif
780 endif
782         find $(win32_destdir) -type f \( -name "*xml" -or -name "*html" -or -name '*js' -or -name '*css' -or -name '*hosts' -or -iname '*txt' -or -name '*.cfg' -or -name '*.lua' \) -exec $(U2D) {} \;
784 #Enable DEP and ASLR for all the binaries
785 if USE_PEFLAGS
786         find $(win32_destdir) -type f \( -name '*$(LIBEXT)' -print -o -name '*$(EXEEXT)' -print \) -exec $(PEFLAGS) --dynamicbase=true --nxcompat=true {} \;
787 endif
788         find $(win32_destdir)/plugins/ -type f \( -name '*.a' -or -name '*.la' \) -exec rm -rvf {} \;
790 package-win-base: package-win-common
791         find $(win32_destdir) -type f \( -name '*$(LIBEXT)' -or -name '*$(EXEEXT)' \) | while read i; \
792         do if test -n "$$i" ; then \
793             $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
794             $(OBJCOPY) --strip-all "$$i" ; \
795             $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
796             mv "$$i.dbg" "$(win32_debugdir)"; \
797           fi ; \
798         done
800 package-win32-webplugin-common: package-win-base
801         mkdir -p "$(win32_xpi_destdir)/plugins"
802         find $(destdir) -maxdepth 4 -name "*$(LIBEXT)" -exec cp {} "$(win32_xpi_destdir)/" \;
803 if !HAVE_WIN64
804         cp $(top_builddir)/npapi-vlc/npapi/npvlc.dll.manifest "$(win32_xpi_destdir)/plugins"
805 endif
806         cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_xpi_destdir)/plugins"
807         cp -r $(win32_destdir)/plugins/ "$(win32_xpi_destdir)/plugins"
808         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*"
809         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
811 package-win32-xpi: package-win32-webplugin-common
812 if !HAVE_WIN64
813         cp $(top_builddir)/npapi-vlc/npapi/install.rdf "$(win32_xpi_destdir)"
814         cd $(win32_xpi_destdir) && zip -r "../vlc-$(VERSION).xpi" install.rdf plugins
815 endif
817 package-win32-crx: package-win32-webplugin-common
818 if !HAVE_WIN64
819         cp $(top_builddir)/npapi-vlc/npapi/manifest.json "$(win32_xpi_destdir)"
820         crxmake --pack-extension "$(win32_xpi_destdir)" \
821                 --extension-output "$(win32_destdir)/vlc-$(VERSION).crx" --ignore-file install.rdf
822 endif
824 package-win32-base-exe: package-win-base
825 # Script installer
826         cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
827         cp "$(top_builddir)/extras/package/win32/spad.nsi" "$(win32_destdir)/"
828         mkdir "$(win32_destdir)/languages"
829         cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
830 # Copy the UAC NSIS plugin
831         mkdir -p "$(win32_destdir)/NSIS"
832         cp "$(top_srcdir)/extras/package/win32/UAC.nsh" "$(win32_destdir)/NSIS"
833         cp "$(top_srcdir)/extras/package/win32/UAC.dll" "$(win32_destdir)/NSIS"
835 # Create package
836         if makensis -VERSION >/dev/null 2>&1; then \
837             MAKENSIS="makensis"; \
838         elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
839             MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis"; \
840         elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then \
841             MAKENSIS="$(PROGRAMFILES)/NSIS/makensis"; \
842         elif wine --version >/dev/null 2>&1; then \
843             MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"; \
844         else \
845             echo 'Error: cannot locate makensis tool'; exit 1; \
846         fi; \
847         eval "$$MAKENSIS $(win32_destdir)/spad.nsi"; \
848         eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
850 package-win32-base-zip: package-win-base
851 # Create package
852         rm -f -- vlc-$(VERSION)-win32.zip
853         zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION)
855 package-win32-base-debug-zip: package-win-common
856 # Create package
857         rm -f -- vlc-$(VERSION)-win32-debug.zip
858         zip -r -9 vlc-$(VERSION)-win32-debug.zip vlc-$(VERSION)
860 package-win32-base-7zip: package-win-base
861 # Create package
862         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION)
864 package-win32-base-debug-7zip: package-win-common
865 # Create package
866         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32-debug.7z vlc-$(VERSION)
868 package-win32-cleanup:
869         rm -Rf $(win32_destdir) $(win32_debugdir)
871 package-win32-exe: package-win-base package-win32-base-exe package-win32-cleanup
873 package-win32-zip: package-win32-base-zip package-win32-cleanup
875 package-win32-debug-zip: package-win32-base-debug-zip package-win32-cleanup
877 package-win32-7zip: package-win32-base-7zip package-win32-cleanup
879 package-win32-debug-7zip: package-win32-base-debug-7zip package-win32-cleanup
881 package-win32-no-clean: package-win32-base-zip package-win32-base-7zip package-win32-base-exe package-win32-xpi
883 package-win32: package-win32-no-clean package-win32-cleanup
885 package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip package-win32-cleanup
888 #######
889 # WinCE
890 #######
891 package-wince-base: package-win-base
893 package-wince-base-zip: package-wince-base
894 # Create package
895         rm -f -- vlc-$(VERSION)-wince.zip
896         zip -r -9 vlc-$(VERSION)-wince.zip vlc-$(VERSION)
898 package-wince: package-wince-base-zip package-win32-cleanup
901 #########################################################################
902 ## MacOS X                                                             ##
903 #########################################################################
904 package-macosx: VLC-release.app ChangeLog
905 # Check that the temporary location isn't in the way
906         @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then \
907           rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; \
908         fi
910         echo "Create package directory: vlc-$(VERSION)/";
911         mkdir -p "$(top_builddir)/vlc-$(VERSION)/";
913 # Copy relevant files 
914         @if test -e "$(top_builddir)/VLC-release.app/"; then \
915           cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
916         else \
917           cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
918         fi
919         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
920           mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && \
921           cp $(srcdir)/AUTHORS $(srcdir)/COPYING $(srcdir)/README $(srcdir)/THANKS $(srcdir)/NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
922           cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \
923           cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \
924           cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
925         cp -L $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
927 # Place a link to the application folder
928         $(LN_S) /Applications $(top_builddir)/vlc-$(VERSION)/Applications
930 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs)
931         echo "Creating disk image"
932         rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
933         hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
934           "$(top_builddir)/vlc-$(VERSION).dmg" -scrub
935         echo "Disk image creation completed:"
936         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
938 # Create disk image 
939 #       echo "Creating disk image"
940 #       rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
941 #       hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
942 #         "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \
943 #         -scrub -imagekey zlib-level=9 -attach
945 # Make sure the root window of the dmg will pop up when the dmg is mounted.
946 # Note: We dont mount in /Volumes to be sure we won't collide with an other
947 # finder mounted dmg with the same name.
948 #       echo "Make sure the root window of the dmg will pop up when the dmg is mounted"
949 #       mkdir -p $(top_builddir)/vlcmnt
950 #       hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
951 #       bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
952 #       sleep 1 # Make sure operation completes
953 #       cd "$(srcdir)"
955 # Unmount the image now
956 #       hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
957 #       rm -R $(top_builddir)/vlcmnt
959 # Make sure the image is not writable
960 # Note: We can't directly create a read only dmg as we do the bless stuff
961         echo "Make the disk image read-only"
962         mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
963         hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDBZ -o "$(top_builddir)/vlc-$(VERSION).dmg"
964         rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
966 # We are done
967         echo "Disk image creation completed:"
968         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
970 # Clean up
971         rm -Rf "$(top_builddir)/vlc-$(VERSION)"
973 package-macosx-zip: VLC-release.app
974         rm -Rf $(top_builddir)/vlc-$(VERSION)
975         mkdir -p $(top_builddir)/vlc-$(VERSION)
976         cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app
977         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
978         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
979           cp $(srcdir)/$$i $(top_builddir)/vlc-$(VERSION)/Goodies; \
980         done
981         cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app \
982              $(top_builddir)/vlc-$(VERSION)/Goodies
983         cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf \
984            $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
985         zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
986         rm -Rf $(top_builddir)/vlc-$(VERSION)
988 package-macosx-framework-zip:
989         rm -Rf $(top_builddir)/vlckit-$(VERSION)
990         mkdir -p $(top_builddir)/vlckit-$(VERSION)
991         cp -R $(srcdir)/projects/macosx/framework/build/Debug/VLCKit.framework \
992           $(top_builddir)/vlckit-$(VERSION)/VLCKit.framework
993         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
994         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
995           cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; \
996         done
997         zip -r -y -9 $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
998         rm -Rf $(top_builddir)/vlc-$(VERSION)
1000 package-translations:
1001         @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \
1002           echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \
1003           false; \
1004         else \
1005           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \
1006         fi
1007 # Copy translations
1008         cat $(top_srcdir)/po/LINGUAS | while read i; do \
1009           cp "$(srcdir)/po/$${i}.po" \
1010             "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \
1011             || true ; \
1012         done
1013         cp "$(srcdir)/doc/translations.txt" \
1014           "$(srcdir)/vlc-translations-$(VERSION)/README.txt"
1016         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1017         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1018         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1019         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1020         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1021         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1022         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1023         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1025         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1026           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1028 ###############################################################################
1029 # PO translation files update
1030 ###############################################################################
1031 .PHONY: update-po
1033 update-po:
1034         cd po && $(MAKE) POTFILES vlc.pot update-po
1037 ###############################################################################
1038 # Enforce Mac OS X deployment target environment variable
1039 ###############################################################################
1040 macosx-sdk: Makefile.in $(HEADERS_include)
1041         export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)