Qt: Do not try to move when going to fullscreen if you have only 1 screen.
[vlc/solaris.git] / Makefile.am
blob4057f9cae04080f297b11bc06f015cf743fcfa7c
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, 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)
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
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
78 dist_noinst_SCRIPTS = bootstrap toolbox
79 nodist_noinst_SCRIPTS = compile
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
88 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
90 SUFFIXES = 
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
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
112 ChangeLog: Makefile.am
113         rm -f -- "$@"
114         cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
115         ln -sf doc/ChangeLog-2009 "$@"
117 ###############################################################################
118 # MacOS X project
119 ###############################################################################
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
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
326 dist-hook:
327         distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
329 ###############################################################################
330 # Building libvlc
331 ###############################################################################
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 $@
339 vlc-config.in: vlc-config.in.in
340         ./config.status --recheck
341         touch $@
343 CLEANFILES = $(BUILT_SOURCES_clean)
344 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
345 MAINTAINERCLEANFILES = ChangeLog
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)
353 libvlc: libcompat
354         cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
356 core: libvlc vlc
357         cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
359 doc:
360         cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
362 .PHONY: libvlc core doc
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
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 -sf 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 silentstd = $(silentstd_$(V))
436 silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY))
437 silentstd_0 = 2>&1 >/dev/null
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 '{}' \;
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
686 ###############################################################################
687 # Building architecture-specific binary packages
688 ###############################################################################
690 # XXX: this rule is probably only useful to you if you have exactly
691 # the same setup as the maintaner(s).
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
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
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)/"
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"
738 # Necessary icons
739         cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/
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
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
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
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
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"
778 package-win32-xpi: package-win-common-strip
779         mkdir -p "$(win32_xpi_destdir)/plugins"
780         cp $(top_builddir)/projects/mozilla/install.rdf "$(win32_xpi_destdir)"
781         cp $(win32_destdir)/mozilla/npvlc$(LIBEXT) \
782                 "$(win32_xpi_destdir)/plugins"
783         cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest \
784                 "$(win32_xpi_destdir)/plugins"
785         cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" \
786                 "$(win32_xpi_destdir)/plugins"
787         cp "$(win32_destdir)/libvlccore$(LIBEXT)" \
788                 "$(win32_xpi_destdir)/plugins"
789         cp "$(win32_destdir)/libvlc$(LIBEXT)" \
790                 "$(win32_xpi_destdir)/plugins"
791         mkdir -p "$(win32_xpi_destdir)/plugins/plugins"
792         cp $(win32_destdir)/plugins/*$(LIBEXT) \
793                 "$(win32_xpi_destdir)/plugins/plugins"
794         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*qt*"
795         rm -rf "$(win32_xpi_destdir)/plugins/plugins/*skins*"
796         cd $(win32_xpi_destdir) && zip -r vlc-$(VERSION).xpi install.rdf plugins
798 package-win32-base-debug: package-win-common
799 # Copy relevant files
800 # Script installer
801         cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
802         cp "$(top_builddir)/extras/package/win32/spad.nsi" "$(win32_destdir)/"
803         mkdir "$(win32_destdir)/languages"
804         cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
806 # Plugins
807         mkdir -p "$(win32_destdir)/plugins"
808         find modules/ -name '*_plugin$(LIBEXT)' | while read i; do \
809           if test -n "$$i" ; then \
810             $(INSTALL) "$$i" "vlc-$(VERSION)/plugins/" ; \
811           fi ; done
813 #Enable DEP and ASLR for all the binaries
814 if USE_PEFLAGS
815         find $(win32_destdir) -type f -name '*.dll' -print -o -name '*.exe' -print | while read i; do \
816         $(PEFLAGS) --dynamicbase=true --nxcompat=true "$$i" ; \
817         done
818 endif
820 if BUILD_LUA
821 # Copy the lua scripts (HTTP)
822         mkdir -p "$(win32_lua_destdir)/http/images"
823         mkdir -p "$(win32_lua_destdir)/http/requests"
824         mkdir -p "$(win32_lua_destdir)/http/js"
825         mkdir -p "$(win32_lua_destdir)/http/dialogs"
826         cp $(srcdir)/share/lua/http/*.html $(win32_lua_destdir)/http/
827         $(U2D) $(win32_lua_destdir)/http/*.html
828         cp $(srcdir)/share/lua/http/.hosts $(win32_lua_destdir)/http/
829         $(U2D) $(win32_lua_destdir)/http/.hosts
830         cp $(srcdir)/share/lua/http/*.css $(win32_lua_destdir)/http/
831         $(U2D) $(win32_lua_destdir)/http/*.css
832         cp $(srcdir)/share/lua/http/js/*.js $(win32_lua_destdir)/http/js/
833         $(U2D) $(win32_lua_destdir)/http/js/*.js
834         cp $(srcdir)/share/lua/http/*.lua $(win32_lua_destdir)/http/
835         $(U2D) $(win32_lua_destdir)/http/*.lua
836         cp $(srcdir)/share/lua/http/dialogs/* $(win32_lua_destdir)/http/dialogs/
837         $(U2D) $(win32_lua_destdir)/http/dialogs/*
838         cp $(srcdir)/share/lua/http/dialogs/.hosts $(win32_lua_destdir)/http/dialogs/
839         $(U2D) $(win32_lua_destdir)/http/dialogs/.hosts
840         cp $(srcdir)/share/lua/http/*.ico $(win32_lua_destdir)/http/
841         cp $(srcdir)/share/lua/http/images/*.png $(win32_lua_destdir)/http/images/
842         cp $(srcdir)/share/lua/http/requests/*.xml $(win32_lua_destdir)/http/requests/
843         $(U2D) $(win32_lua_destdir)/http/requests/*.xml
844         cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
845         $(U2D) $(win32_lua_destdir)/http/requests/readme.txt
847 #Lua Scripts
848         $(INSTALL) -d $(win32_lua_destdir)
849         for i in $(srcdir)/share/lua/*.* ; do \
850           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; \
851         done
852         $(INSTALL) -d $(win32_lua_destdir)/modules
853         for i in $(srcdir)/share/lua/modules/*.* ; do \
854           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/modules/`basename $${i}` ; \
855         done
856         $(INSTALL) -d $(win32_lua_destdir)/extensions
857         for i in $(srcdir)/share/lua/extensions/*.* ; do \
858           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/extensions/`basename $${i}` ; \
859         done
860         $(INSTALL) -d $(win32_lua_destdir)/intf
861         for i in $(srcdir)/share/lua/intf/*.* ; do \
862           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; \
863         done
864         $(INSTALL) -d $(win32_lua_destdir)/intf/modules
865         for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
866           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \
867         done
868         $(INSTALL) -d $(win32_lua_destdir)/meta/art
869         for i in $(srcdir)/share/lua/meta/art/*.* ; do \
870           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/art/`basename $${i}` ; \
871         done
872         $(INSTALL) -d $(win32_lua_destdir)/meta/fetcher
873         for i in $(srcdir)/share/lua/meta/fetcher/*.* ; do \
874           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/fetcher/`basename $${i}` ; \
875         done
876         $(INSTALL) -d $(win32_lua_destdir)/meta/reader
877         for i in $(srcdir)/share/lua/meta/reader/*.* ; do \
878           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/reader/`basename $${i}` ; \
879         done
880         $(INSTALL) -d $(win32_lua_destdir)/playlist
881         for i in $(srcdir)/share/lua/playlist/*.* ; do \
882           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
883         done
884         $(INSTALL) -d $(win32_lua_destdir)/sd
885         for i in $(srcdir)/share/lua/sd/*.* ; do \
886           $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/sd/`basename $${i}` ; \
887         done
889         $(U2D) $(win32_lua_destdir)/README.txt
890         $(U2D) $(win32_lua_destdir)/extensions/README.txt
891         $(U2D) $(win32_lua_destdir)/intf/README.txt
892         $(U2D) $(win32_lua_destdir)/meta/art/README.txt
893         $(U2D) $(win32_lua_destdir)/meta/fetcher/README.txt
894         $(U2D) $(win32_lua_destdir)/meta/reader/README.txt
895         $(U2D) $(win32_lua_destdir)/playlist/README.txt
896         $(U2D) $(win32_lua_destdir)/sd/README.txt
897 endif
899 # Copy the http files
900 if BUILD_HTTPD
901         mkdir -p "$(win32_http_destdir)/images"
902         mkdir -p "$(win32_http_destdir)/requests"
903         mkdir -p "$(win32_http_destdir)/js"
904         mkdir -p "$(win32_http_destdir)/dialogs"
905         cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
906         $(U2D) $(win32_http_destdir)/*.html
907         cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
908         $(U2D) $(win32_http_destdir)/.hosts
909         cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
910         $(U2D) $(win32_http_destdir)/*.css
911         cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
912         $(U2D) $(win32_http_destdir)/js/*.js
913         cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
914         $(U2D) $(win32_http_destdir)/dialogs/*
915         cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
916         $(U2D) $(win32_http_destdir)/dialogs/.hosts
917         cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
918         cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
919         cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
920         $(U2D) $(win32_http_destdir)/requests/*.xml
921         cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt
922         $(U2D) $(win32_http_destdir)/requests/readme.txt
924 endif
926 if BUILD_SKINS
927 # Skins
928         mkdir -p $(win32_destdir)/skins/fonts
929         for i in $(srcdir)/share/skins2/fonts/*.*; do \
930           cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; \
931         done
932         for i in $(top_builddir)/share/skins2/*.*; do \
933           cp -- "$$i" $(win32_destdir)/skins/ || true ; \
934         done
935         cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
936         cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
937 endif
939 if BUILD_OSDMENU
940 #OSD Menu
941         mkdir -p "$(win32_destdir)/osdmenu"
942         cp $(srcdir)/share/osdmenu/*.* "$(win32_destdir)/osdmenu"
943         for dir in default default/selected default/selection default/volume ;do \
944                 mkdir -p "$(win32_destdir)/osdmenu/$$dir"; \
945                 for file in $(srcdir)/share/osdmenu/$${dir}/*.png;do \
946                          cp -- "$$file" "$(win32_destdir)/osdmenu/$$dir"; \
947                 done; \
948         done
949         $(U2D) $(win32_destdir)/osdmenu/*.cfg;
950         for file in $(win32_destdir)/osdmenu/*.cfg; do \
951                 sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \
952                 sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \
953                 rm -f -- "$$file.tmp"; \
954         done
955 endif
957 # SDK
958         mkdir -p "$(win32_destdir)/sdk.tmp"
959         mkdir -p "$(win32_destdir)/sdk"
960         d=$$(pwd) && \
961         cd src && \
962         make install DESTDIR="$$d/vlc-$(VERSION)/sdk.tmp"
963         cd vlc-$(VERSION) && mv sdk.tmp/$(prefix)/* sdk/
964         find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir
965         rm -Rf vlc-$(VERSION)/sdk/bin
967 # Strip DLLs
968 package-win-common-strip: package-win32-base-debug
969         for i in "" $(win32_destdir)/*$(LIBEXT) \
970                     $(win32_destdir)/*$(EXEEXT) \
971                     $(win32_destdir)/activex/*$(LIBEXT) \
972                     $(win32_destdir)/mozilla/*$(LIBEXT) \
973                     $(win32_destdir)/plugins/*$(LIBEXT) \
974         ; do \
975           if test -n "$$i" ; then \
976             $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
977             $(OBJCOPY) --strip-all "$$i" ; \
978             $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
979             mv "$$i.dbg" "$(win32_debugdir)"; \
980           fi ; \
981         done
983 package-win32-base: package-win-common-strip
985 package-win32-base-exe: package-win32-base
986 # Create package
987         rm -Rf $(win32_destdir)/sdk
988         if makensis -VERSION >/dev/null 2>&1; then \
989             MAKENSIS="makensis"; \
990         elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
991             MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis"; \
992         elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then \
993             MAKENSIS="$(PROGRAMFILES)/NSIS/makensis"; \
994         elif wine --version >/dev/null 2>&1; then \
995             MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"; \
996         else \
997             echo 'Error: cannot locate makensis tool'; exit 1; \
998         fi; \
999         eval "$$MAKENSIS $(win32_destdir)/spad.nsi"; \
1000         eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
1002 package-win32-base-zip: package-win32-base
1003 # Create package 
1004         rm -f -- vlc-$(VERSION)-win32.zip
1005         zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION)
1007 package-win32-base-debug-zip: package-win32-base-debug
1008 # Create package
1009         rm -f -- vlc-$(VERSION)-win32-debug.zip
1010         zip -r -9 vlc-$(VERSION)-win32-debug.zip vlc-$(VERSION)
1012 package-win32-base-7zip: package-win32-base
1013 # Create package 
1014         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION)
1016 package-win32-base-debug-7zip: package-win32-base-debug
1017 # Create package
1018         7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32-debug.7z vlc-$(VERSION)
1020 package-win32-cleanup:
1021         rm -Rf $(win32_destdir)
1022         rm -Rf $(win32_debugdir)
1024 package-win32-exe: package-win32-base package-win32-base-exe package-win32-cleanup
1026 package-win32-zip: package-win32-base-zip package-win32-cleanup
1028 package-win32-debug-zip: package-win32-base-debug-zip package-win32-cleanup
1030 package-win32-7zip: package-win32-base-7zip package-win32-cleanup
1032 package-win32-debug-7zip: package-win32-base-debug-7zip package-win32-cleanup
1034 package-win32-no-clean: package-win32-base-zip package-win32-base-7zip package-win32-base-exe 
1036 package-win32: package-win32-no-clean package-win32-cleanup
1038 package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip package-win32-cleanup
1040 #######
1041 # WinCE
1042 #######
1043 package-wince-base: package-win-common-strip
1045 package-wince-base-zip: package-wince-base
1046 # Create package 
1047         rm -f -- vlc-$(VERSION)-wince.zip
1048         zip -r -9 vlc-$(VERSION)-wince.zip vlc-$(VERSION)
1050 package-wince: package-wince-base-zip package-win32-cleanup
1053 #####################################################################
1054 ##   BeOS                                                          ##
1055 #####################################################################
1056 package-beos:
1057 # Check that tmp isn't in the way
1058         @if test -e $(srcdir)/tmp; then \
1059           echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
1060           false ; \
1061         else \
1062           echo "OK." ; mkdir $(srcdir)/tmp ; \
1063         fi
1065 # Copy relevant files
1066         mkdir -p $(srcdir)/tmp/vlc
1067         cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
1068           THANKS NEWS tmp/vlc/
1070 # Create debug package
1071         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1072         find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1073         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1074         (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) )
1075         mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/
1076         mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc
1078 # Create normal package
1079         $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc
1080         find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1081           --strip-debug --strip-unneeded "{}" \;
1082         xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1083         find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1084         mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1085         (cd $(srcdir)/tmp &&  zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) )
1086         mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/
1088 # Clean up
1089         rm -Rf $(srcdir)/tmp
1091 #########################################################################
1092 ## MacOS X                                                             ##
1093 #########################################################################
1094 package-macosx: VLC-release.app ChangeLog
1095 # Check that the temporary location isn't in the way
1096         @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then \
1097           rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; \
1098         fi
1100         echo "Create package directory: vlc-$(VERSION)/";
1101         mkdir -p "$(top_builddir)/vlc-$(VERSION)/";
1103 # Copy relevant files 
1104         @if test -e "$(top_builddir)/VLC-release.app/"; then \
1105           cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1106         else \
1107           cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1108         fi
1109         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1110           mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && \
1111           cp $(srcdir)/AUTHORS $(srcdir)/COPYING $(srcdir)/README $(srcdir)/THANKS $(srcdir)/NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1112           cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \
1113           cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \
1114           cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
1115         cp -L $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
1117 # Place a link to the application folder
1118         ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications
1120 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs)
1121         echo "Creating disk image"
1122         rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
1123         hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
1124           "$(top_builddir)/vlc-$(VERSION).dmg" -scrub
1125         echo "Disk image creation completed:"
1126         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1128 # Create disk image 
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" -format UDRW \
1133 #         -scrub -imagekey zlib-level=9 -attach
1135 # Make sure the root window of the dmg will pop up when the dmg is mounted.
1136 # Note: We dont mount in /Volumes to be sure we won't collide with an other
1137 # finder mounted dmg with the same name.
1138 #       echo "Make sure the root window of the dmg will pop up when the dmg is mounted"
1139 #       mkdir -p $(top_builddir)/vlcmnt
1140 #       hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1141 #       bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1142 #       sleep 1 # Make sure operation completes
1143 #       cd "$(srcdir)"
1145 # Unmount the image now
1146 #       hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1147 #       rm -R $(top_builddir)/vlcmnt
1149 # Make sure the image is not writable
1150 # Note: We can't directly create a read only dmg as we do the bless stuff
1151         echo "Make the disk image read-only"
1152         mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1153         hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDBZ -o "$(top_builddir)/vlc-$(VERSION).dmg"
1154         rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1156 # We are done
1157         echo "Disk image creation completed:"
1158         ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1160 # Clean up
1161         rm -Rf "$(top_builddir)/vlc-$(VERSION)"
1163 package-macosx-zip: VLC-release.app
1164         rm -Rf $(top_builddir)/vlc-$(VERSION)
1165         mkdir -p $(top_builddir)/vlc-$(VERSION)
1166         cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app
1167         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1168         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1169           cp $(srcdir)/$$i $(top_builddir)/vlc-$(VERSION)/Goodies; \
1170         done
1171         cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app \
1172              $(top_builddir)/vlc-$(VERSION)/Goodies
1173         cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf \
1174            $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
1175         zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
1176         rm -Rf $(top_builddir)/vlc-$(VERSION)
1178 package-macosx-framework-zip:
1179         rm -Rf $(top_builddir)/vlckit-$(VERSION)
1180         mkdir -p $(top_builddir)/vlckit-$(VERSION)
1181         cp -R $(srcdir)/projects/macosx/framework/build/Debug/VLCKit.framework \
1182           $(top_builddir)/vlckit-$(VERSION)/VLCKit.framework
1183         mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1184         for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1185           cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; \
1186         done
1187         zip -r -y -9 $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
1188         rm -Rf $(top_builddir)/vlc-$(VERSION)
1190 package-macosx-plugin:
1191 if BUILD_MOZILLA
1192 # Create Installer
1193         rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
1194         mkdir -p "$(top_builddir)/macosx-plugin-instdata"
1195         rm -f "$(top_builddir)/projects/mozilla/VLC Plugin.plugin/Contents/MacOS/modules/libmacosx_plugin.dylib" 
1196         cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
1197         rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
1198         export PACKAGEMAKER=
1199         if test -x /Developer/Tools/packagemaker; then \
1200            export PACKAGEMAKER=/Developer/Tools/packagemaker; \
1201         fi; \
1202         if test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then \
1203            export PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; \
1204         fi; \
1205         $${PACKAGEMAKER} -build -ds -p "$(top_builddir)/VLC Internet Plug-In.pkg" \
1206         -f "$(top_builddir)/macosx-plugin-instdata" \
1207         -i "$(top_builddir)/extras/package/macosx/plugin/InstallerInfo.plist" \
1208         -d "$(top_srcdir)/extras/package/macosx/plugin/InstallerDescription.plist"; true
1209         rm -rf "$(top_builddir)/macosx-plugin-instdata/"
1211 # Create disk image 
1212         rm -f "$(top_builddir)/vlc-plugin-$(VERSION).dmg"; true
1213         rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)/"; true
1214         mkdir -p "$(top_builddir)/vlc-plugin-$(VERSION)/"
1215         mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$(VERSION)/"
1216         hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \
1217           "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDBZ \
1218           -scrub -imagekey zlib-level=9
1219         echo "Disk image creation completed:"
1220         rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)"
1221 endif
1223 package-macosx-xpi:
1224 if BUILD_MOZILLA
1225         mkdir -p "$(top_builddir)/macosx-xpi/plugins"
1226         cp $(top_builddir)/projects/mozilla/install.rdf \
1227                 "$(top_builddir)/macosx-xpi/"
1228         cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" \
1229                 "$(top_builddir)/macosx-xpi/plugins"
1230         cd "$(top_builddir)/macosx-xpi" && zip -r vlc-$(VERSION).xpi install.rdf plugins
1231 endif
1233 package-translations:
1234         @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \
1235           echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \
1236           false; \
1237         else \
1238           echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \
1239         fi
1240 # Copy translations
1241         cat $(top_srcdir)/po/LINGUAS | while read i; do \
1242           cp "$(srcdir)/po/$${i}.po" \
1243             "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \
1244             || true ; \
1245         done
1246         cp "$(srcdir)/doc/translations.txt" \
1247           "$(srcdir)/vlc-translations-$(VERSION)/README.txt"
1249         echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1250         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1251         echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1252         echo "  echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1253         echo "  exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1254         echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1255         echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1256         echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1258         $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1259           | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1261 ###############################################################################
1262 # PO translation files update
1263 ###############################################################################
1264 .PHONY: update-po
1266 update-po:
1267         cd po && $(MAKE) POTFILES vlc.pot update-po
1270 ###############################################################################
1271 # Enforce Mac OS X deployment target environment variable
1272 ###############################################################################
1273 macosx-sdk: Makefile.in $(HEADERS_include) vlc-config
1274         export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)