]> git.sesse.net Git - vlc/blob - Makefile.am
Win32 installer: add Danish translation
[vlc] / Makefile.am
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
4
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, mozilla and bindings
9 #  - libs/* are needed by modules
10 BASE_SUBDIRS = po compat src bin modules share doc test
11 EXTRA_SUBDIRS = m4 extras/package/ipkg \
12         libs/loader libs/srtp libs/unzip \
13         projects/mozilla projects/activex
14 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
15
16 SUBDIRS = po compat src
17 if LOADER
18 SUBDIRS += libs/loader
19 endif
20 if HAVE_GCRYPT
21 SUBDIRS += libs/srtp
22 endif
23 if HAVE_ZLIB
24 if !HAVE_MINIZIP
25 SUBDIRS += libs/unzip
26 endif
27 endif
28 if BUILD_VLC
29 SUBDIRS += bin
30 endif
31 SUBDIRS += modules share doc test
32 if BUILD_MOZILLA
33 SUBDIRS += projects/mozilla
34 endif
35 if BUILD_ACTIVEX
36 SUBDIRS += projects/activex
37 endif
38
39 EXTRA_DIST = \
40         HACKING \
41         INSTALL.win32 \
42         INSTALL.wince \
43         extras/package/win32/vlc.exe.manifest \
44         extras/package/win32/libvlc.dll.manifest \
45         extras/package/macosx/README.MacOSX.rtf \
46         vlc-config.in.in \
47         extras/package/rpm/vlc.fedora.spec \
48         extras/package/rpm/vlc.altlinux.spec \
49         extras/package/win32/vlc.win32.nsi.in \
50         extras/package/win32/spad.nsi.in \
51         extras/package/win32/UAC.nsh \
52         extras/package/win32/UAC.dll \
53         extras/package/win32/languages/declaration.nsh \
54         extras/package/win32/languages/bengali.nsh \
55         extras/package/win32/languages/brazilian_portuguese.nsh \
56         extras/package/win32/languages/bulgarian.nsh \
57         extras/package/win32/languages/catalan.nsh \
58         extras/package/win32/languages/danish.nsh \
59         extras/package/win32/languages/dutch.nsh \
60         extras/package/win32/languages/english.nsh \
61         extras/package/win32/languages/estonian.nsh \
62         extras/package/win32/languages/finnish.nsh \
63         extras/package/win32/languages/french.nsh \
64         extras/package/win32/languages/german.nsh \
65         extras/package/win32/languages/hungarian.nsh \
66         extras/package/win32/languages/italian.nsh \
67         extras/package/win32/languages/japanese.nsh \
68         extras/package/win32/languages/occitan.nsh \
69         extras/package/win32/languages/polish.nsh \
70         extras/package/win32/languages/punjabi.nsh \
71         extras/package/win32/languages/romanian.nsh \
72         extras/package/win32/languages/schinese.nsh \
73         extras/package/win32/languages/slovak.nsh \
74         extras/package/win32/languages/slovenian.nsh \
75         extras/package/win32/languages/sorani.nsh \
76         extras/package/win32/languages/spanish.nsh
77
78 dist_noinst_SCRIPTS = bootstrap toolbox
79 nodist_noinst_SCRIPTS = compile
80
81 BUILT_SOURCES_distclean = vlc-config extras/package/win32/vlc.win32.nsi extras/package/win32/spad.nsi
82 if HAVE_DARWIN
83 BUILT_SOURCES_clean = macosx-sdk
84 else
85 BUILT_SOURCES_clean =
86 endif
87
88 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
89
90 SUFFIXES = 
91
92 DISTCHECK_CONFIGURE_FLAGS = \
93         --enable-fast-install \
94         --disable-a52 \
95         --disable-avcodec --disable-avformat \
96         --disable-postproc --disable-swscale \
97         --disable-dbus \
98         --disable-mad --disable-libmpeg2 \
99         --disable-faad --disable-skins2 \
100         --disable-live555 \
101         --disable-fribidi --disable-glx
102
103 ACLOCAL_AMFLAGS = -I m4
104 AUTOMAKE_OPTIONS = \
105         1.9 \
106         -Wall \
107         check-news \
108         dist-bzip2 \
109         no-dist-gzip
110 #       std-options
111
112 ChangeLog: Makefile.am
113         rm -f -- "$@"
114         cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
115         ln -sf doc/ChangeLog-2009 "$@"
116
117 ###############################################################################
118 # MacOS X project
119 ###############################################################################
120
121 EXTRA_DIST += \
122         extras/package/macosx/Resources/English.lproj/MainMenu.nib/designable.nib \
123         extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
124         extras/package/macosx/Resources/English.lproj/MediaInfo.nib/designable.nib \
125         extras/package/macosx/Resources/English.lproj/MediaInfo.nib/keyedobjects.nib \
126         extras/package/macosx/Resources/English.lproj/About.nib/designable.nib \
127         extras/package/macosx/Resources/English.lproj/About.nib/keyedobjects.nib \
128         extras/package/macosx/Resources/English.lproj/Open.nib/designable.nib \
129         extras/package/macosx/Resources/English.lproj/Open.nib/keyedobjects.nib \
130         extras/package/macosx/Resources/English.lproj/Preferences.nib/designable.nib \
131         extras/package/macosx/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
132         extras/package/macosx/Resources/English.lproj/Wizard.nib/designable.nib \
133         extras/package/macosx/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
134         extras/package/macosx/Resources/English.lproj/Bookmarks.nib/designable.nib \
135         extras/package/macosx/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
136         extras/package/macosx/Resources/English.lproj/Extended.nib/designable.nib \
137         extras/package/macosx/Resources/English.lproj/Extended.nib/keyedobjects.nib \
138         extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/designable.nib \
139         extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/keyedobjects.nib \
140         extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/designable.nib \
141         extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/keyedobjects.nib \
142         extras/package/macosx/Resources/English.lproj/InfoPlist.strings.in \
143         extras/package/macosx/Resources/dsa_pub.pem \
144         extras/package/macosx/Resources/aiff.icns \
145         extras/package/macosx/Resources/audio.icns \
146         extras/package/macosx/Resources/avi.icns \
147         extras/package/macosx/Resources/flv.icns \
148         extras/package/macosx/Resources/generic.icns \
149         extras/package/macosx/Resources/m4a.icns \
150         extras/package/macosx/Resources/m4v.icns \
151         extras/package/macosx/Resources/mkv.icns \
152         extras/package/macosx/Resources/mov.icns \
153         extras/package/macosx/Resources/movie.icns \
154         extras/package/macosx/Resources/mp3.icns \
155         extras/package/macosx/Resources/mpeg.icns \
156         extras/package/macosx/Resources/ogg.icns \
157         extras/package/macosx/Resources/playlist.icns \
158         extras/package/macosx/Resources/rm.icns \
159         extras/package/macosx/Resources/subtitle.icns \
160         extras/package/macosx/Resources/vob.icns \
161         extras/package/macosx/Resources/wav.icns \
162         extras/package/macosx/Resources/vlc.icns \
163         extras/package/macosx/Resources/wma.icns \
164         extras/package/macosx/Resources/wmv.icns \
165         extras/package/macosx/Resources/pause.png \
166         extras/package/macosx/Resources/pause_blue.png \
167         extras/package/macosx/Resources/play.png \
168         extras/package/macosx/Resources/play_blue.png \
169         extras/package/macosx/Resources/stop.png \
170         extras/package/macosx/Resources/stop_blue.png \
171         extras/package/macosx/Resources/display_left.png \
172         extras/package/macosx/Resources/display_middle.png \
173         extras/package/macosx/Resources/display_right.png \
174         extras/package/macosx/Resources/display_slider.png \
175         extras/package/macosx/Resources/display_track.png \
176         extras/package/macosx/Resources/equalizerdrawer_active.png \
177         extras/package/macosx/Resources/equalizerdrawer_blue.png \
178         extras/package/macosx/Resources/fullscreen_active.png \
179         extras/package/macosx/Resources/fullscreen_blue.png \
180         extras/package/macosx/Resources/next_active.png \
181         extras/package/macosx/Resources/next_blue.png \
182         extras/package/macosx/Resources/playlistdrawer_active.png \
183         extras/package/macosx/Resources/playlistdrawer_blue.png \
184         extras/package/macosx/Resources/previous_active.png \
185         extras/package/macosx/Resources/previous_blue.png \
186         extras/package/macosx/Resources/skip_forward_active.png \
187         extras/package/macosx/Resources/skip_forward_blue.png \
188         extras/package/macosx/Resources/skip_previous_active.png \
189         extras/package/macosx/Resources/skip_previous_blue.png \
190         extras/package/macosx/Resources/volume_high.png \
191         extras/package/macosx/Resources/volume_low.png \
192         extras/package/macosx/Resources/volumeslider_blue.png \
193         extras/package/macosx/Resources/volumeslider_normal.png \
194         extras/package/macosx/Resources/volumetrack.png \
195         extras/package/macosx/Resources/about_bg.png \
196         extras/package/macosx/Resources/skip_forward_active_embedded.png \
197         extras/package/macosx/Resources/play_embedded.png \
198         extras/package/macosx/Resources/pause_embedded.png \
199         extras/package/macosx/Resources/skip_previous_active_embedded.png \
200         extras/package/macosx/Resources/pause_embedded_blue.png \
201         extras/package/macosx/Resources/play_embedded_blue.png \
202         extras/package/macosx/Resources/skip_forward_embedded_blue.png \
203         extras/package/macosx/Resources/skip_previous_embedded_blue.png \
204         extras/package/macosx/Resources/vlc.scriptSuite \
205         extras/package/macosx/Resources/vlc.scriptTerminology \
206         extras/package/macosx/Resources/README \
207         extras/package/macosx/Resources/add_embedded.png \
208         extras/package/macosx/Resources/add_embedded_blue.png \
209         extras/package/macosx/Resources/repeat_embedded.png \
210         extras/package/macosx/Resources/repeat_embedded_blue.png \
211         extras/package/macosx/Resources/repeat_single_embedded_blue.png \
212         extras/package/macosx/Resources/shuffle_embedded.png \
213         extras/package/macosx/Resources/shuffle_embedded_blue.png \
214         extras/package/macosx/Resources/fs_volume_slider_knob_highlight.png \
215         extras/package/macosx/Resources/fs_volume_slider_knob.png \
216         extras/package/macosx/Resources/fs_volume_slider_bar.png \
217         extras/package/macosx/Resources/fs_volume_mute_highlight.png \
218         extras/package/macosx/Resources/fs_volume_mute.png \
219         extras/package/macosx/Resources/fs_volume_max_highlight.png \
220         extras/package/macosx/Resources/fs_volume_max.png \
221         extras/package/macosx/Resources/fs_time_slider_knob_highlight.png \
222         extras/package/macosx/Resources/fs_time_slider_knob.png \
223         extras/package/macosx/Resources/fs_time_slider.png \
224         extras/package/macosx/Resources/fs_stop_highlight.png \
225         extras/package/macosx/Resources/fs_stop.png \
226         extras/package/macosx/Resources/fs_skip_previous_highlight.png \
227         extras/package/macosx/Resources/fs_skip_previous.png \
228         extras/package/macosx/Resources/fs_skip_next_highlight.png \
229         extras/package/macosx/Resources/fs_skip_next.png \
230         extras/package/macosx/Resources/fs_rewind_highlight.png \
231         extras/package/macosx/Resources/fs_rewind.png \
232         extras/package/macosx/Resources/fs_play_highlight.png \
233         extras/package/macosx/Resources/fs_play.png \
234         extras/package/macosx/Resources/fs_pause_highlight.png \
235         extras/package/macosx/Resources/fs_pause.png \
236         extras/package/macosx/Resources/fs_forward_highlight.png \
237         extras/package/macosx/Resources/fs_forward.png \
238         extras/package/macosx/Resources/fs_exit_fullscreen_highlight.png \
239         extras/package/macosx/Resources/fs_exit_fullscreen.png \
240         extras/package/macosx/Resources/fs_background.png \
241         extras/package/macosx/Resources/add_embedded_graphite.png \
242         extras/package/macosx/Resources/equalizerdrawer_graphite.png \
243         extras/package/macosx/Resources/fullscreen_graphite.png \
244         extras/package/macosx/Resources/next_graphite.png \
245         extras/package/macosx/Resources/pause_embedded_graphite.png \
246         extras/package/macosx/Resources/pause_graphite.png \
247         extras/package/macosx/Resources/play_embedded_graphite.png \
248         extras/package/macosx/Resources/play_graphite.png \
249         extras/package/macosx/Resources/playlistdrawer_graphite.png \
250         extras/package/macosx/Resources/previous_graphite.png \
251         extras/package/macosx/Resources/repeat_embedded_graphite.png \
252         extras/package/macosx/Resources/repeat_single_embedded_graphite.png \
253         extras/package/macosx/Resources/shuffle_embedded_graphite.png \
254         extras/package/macosx/Resources/skip_forward_embedded_graphite.png \
255         extras/package/macosx/Resources/skip_forward_graphite.png \
256         extras/package/macosx/Resources/skip_previous_embedded_graphite.png \
257         extras/package/macosx/Resources/skip_previous_graphite.png \
258         extras/package/macosx/Resources/stop_graphite.png \
259         extras/package/macosx/Resources/volumeslider_graphite.png \
260         extras/package/macosx/Resources/backward_big_down.png \
261         extras/package/macosx/Resources/backward_big.png \
262         extras/package/macosx/Resources/eq_sm.pdf \
263         extras/package/macosx/Resources/forward_big_down.png \
264         extras/package/macosx/Resources/forward_big.png \
265         extras/package/macosx/Resources/fs_sm.pdf \
266         extras/package/macosx/Resources/list_sm.pdf \
267         extras/package/macosx/Resources/next_sm.pdf \
268         extras/package/macosx/Resources/pause_big_down.png \
269         extras/package/macosx/Resources/pause_big.png \
270         extras/package/macosx/Resources/play_big_down.png \
271         extras/package/macosx/Resources/play_big.png \
272         extras/package/macosx/Resources/prev_sm.pdf \
273         extras/package/macosx/Resources/sidebarAdd.png \
274         extras/package/macosx/Resources/sidebarRepeat.png \
275         extras/package/macosx/Resources/sidebarRepeatOn.png \
276         extras/package/macosx/Resources/sidebarRepeatOneOn.png \
277         extras/package/macosx/Resources/sidebarResizeWidget.png \
278         extras/package/macosx/Resources/sidebarShuffle.png \
279         extras/package/macosx/Resources/sidebarShuffleOn.png \
280         extras/package/macosx/Resources/sidebarStatusAreaBackground.png \
281         extras/package/macosx/Resources/stop_sm.pdf \
282         extras/package/macosx/Resources/noart.png \
283         extras/package/macosx/Resources/spref_cone_Audio_64.png \
284         extras/package/macosx/Resources/spref_cone_Hotkeys_64.png \
285         extras/package/macosx/Resources/spref_cone_Input_64.png \
286         extras/package/macosx/Resources/spref_cone_Interface_64.png \
287         extras/package/macosx/Resources/spref_cone_Subtitles_64.png \
288         extras/package/macosx/Resources/spref_cone_Video_64.png \
289         extras/package/macosx/fullscreen_panel.svg \
290         extras/package/macosx/ub.sh \
291         extras/package/macosx/vlc.xcodeproj/project.pbxproj \
292         extras/package/macosx/Delete_Preferences.app/Contents/Info.plist \
293         extras/package/macosx/Delete_Preferences.app/Contents/PkgInfo \
294         extras/package/macosx/Delete_Preferences.app/Contents/MacOS/applet \
295         extras/package/macosx/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
296         extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.icns \
297         extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.rsrc \
298         extras/package/macosx/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
299         extras/package/macosx/plugin/Info.plist.in \
300         extras/package/macosx/plugin/InstallerInfo.plist.in \
301         extras/package/macosx/plugin/InstallerDescription.plist \
302         extras/package/macosx/plugin/pbdevelopment.plist \
303         extras/package/macosx/eyetvplugin/EyeTVPluginDefs.h \
304         extras/package/macosx/eyetvplugin/Info.plist \
305         extras/package/macosx/eyetvplugin/eyetvplugin.c \
306         extras/package/macosx/eyetvplugin/eyetvplugin.h \
307         extras/package/macosx/eyetvplugin/English.lproj/InfoPlist.strings \
308         extras/package/macosx/eyetvplugin/eyetvplugin.xcodeproj/project.pbxproj \
309         extras/package/macosx/README.MacOSX.rtf \
310         extras/package/macosx/Info.plist.in
311
312
313 ###############################################################################
314 # Various utilities ( editor syntax files, D-Bus controller ... )
315 ##############################################################################
316 EXTRA_DIST += \
317         extras/analyser/zsh_completion.sh \
318         extras/analyser/zsh.cpp \
319         extras/analyser/emacs.init \
320         extras/analyser/vlc.vim \
321         extras/analyser/valgrind.suppressions \
322         extras/buildsystem/make.pl \
323         extras/misc/mpris.py \
324         extras/misc/mpris.glade
325
326 dist-hook:
327         distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
328
329 ###############################################################################
330 # Building libvlc
331 ###############################################################################
332
333 noinst_SCRIPTS = vlc-config
334 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
335         $(SHELL) ./config.status --file=$@
336         chmod 0755 $@
337         touch $@
338
339 vlc-config.in: vlc-config.in.in
340         ./config.status --recheck
341         touch $@
342
343 CLEANFILES = $(BUILT_SOURCES_clean)
344 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
345 MAINTAINERCLEANFILES = ChangeLog
346
347 # Shortcut for developers to rebuild the core (libvlc + vlc)
348 # Don't use it if you don't know what it is about.
349 # Don't complain if it doesn't work. -- Courmisch
350 libcompat:
351         cd compat && $(MAKE) $(AM_MAKEFLAGS)
352
353 libvlc: libcompat
354         cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
355
356 core: libvlc vlc
357         cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
358
359 doc:
360         cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
361
362 .PHONY: libvlc core doc
363
364 if HAVE_BEOS
365 noinst_DATA = vlc-bundle
366 vlc-bundle: vlc
367         rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
368         cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
369         xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
370         for i in "" `$(VLC_CONFIG) --target plugin` ; do \
371           if test -n "$$i" ; then \
372             mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
373             cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
374           fi ; \
375         done
376         if test -d $(CONTRIB_DIR)/vlc-lib ; then \
377           mkdir -p $(top_builddir)/vlc-bundle/lib ; \
378           for i in $(CONTRIB_DIR)/vlc-lib/*.so ; do \
379             cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
380           done ; \
381         fi
382         cat $(top_srcdir)/po/LINGUAS | while read i; do \
383           mkdir -p "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES" ; \
384           cp "$(top_builddir)/po/$$i.gmo" \
385             "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
386         done
387         find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
388 endif
389
390 ###############################################################################
391 # Building aliases
392 ###############################################################################
393
394 ALL_ALIASES = cvlc rvlc svlc qvlc nvlc mvlc
395 bin_SCRIPTS = $(ALIASES)
396 CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
397 EXTRA_SCRIPTS = $(ALL_ALIASES)
398
399 dist_noinst_SCRIPTS += make-alias
400
401 MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
402
403 cvlc: make-alias Makefile
404         $(AM_V_GEN)$(MKALIAS) dummy
405
406 rvlc: make-alias Makefile
407         $(AM_V_GEN)$(MKALIAS) rc
408
409 svlc: make-alias Makefile
410         $(AM_V_GEN)$(MKALIAS) skins2
411
412 qvlc: make-alias Makefile
413         $(AM_V_GEN)$(MKALIAS) qt4
414
415 nvlc: make-alias Makefile
416         $(AM_V_GEN)$(MKALIAS) ncurses
417
418 mvlc: make-alias Makefile
419         $(AM_V_GEN)$(MKALIAS) maemo
420
421 if BUILD_VLC
422 noinst_SCRIPTS += vlc$(EXEEXT)
423 endif
424
425 vlc$(EXEEXT):
426         $(AM_V_GEN)ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
427
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
434
435 silentstd = $(silentstd_$(V))
436 silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY))
437 silentstd_0 = 2>&1 >/dev/null
438
439 # VLC-release.app for packaging and giving it to your friends
440 # use package-macosx to get a nice dmg
441 VLC-release.app: vlc
442         ( cd src && $(MAKE) $(AM_MAKEFLAGS) install $(silentstd) )
443         rm -Rf "$(top_builddir)/tmp"
444         mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
445         rm -Rf $(top_builddir)/VLC-release.app
446         for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \
447           cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
448         done
449         REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \
450         cat $(top_builddir)/extras/package/macosx/Info.plist | \
451         sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
452         cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
453         for i in AUTHORS COPYING THANKS; do \
454           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
455         done
456         mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle
457         cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle
458         mkdir -p $(top_builddir)/tmp/modules/audio_output
459         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
460         for i in \
461             AppleRemote.h \
462             AppleRemote.m \
463             about.h \
464             about.m \
465             applescript.h \
466             applescript.m \
467             controls.h \
468             controls.m \
469             equalizer.h \
470             equalizer.m \
471             intf.h \
472             intf.m \
473             macosx.m \
474             misc.h \
475             misc.m \
476             open.h \
477             open.m \
478             output.h \
479             output.m \
480             playlist.h \
481             playlist.m \
482             playlistinfo.h \
483             playlistinfo.m \
484             prefs_widgets.h \
485             prefs_widgets.m \
486             prefs.h \
487             prefs.m \
488             simple_prefs.h \
489             simple_prefs.m \
490             vout.h \
491             voutgl.m \
492             wizard.h \
493             wizard.m \
494             extended.h \
495             extended.m \
496             bookmarks.h \
497             bookmarks.m \
498             coredialogs.h \
499             coredialogs.m \
500             embeddedwindow.h \
501             embeddedwindow.m \
502             fspanel.h \
503             fspanel.m \
504             vout.m; do \
505           cp "$(srcdir)/modules/gui/macosx/$$i" \
506              $(top_builddir)/tmp/modules/gui/macosx; \
507         done
508         $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
509         xcodebuild -target vlc SYMROOT=../../../build $(silentstd) && \
510         cd ../../../../ && \
511         cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC-release.app; \
512         rm -Rf $(top_builddir)/tmp
513         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
514         PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
515         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua
516         for i in $(srcdir)/share/lua/*.* ; do \
517           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/`basename $${i}` ; \
518         done ; \
519         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist
520         for i in $(srcdir)/share/lua/playlist/*.* ; do \
521           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; \
522         done ; \
523         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta
524         for i in $(srcdir)/share/lua/meta/*.* ; do \
525           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta/`basename $${i}` ; \
526         done ; \
527         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf
528         for i in $(srcdir)/share/lua/intf/*.* ; do \
529           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/`basename $${i}` ; \
530         done ; \
531         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules
532         for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
533           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules/`basename $${i}` ; \
534         done ; \
535         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs
536         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js
537         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images
538         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests
539         $(INSTALL) -m 644 $(srcdir)/share/lua/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/.hosts
540         for i in $(srcdir)/share/lua/http/*.* ; do \
541           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/`basename $${i}` ; \
542         done
543         for i in $(srcdir)/share/lua/http/dialogs/* ; do \
544           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs/`basename $${i}` ; \
545         done
546         for i in $(srcdir)/share/lua/http/js/*.* ; do \
547           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js/`basename $${i}` ; \
548         done
549         for i in $(srcdir)/share/lua/http/images/*.* ; do \
550           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images/`basename $${i}` ; \
551         done
552         for i in $(srcdir)/share/lua/http/requests/*.* ; do \
553           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/`basename $${i}` ; \
554         done
555         $(INSTALL) -m 644 $(srcdir)/share/lua/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/readme.txt
556         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs
557         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js
558         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images
559         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests
560         $(INSTALL) -m 644 $(srcdir)/share/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/.hosts
561         for i in $(srcdir)/share/http/*.* ; do \
562           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
563         done
564         for i in $(srcdir)/share/http/dialogs/* ; do \
565           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs/`basename $${i}` ; \
566         done
567         for i in $(srcdir)/share/http/js/*.* ; do \
568           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js/`basename $${i}` ; \
569         done
570         for i in $(srcdir)/share/http/images/*.* ; do \
571           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images/`basename $${i}` ; \
572         done
573         for i in $(srcdir)/share/http/requests/*.* ; do \
574           $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/`basename $${i}` ; \
575         done
576         $(INSTALL) -m 644 $(srcdir)/share/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/readme.txt
577         $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale
578         cat $(top_srcdir)/po/LINGUAS | while read i; do \
579           $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
580           $(INSTALL) $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
581           mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
582           ln -sf ../English.lproj/InfoPlist.strings \
583               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
584           ln -sf ../English.lproj/MainMenu.nib \
585               $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
586         done
587         printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
588         find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name designable.nib -delete;
589         find $(top_builddir)/VLC-release.app -type d -exec chmod ugo+rx '{}' \;
590         find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \;
591
592 # This is just for development purposes. 
593 # The resulting VLC.app will only run in this tree.
594 VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.libs/libvlc.dylib
595         $(AM_V_GEN)(cd src && make install $(silentstd))
596         rm -Rf $(top_builddir)/tmp
597         mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
598         rm -Rf $(top_builddir)/VLC.app
599         for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \
600           cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
601         done
602         REVISION=`(git --git-dir=$(srcdir)/.git describe --always || echo exported)` && \
603         cat $(top_builddir)/extras/package/macosx/Info.plist | \
604         sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
605         cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
606         for i in AUTHORS COPYING THANKS; do \
607           cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
608         done
609         mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle
610         cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle
611         mkdir -p $(top_builddir)/tmp/modules/audio_output
612         mkdir -p $(top_builddir)/tmp/modules/gui/macosx
613         for i in \
614             AppleRemote.h \
615             AppleRemote.m \
616             about.h \
617             about.m \
618             applescript.h \
619             applescript.m \
620             controls.h \
621             controls.m \
622             equalizer.h \
623             equalizer.m \
624             intf.h \
625             intf.m \
626             macosx.m \
627             misc.h \
628             misc.m \
629             open.h \
630             open.m \
631             output.h \
632             output.m \
633             playlist.h \
634             playlist.m \
635             playlistinfo.h \
636             playlistinfo.m \
637             prefs_widgets.h \
638             prefs_widgets.m \
639             prefs.h \
640             prefs.m \
641             simple_prefs.h \
642             simple_prefs.m \
643             vout.h \
644             voutgl.m \
645             wizard.h \
646             wizard.m \
647             extended.h \
648             extended.m \
649             bookmarks.h \
650             bookmarks.m \
651             coredialogs.h \
652             coredialogs.m \
653             embeddedwindow.h \
654             embeddedwindow.m \
655             fspanel.h \
656             fspanel.m \
657             vout.m; do \
658           cp "$(srcdir)/modules/gui/macosx/$$i" \
659              $(top_builddir)/tmp/modules/gui/macosx; \
660         done
661         $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
662         xcodebuild -target vlc SYMROOT=../../../build $(silentstd) && \
663         cd ../../../../ && \
664         cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $(top_builddir)/VLC.app
665         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
666         touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
667         chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
668         $(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
669         ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/plugins
670         install -d $(top_builddir)/VLC.app/Contents/MacOS/share
671         for i in `ls $(srcdir)/share`; do \
672            ln -sf `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; \
673         done
674         $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
675         cat $(top_srcdir)/po/LINGUAS | while read i; do \
676           mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
677           ln -sfn `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
678           mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
679           ln -sf ../English.lproj/InfoPlist.strings \
680               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
681           ln -sf ../English.lproj/MainMenu.nib \
682               $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
683         done
684         printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
685
686 ###############################################################################
687 # Building architecture-specific binary packages
688 ###############################################################################
689
690 # XXX: this rule is probably only useful to you if you have exactly
691 # the same setup as the maintaner(s).
692 #
693
694 ############################################################################
695 ## Win                                                                    ##
696 ############################################################################
697 win32_destdir=$(top_builddir)/vlc-$(VERSION)
698 win32_xpi_destdir=$(win32_destdir)/vlc-plugin
699 win32_debugdir=$(top_builddir)/symbols-$(VERSION)
700 npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT)
701 axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT)
702 win32_lua_destdir=$(win32_destdir)/lua
703 win32_http_destdir=$(win32_destdir)/http
704
705 #Win-common if for win32 and wince
706 package-win-common:
707 # Check that tmp isn't in the way
708         @if test -e "$(win32_destdir)"; then \
709           echo "Error: please remove $(win32_destdir), it is in the way"; \
710           false; \
711         else \
712           echo "OK."; mkdir -p "$(win32_destdir)"; \
713         fi
714 # Same for debug symbols dir
715         @if test -e "$(win32_debugdir)"; then \
716           echo "Error: please remove $(win32_debugdir), it is in the way"; \
717           false; \
718         else \
719           echo "OK."; mkdir -p "$(win32_debugdir)"; \
720         fi
721
722 # Copy relevant files
723 # Copy executables, major libs+manifests
724         cp "$(top_builddir)/bin/.libs/vlc$(EXEEXT)" "$(win32_destdir)/"
725         cp "$(top_builddir)/bin/.libs/vlc-cache-gen$(EXEEXT)" "$(win32_destdir)/"
726         cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(win32_destdir)/"
727         cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_destdir)/"
728         cp "$(top_builddir)/src/.libs/libvlccore$(LIBEXT)" "$(win32_destdir)/"
729         cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "$(win32_destdir)/"
730
731 # Copy Text files
732         for file in AUTHORS THANKS ; \
733           do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt" ; done;
734         for file in NEWS COPYING README; \
735           do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
736         $(U2D) "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
737
738 # Necessary icons
739         cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/
740
741 # Copy the locales
742         mkdir -p $(win32_destdir)/locale
743         cat $(top_srcdir)/po/LINGUAS | while read i; do \
744           mkdir -p "$(win32_destdir)/locale/$${i}/LC_MESSAGES" ; \
745           cp "$(srcdir)/po/$${i}.gmo" \
746             "$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
747         done
748         mkdir -p $(win32_destdir)/locale/qt4/
749         cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
750
751 #  Mozilla plugin
752 if BUILD_MOZILLA
753         mkdir -p "$(win32_destdir)/mozilla"
754         cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)/mozilla/
755         cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)/mozilla/
756 endif
757
758 # ActiveX plugin
759 if BUILD_ACTIVEX
760         mkdir -p "$(win32_destdir)/activex"
761         cp $(srcdir)/projects/activex/README.TXT  $(win32_destdir)/activex/
762         cp $(srcdir)/projects/activex/test.html  $(win32_destdir)/activex/
763         $(U2D) $(win32_destdir)/activex/*
764         cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
765         cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
766 endif
767
768 # Rebase all those DLLs to speed up loading (need cygwin rebase)
769         if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
770                 find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
771         fi
772
773 # Copy the UAC NSIS plugin
774         mkdir -p "$(win32_destdir)/NSIS"
775         cp "$(top_srcdir)/extras/package/win32/UAC.nsh" "$(win32_destdir)/NSIS"
776         cp "$(top_srcdir)/extras/package/win32/UAC.dll" "$(win32_destdir)/NSIS"
777
778 prepare-win32-web-plugin: package-win-common-strip
779         mkdir -p "$(win32_xpi_destdir)/plugins"
780         cp $(win32_destdir)/mozilla/npvlc$(LIBEXT) \
781                 "$(win32_xpi_destdir)/plugins"
782         cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest \
783                 "$(win32_xpi_destdir)/plugins"
784         cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" \
785                 "$(win32_xpi_destdir)/plugins"
786         cp "$(win32_destdir)/libvlccore$(LIBEXT)" \
787                 "$(win32_xpi_destdir)/plugins"
788         cp "$(win32_destdir)/libvlc$(LIBEXT)" \
789                 "$(win32_xpi_destdir)/plugins"
790         mkdir -p "$(win32_xpi_destdir)/plugins/plugins"
791         cp $(win32_destdir)/plugins/*$(LIBEXT) \
792                 "$(win32_xpi_destdir)/plugins/plugins"
793         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*"
794         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
795 package-win32-xpi: prepare-win32-web-plugin
796         cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)"
797         cd $(win32_xpi_destdir) && zip -r "../vlc-$(VERSION).xpi" \
798                                         install.rdf plugins
799
800 package-win32-crx: prepare-win32-web-plugin
801         cp $(top_builddir)/projects/mozilla/manifest.json "$(win32_xpi_destdir)"
802         crxmake --pack-extension "$(win32_xpi_destdir)" \
803                 --extension-output "$(win32_destdir)/vlc-$(VERSION).crx" \
804                 --ignore-file install.rdf
805
806 package-win32-base-debug: package-win-common
807 # Copy relevant files
808 # Script installer
809         cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
810         cp "$(top_builddir)/extras/package/win32/spad.nsi" "$(win32_destdir)/"
811         mkdir "$(win32_destdir)/languages"
812         cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
813
814 # Plugins
815         mkdir -p "$(win32_destdir)/plugins"
816         find modules/ -name '*_plugin$(LIBEXT)' | while read i; do \
817           if test -n "$$i" ; then \
818             $(INSTALL) "$$i" "vlc-$(VERSION)/plugins/" ; \
819           fi ; done
820
821 #Enable DEP and ASLR for all the binaries
822 if USE_PEFLAGS
823         find $(win32_destdir) -type f -name '*.dll' -print -o -name '*.exe' -print | while read i; do \
824         $(PEFLAGS) --dynamicbase=true --nxcompat=true "$$i" ; \
825         done
826 endif
827
828 if BUILD_LUA
829 # Copy the lua scripts (HTTP)
830         mkdir -p "$(win32_lua_destdir)/http/images"
831         mkdir -p "$(win32_lua_destdir)/http/requests"
832         mkdir -p "$(win32_lua_destdir)/http/js"
833         mkdir -p "$(win32_lua_destdir)/http/dialogs"
834         cp $(srcdir)/share/lua/http/*.html $(win32_lua_destdir)/http/
835         $(U2D) $(win32_lua_destdir)/http/*.html
836         cp $(srcdir)/share/lua/http/.hosts $(win32_lua_destdir)/http/
837         $(U2D) $(win32_lua_destdir)/http/.hosts
838         cp $(srcdir)/share/lua/http/*.css $(win32_lua_destdir)/http/
839         $(U2D) $(win32_lua_destdir)/http/*.css
840         cp $(srcdir)/share/lua/http/js/*.js $(win32_lua_destdir)/http/js/
841         $(U2D) $(win32_lua_destdir)/http/js/*.js
842         cp $(srcdir)/share/lua/http/*.lua $(win32_lua_destdir)/http/
843         $(U2D) $(win32_lua_destdir)/http/*.lua
844         cp $(srcdir)/share/lua/http/dialogs/* $(win32_lua_destdir)/http/dialogs/
845         $(U2D) $(win32_lua_destdir)/http/dialogs/*
846         cp $(srcdir)/share/lua/http/dialogs/.hosts $(win32_lua_destdir)/http/dialogs/
847         $(U2D) $(win32_lua_destdir)/http/dialogs/.hosts
848         cp $(srcdir)/share/lua/http/*.ico $(win32_lua_destdir)/http/
849         cp $(srcdir)/share/lua/http/images/*.png $(win32_lua_destdir)/http/images/
850         cp $(srcdir)/share/lua/http/requests/*.xml $(win32_lua_destdir)/http/requests/
851         $(U2D) $(win32_lua_destdir)/http/requests/*.xml
852         cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
853         $(U2D) $(win32_lua_destdir)/http/requests/readme.txt
854
855 #Lua Scripts
856         $(INSTALL) -d $(win32_lua_destdir)
857         for i in $(srcdir)/share/lua/*.* ; do \
858           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; \
859         done
860         $(INSTALL) -d $(win32_lua_destdir)/modules
861         for i in $(srcdir)/share/lua/modules/*.* ; do \
862           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/modules/`basename $${i}` ; \
863         done
864         $(INSTALL) -d $(win32_lua_destdir)/extensions
865         for i in $(srcdir)/share/lua/extensions/*.* ; do \
866           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/extensions/`basename $${i}` ; \
867         done
868         $(INSTALL) -d $(win32_lua_destdir)/intf
869         for i in $(srcdir)/share/lua/intf/*.* ; do \
870           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; \
871         done
872         $(INSTALL) -d $(win32_lua_destdir)/intf/modules
873         for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
874           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \
875         done
876         $(INSTALL) -d $(win32_lua_destdir)/meta/art
877         for i in $(srcdir)/share/lua/meta/art/*.* ; do \
878           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \
879         done
880         $(INSTALL) -d $(win32_lua_destdir)/meta/fetcher
881         for i in $(srcdir)/share/lua/meta/fetcher/*.* ; do \
882           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/fetcher/`basename $${i}` ; \
883         done
884         $(INSTALL) -d $(win32_lua_destdir)/meta/reader
885         for i in $(srcdir)/share/lua/meta/reader/*.* ; do \
886           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \
887         done
888         $(INSTALL) -d $(win32_lua_destdir)/playlist
889         for i in $(srcdir)/share/lua/playlist/*.* ; do \
890           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
891         done
892         $(INSTALL) -d $(win32_lua_destdir)/sd
893         for i in $(srcdir)/share/lua/sd/*.* ; do \
894           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/sd/`basename $${i}` ; \
895         done
896
897         $(U2D) $(win32_lua_destdir)/README.txt
898         $(U2D) $(win32_lua_destdir)/extensions/README.txt
899         $(U2D) $(win32_lua_destdir)/intf/README.txt
900         $(U2D) $(win32_lua_destdir)/meta/art/README.txt
901         $(U2D) $(win32_lua_destdir)/meta/fetcher/README.txt
902         $(U2D) $(win32_lua_destdir)/meta/reader/README.txt
903         $(U2D) $(win32_lua_destdir)/playlist/README.txt
904         $(U2D) $(win32_lua_destdir)/sd/README.txt
905 endif
906
907 # Copy the http files
908 if BUILD_HTTPD
909         mkdir -p "$(win32_http_destdir)/images"
910         mkdir -p "$(win32_http_destdir)/requests"
911         mkdir -p "$(win32_http_destdir)/js"
912         mkdir -p "$(win32_http_destdir)/dialogs"
913         cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
914         $(U2D) $(win32_http_destdir)/*.html
915         cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
916         $(U2D) $(win32_http_destdir)/.hosts
917         cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
918         $(U2D) $(win32_http_destdir)/*.css
919         cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
920         $(U2D) $(win32_http_destdir)/js/*.js
921         cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
922         $(U2D) $(win32_http_destdir)/dialogs/*
923         cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
924         $(U2D) $(win32_http_destdir)/dialogs/.hosts
925         cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
926         cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
927         cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
928         $(U2D) $(win32_http_destdir)/requests/*.xml
929         cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt
930         $(U2D) $(win32_http_destdir)/requests/readme.txt
931
932 endif
933
934 if BUILD_SKINS
935 # Skins
936         mkdir -p $(win32_destdir)/skins/fonts
937         for i in $(srcdir)/share/skins2/fonts/*.*; do \
938           cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; \
939         done
940         for i in $(top_builddir)/share/skins2/*.*; do \
941           cp -- "$$i" $(win32_destdir)/skins/ || true ; \
942         done
943         cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
944         cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
945 endif
946
947 if BUILD_OSDMENU
948 #OSD Menu
949         mkdir -p "$(win32_destdir)/osdmenu"
950         cp $(srcdir)/share/osdmenu/*.* "$(win32_destdir)/osdmenu"
951         for dir in default default/selected default/selection default/volume ;do \
952                 mkdir -p "$(win32_destdir)/osdmenu/$$dir"; \
953                 for file in $(srcdir)/share/osdmenu/$${dir}/*.png;do \
954                          cp -- "$$file" "$(win32_destdir)/osdmenu/$$dir"; \
955                 done; \
956         done
957         $(U2D) $(win32_destdir)/osdmenu/*.cfg;
958         for file in $(win32_destdir)/osdmenu/*.cfg; do \
959                 sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \
960                 sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \
961                 rm -f -- "$$file.tmp"; \
962         done
963 endif
964
965 # SDK
966         mkdir -p "$(win32_destdir)/sdk.tmp"
967         mkdir -p "$(win32_destdir)/sdk"
968         d=$$(pwd) && \
969         cd src && \
970         make install DESTDIR="$$d/vlc-$(VERSION)/sdk.tmp"
971         cd vlc-$(VERSION) && mv sdk.tmp/$(prefix)/* sdk/
972         find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir
973         rm -Rf vlc-$(VERSION)/sdk/bin
974
975 # Strip DLLs
976 package-win-common-strip: package-win32-base-debug
977         for i in "" $(win32_destdir)/*$(LIBEXT) \
978                     $(win32_destdir)/*$(EXEEXT) \
979                     $(win32_destdir)/activex/*$(LIBEXT) \
980                     $(win32_destdir)/mozilla/*$(LIBEXT) \
981                     $(win32_destdir)/plugins/*$(LIBEXT) \
982         ; do \
983           if test -n "$$i" ; then \
984             $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
985             $(OBJCOPY) --strip-all "$$i" ; \
986             $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
987             mv "$$i.dbg" "$(win32_debugdir)"; \
988           fi ; \
989         done
990
991 package-win32-base: package-win-common-strip
992
993 package-win32-base-exe: package-win32-base
994 # Create package
995         rm -Rf $(win32_destdir)/sdk
996         if makensis -VERSION >/dev/null 2>&1; then \
997             MAKENSIS="makensis"; \
998         elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
999             MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis"; \
1000         elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then \
1001             MAKENSIS="$(PROGRAMFILES)/NSIS/makensis"; \
1002         elif wine --version >/dev/null 2>&1; then \
1003             MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"; \
1004         else \
1005             echo 'Error: cannot locate makensis tool'; exit 1; \
1006         fi; \
1007         eval "$$MAKENSIS $(win32_destdir)/spad.nsi"; \
1008         eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
1009
1010 package-win32-base-zip: package-win32-base
1011 # Create package 
1012         rm -f -- vlc-$(VERSION)-win32.zip
1013         zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION)
1014
1015 package-win32-base-debug-zip: package-win32-base-debug
1016 # Create package
1017         rm -f -- vlc-$(VERSION)-win32-debug.zip
1018         zip -r -9 vlc-$(VERSION)-win32-debug.zip vlc-$(VERSION)
1019
1020 package-win32-base-7zip: package-win32-base
1021 # Create package 
1022         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION)
1023
1024 package-win32-base-debug-7zip: package-win32-base-debug
1025 # Create package
1026         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32-debug.7z vlc-$(VERSION)
1027
1028 package-win32-cleanup:
1029         rm -Rf $(win32_destdir)
1030         rm -Rf $(win32_debugdir)
1031
1032 package-win32-exe: package-win32-base package-win32-base-exe package-win32-cleanup
1033
1034 package-win32-zip: package-win32-base-zip package-win32-cleanup
1035
1036 package-win32-debug-zip: package-win32-base-debug-zip package-win32-cleanup
1037
1038 package-win32-7zip: package-win32-base-7zip package-win32-cleanup
1039
1040 package-win32-debug-7zip: package-win32-base-debug-7zip package-win32-cleanup
1041
1042 package-win32-no-clean: package-win32-base-zip package-win32-base-7zip package-win32-base-exe 
1043
1044 package-win32: package-win32-no-clean package-win32-cleanup
1045
1046 package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip package-win32-cleanup
1047
1048 #######
1049 # WinCE
1050 #######
1051 package-wince-base: package-win-common-strip
1052
1053 package-wince-base-zip: package-wince-base
1054 # Create package 
1055         rm -f -- vlc-$(VERSION)-wince.zip
1056         zip -r -9 vlc-$(VERSION)-wince.zip vlc-$(VERSION)
1057
1058 package-wince: package-wince-base-zip package-win32-cleanup
1059
1060
1061 #####################################################################
1062 ##   BeOS                                                          ##
1063 #####################################################################
1064 package-beos:
1065 # Check that tmp isn't in the way
1066         @if test -e $(srcdir)/tmp; then \
1067           echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
1068           false ; \
1069         else \
1070           echo "OK." ; mkdir $(srcdir)/tmp ; \
1071         fi
1072
1073 # Copy relevant files
1074         mkdir -p $(srcdir)/tmp/vlc
1075         cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
1076           THANKS NEWS tmp/vlc/
1077
1078 # Create debug package
1079         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1080         find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1081         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1082         (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) )
1083         mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/
1084         mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc
1085
1086 # Create normal package
1087         $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc
1088         find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1089           --strip-debug --strip-unneeded "{}" \;
1090         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1091         find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1092         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1093         (cd $(srcdir)/tmp &&  zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) )
1094         mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/
1095
1096 # Clean up
1097         rm -Rf $(srcdir)/tmp
1098
1099 #########################################################################
1100 ## MacOS X                                                             ##
1101 #########################################################################
1102 package-macosx: VLC-release.app ChangeLog
1103 # Check that the temporary location isn't in the way
1104         @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then \
1105           rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; \
1106         fi
1107
1108         echo "Create package directory: vlc-$(VERSION)/";
1109         mkdir -p "$(top_builddir)/vlc-$(VERSION)/";
1110
1111 # Copy relevant files 
1112         @if test -e "$(top_builddir)/VLC-release.app/"; then \
1113           cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1114         else \
1115           cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1116         fi
1117         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1118           mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && \
1119           cp $(srcdir)/AUTHORS $(srcdir)/COPYING $(srcdir)/README $(srcdir)/THANKS $(srcdir)/NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1120           cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \
1121           cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \
1122           cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
1123         cp -L $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
1124
1125 # Place a link to the application folder
1126         ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications
1127
1128 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs)
1129         echo "Creating disk image"
1130         rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
1131         hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
1132           "$(top_builddir)/vlc-$(VERSION).dmg" -scrub
1133         echo "Disk image creation completed:"
1134         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1135
1136 # Create disk image 
1137 #       echo "Creating disk image"
1138 #       rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
1139 #       hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
1140 #         "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \
1141 #         -scrub -imagekey zlib-level=9 -attach
1142
1143 # Make sure the root window of the dmg will pop up when the dmg is mounted.
1144 # Note: We dont mount in /Volumes to be sure we won't collide with an other
1145 # finder mounted dmg with the same name.
1146 #       echo "Make sure the root window of the dmg will pop up when the dmg is mounted"
1147 #       mkdir -p $(top_builddir)/vlcmnt
1148 #       hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1149 #       bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1150 #       sleep 1 # Make sure operation completes
1151 #       cd "$(srcdir)"
1152
1153 # Unmount the image now
1154 #       hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1155 #       rm -R $(top_builddir)/vlcmnt
1156
1157 # Make sure the image is not writable
1158 # Note: We can't directly create a read only dmg as we do the bless stuff
1159         echo "Make the disk image read-only"
1160         mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1161         hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDBZ -o "$(top_builddir)/vlc-$(VERSION).dmg"
1162         rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1163
1164 # We are done
1165         echo "Disk image creation completed:"
1166         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1167
1168 # Clean up
1169         rm -Rf "$(top_builddir)/vlc-$(VERSION)"
1170
1171 package-macosx-zip: VLC-release.app
1172         rm -Rf $(top_builddir)/vlc-$(VERSION)
1173         mkdir -p $(top_builddir)/vlc-$(VERSION)
1174         cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app
1175         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1176         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1177           cp $(srcdir)/$$i $(top_builddir)/vlc-$(VERSION)/Goodies; \
1178         done
1179         cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app \
1180              $(top_builddir)/vlc-$(VERSION)/Goodies
1181         cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf \
1182            $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
1183         zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
1184         rm -Rf $(top_builddir)/vlc-$(VERSION)
1185
1186 package-macosx-framework-zip:
1187         rm -Rf $(top_builddir)/vlckit-$(VERSION)
1188         mkdir -p $(top_builddir)/vlckit-$(VERSION)
1189         cp -R $(srcdir)/projects/macosx/framework/build/Debug/VLCKit.framework \
1190           $(top_builddir)/vlckit-$(VERSION)/VLCKit.framework
1191         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1192         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1193           cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; \
1194         done
1195         zip -r -y -9 $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
1196         rm -Rf $(top_builddir)/vlc-$(VERSION)
1197
1198 package-macosx-plugin:
1199 if BUILD_MOZILLA
1200 # Create Installer
1201         rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
1202         mkdir -p "$(top_builddir)/macosx-plugin-instdata"
1203         rm -f "$(top_builddir)/projects/mozilla/VLC Plugin.plugin/Contents/MacOS/modules/libmacosx_plugin.dylib" 
1204         cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
1205         rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
1206         export PACKAGEMAKER=
1207         if test -x /Developer/Tools/packagemaker; then \
1208            export PACKAGEMAKER=/Developer/Tools/packagemaker; \
1209         fi; \
1210         if test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then \
1211            export PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; \
1212         fi; \
1213         $${PACKAGEMAKER} -build -ds -p "$(top_builddir)/VLC Internet Plug-In.pkg" \
1214         -f "$(top_builddir)/macosx-plugin-instdata" \
1215         -i "$(top_builddir)/extras/package/macosx/plugin/InstallerInfo.plist" \
1216         -d "$(top_srcdir)/extras/package/macosx/plugin/InstallerDescription.plist"; true
1217         rm -rf "$(top_builddir)/macosx-plugin-instdata/"
1218
1219 # Create disk image 
1220         rm -f "$(top_builddir)/vlc-plugin-$(VERSION).dmg"; true
1221         rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)/"; true
1222         mkdir -p "$(top_builddir)/vlc-plugin-$(VERSION)/"
1223         mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$(VERSION)/"
1224         hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \
1225           "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDBZ \
1226           -scrub -imagekey zlib-level=9
1227         echo "Disk image creation completed:"
1228         rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)"
1229 endif
1230
1231 package-macosx-xpi:
1232 if BUILD_MOZILLA
1233         mkdir -p "$(top_builddir)/macosx-xpi/plugins"
1234         cp $(top_builddir)/projects/mozilla/install.rdf \
1235                 "$(top_builddir)/macosx-xpi/"
1236         cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" \
1237                 "$(top_builddir)/macosx-xpi/plugins"
1238         cd "$(top_builddir)/macosx-xpi" && zip -r vlc-$(VERSION).xpi install.rdf plugins
1239 endif
1240
1241 package-translations:
1242         @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \
1243           echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \
1244           false; \
1245         else \
1246           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \
1247         fi
1248 # Copy translations
1249         cat $(top_srcdir)/po/LINGUAS | while read i; do \
1250           cp "$(srcdir)/po/$${i}.po" \
1251             "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \
1252             || true ; \
1253         done
1254         cp "$(srcdir)/doc/translations.txt" \
1255           "$(srcdir)/vlc-translations-$(VERSION)/README.txt"
1256
1257         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1258         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1259         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1260         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1261         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1262         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1263         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1264         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1265
1266         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1267           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1268
1269 ###############################################################################
1270 # PO translation files update
1271 ###############################################################################
1272 .PHONY: update-po
1273
1274 update-po:
1275         cd po && $(MAKE) POTFILES vlc.pot update-po
1276
1277
1278 ###############################################################################
1279 # Enforce Mac OS X deployment target environment variable
1280 ###############################################################################
1281 macosx-sdk: Makefile.in $(HEADERS_include) vlc-config
1282         export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)