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
18 SUBDIRS += libs/loader
31 SUBDIRS += modules share doc test
33 SUBDIRS += projects/mozilla
36 SUBDIRS += projects/activex
43 extras/package/win32/vlc.exe.manifest \
44 extras/package/win32/libvlc.dll.manifest \
45 extras/package/macosx/README.MacOSX.rtf \
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
83 BUILT_SOURCES_clean = macosx-sdk
88 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
92 DISTCHECK_CONFIGURE_FLAGS = \
93 --enable-fast-install \
95 --disable-avcodec --disable-avformat \
96 --disable-postproc --disable-swscale \
98 --disable-mad --disable-libmpeg2 \
99 --disable-faad --disable-skins2 \
101 --disable-fribidi --disable-glx
103 ACLOCAL_AMFLAGS = -I m4
112 ChangeLog: Makefile.am
114 cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
115 ln -sf doc/ChangeLog-2009 "$@"
117 ###############################################################################
119 ###############################################################################
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 ##############################################################################
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
327 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
329 ###############################################################################
331 ###############################################################################
333 noinst_SCRIPTS = vlc-config
334 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
335 $(SHELL) ./config.status --file=$@
339 vlc-config.in: vlc-config.in.in
340 ./config.status --recheck
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
351 cd compat && $(MAKE) $(AM_MAKEFLAGS)
354 cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
357 cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
360 cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
362 .PHONY: libvlc core doc
365 noinst_DATA = vlc-bundle
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/ ; \
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/ ; \
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 ; \
387 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
390 ###############################################################################
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
422 noinst_SCRIPTS += vlc$(EXEEXT)
426 $(AM_V_GEN)ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
429 if BUILD_MACOSX_VLC_APP
430 # Create the MacOS X app
431 noinst_DATA = VLC.app
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
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/; \
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; \
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
505 cp "$(srcdir)/modules/gui/macosx/$$i" \
506 $(top_builddir)/tmp/modules/gui/macosx; \
508 $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
509 xcodebuild -target vlc SYMROOT=../../../build $(silentstd) && \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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 ; \
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/; \
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; \
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
658 cp "$(srcdir)/modules/gui/macosx/$$i" \
659 $(top_builddir)/tmp/modules/gui/macosx; \
661 $(AM_V_GEN)cd $(top_builddir)/tmp/extras/package/macosx && \
662 xcodebuild -target vlc SYMROOT=../../../build $(silentstd) && \
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/; \
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 ; \
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 ############################################################################
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
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"; \
712 echo "OK."; mkdir -p "$(win32_destdir)"; \
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"; \
719 echo "OK."; mkdir -p "$(win32_debugdir)"; \
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)/"
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"
739 cp $(srcdir)/share/icons/vlc.ico $(win32_destdir)/
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 ; \
748 mkdir -p $(win32_destdir)/locale/qt4/
749 cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
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/
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/
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 -; \
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
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/"
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/" ; \
813 #Enable DEP and ASLR for all the binaries
815 find $(win32_destdir) -type f -name '*.dll' -print -o -name '*.exe' -print | while read i; do \
816 $(PEFLAGS) --dynamicbase=true --nxcompat=true "$$i" ; \
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
848 $(INSTALL) -d $(win32_lua_destdir)
849 for i in $(srcdir)/share/lua/*.* ; do \
850 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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}` ; \
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
899 # Copy the http files
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
928 mkdir -p $(win32_destdir)/skins/fonts
929 for i in $(srcdir)/share/skins2/fonts/*.*; do \
930 cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; \
932 for i in $(top_builddir)/share/skins2/*.*; do \
933 cp -- "$$i" $(win32_destdir)/skins/ || true ; \
935 cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
936 cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
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"; \
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"; \
958 mkdir -p "$(win32_destdir)/sdk.tmp"
959 mkdir -p "$(win32_destdir)/sdk"
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
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) \
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)"; \
983 package-win32-base: package-win-common-strip
985 package-win32-base-exe: package-win32-base
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"; \
997 echo 'Error: cannot locate makensis tool'; exit 1; \
999 eval "$$MAKENSIS $(win32_destdir)/spad.nsi"; \
1000 eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
1002 package-win32-base-zip: package-win32-base
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
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
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
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
1043 package-wince-base: package-win-common-strip
1045 package-wince-base-zip: package-wince-base
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 #####################################################################
1055 #####################################################################
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"; \
1062 echo "OK." ; mkdir $(srcdir)/tmp ; \
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)/
1089 rm -Rf $(srcdir)/tmp
1091 #########################################################################
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)/" ; \
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"; \
1107 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
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
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
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"
1157 echo "Disk image creation completed:"
1158 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
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; \
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; \
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:
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; \
1202 if test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then \
1203 export PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; \
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/"
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)"
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
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"; \
1238 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \
1241 cat $(top_srcdir)/po/LINGUAS | while read i; do \
1242 cp "$(srcdir)/po/$${i}.po" \
1243 "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \
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 ###############################################################################
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)