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 \
46 extras/package/macosx/README.MacOSX.rtf \
48 extras/package/rpm/vlc.fedora.spec \
49 extras/package/rpm/vlc.altlinux.spec \
50 extras/package/win32/vlc.win32.nsi.in \
51 extras/package/win32/languages/declaration.nsh \
52 extras/package/win32/languages/english.nsh \
53 extras/package/win32/languages/french.nsh
55 dist_noinst_SCRIPTS = bootstrap toolbox
56 nodist_noinst_SCRIPTS = compile
58 BUILT_SOURCES_distclean = vlc-config extras/package/win32/vlc.win32.nsi
60 BUILT_SOURCES_clean = macosx-sdk
65 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
69 DISTCHECK_CONFIGURE_FLAGS = \
70 --enable-fast-install \
72 --disable-dvd --disable-mad --disable-libmpeg2 \
73 --disable-ffmpeg --disable-faad --disable-wxwidgets --disable-skins2 \
75 --disable-fribidi --disable-glx
77 ACLOCAL_AMFLAGS = -I m4
86 ChangeLog: Makefile.am
88 cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
89 ln -sf doc/ChangeLog-2009 "$@"
91 ###############################################################################
93 ###############################################################################
96 extras/package/macosx/Resources/English.lproj/MainMenu.nib/designable.nib \
97 extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
98 extras/package/macosx/Resources/English.lproj/MediaInfo.nib/classes.nib \
99 extras/package/macosx/Resources/English.lproj/MediaInfo.nib/info.nib \
100 extras/package/macosx/Resources/English.lproj/MediaInfo.nib/keyedobjects.nib \
101 extras/package/macosx/Resources/English.lproj/About.nib/classes.nib \
102 extras/package/macosx/Resources/English.lproj/About.nib/info.nib \
103 extras/package/macosx/Resources/English.lproj/About.nib/keyedobjects.nib \
104 extras/package/macosx/Resources/English.lproj/Open.nib/classes.nib \
105 extras/package/macosx/Resources/English.lproj/Open.nib/info.nib \
106 extras/package/macosx/Resources/English.lproj/Open.nib/keyedobjects.nib \
107 extras/package/macosx/Resources/English.lproj/Preferences.nib/classes.nib \
108 extras/package/macosx/Resources/English.lproj/Preferences.nib/info.nib \
109 extras/package/macosx/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
110 extras/package/macosx/Resources/English.lproj/Wizard.nib/classes.nib \
111 extras/package/macosx/Resources/English.lproj/Wizard.nib/info.nib \
112 extras/package/macosx/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
113 extras/package/macosx/Resources/English.lproj/Bookmarks.nib/classes.nib \
114 extras/package/macosx/Resources/English.lproj/Bookmarks.nib/info.nib \
115 extras/package/macosx/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
116 extras/package/macosx/Resources/English.lproj/Extended.nib/classes.nib \
117 extras/package/macosx/Resources/English.lproj/Extended.nib/info.nib \
118 extras/package/macosx/Resources/English.lproj/Extended.nib/keyedobjects.nib \
119 extras/package/macosx/Resources/English.lproj/Update.nib/classes.nib \
120 extras/package/macosx/Resources/English.lproj/Update.nib/info.nib \
121 extras/package/macosx/Resources/English.lproj/Update.nib/keyedobjects.nib \
122 extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/classes.nib \
123 extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/info.nib \
124 extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/keyedobjects.nib \
125 extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/classes.nib \
126 extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/info.nib \
127 extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/keyedobjects.nib \
128 extras/package/macosx/Resources/English.lproj/InfoPlist.strings.in \
129 extras/package/macosx/Resources/aiff.icns \
130 extras/package/macosx/Resources/audio.icns \
131 extras/package/macosx/Resources/avi.icns \
132 extras/package/macosx/Resources/flv.icns \
133 extras/package/macosx/Resources/generic.icns \
134 extras/package/macosx/Resources/m4a.icns \
135 extras/package/macosx/Resources/m4v.icns \
136 extras/package/macosx/Resources/mkv.icns \
137 extras/package/macosx/Resources/mov.icns \
138 extras/package/macosx/Resources/movie.icns \
139 extras/package/macosx/Resources/mp3.icns \
140 extras/package/macosx/Resources/mpeg.icns \
141 extras/package/macosx/Resources/ogg.icns \
142 extras/package/macosx/Resources/playlist.icns \
143 extras/package/macosx/Resources/rm.icns \
144 extras/package/macosx/Resources/subtitle.icns \
145 extras/package/macosx/Resources/vob.icns \
146 extras/package/macosx/Resources/wav.icns \
147 extras/package/macosx/Resources/vlc.icns \
148 extras/package/macosx/Resources/wma.icns \
149 extras/package/macosx/Resources/wmv.icns \
150 extras/package/macosx/Resources/pause.png \
151 extras/package/macosx/Resources/pause_blue.png \
152 extras/package/macosx/Resources/play.png \
153 extras/package/macosx/Resources/play_blue.png \
154 extras/package/macosx/Resources/stop.png \
155 extras/package/macosx/Resources/stop_blue.png \
156 extras/package/macosx/Resources/display_left.png \
157 extras/package/macosx/Resources/display_middle.png \
158 extras/package/macosx/Resources/display_right.png \
159 extras/package/macosx/Resources/display_slider.png \
160 extras/package/macosx/Resources/display_track.png \
161 extras/package/macosx/Resources/equalizerdrawer_active.png \
162 extras/package/macosx/Resources/equalizerdrawer_blue.png \
163 extras/package/macosx/Resources/fullscreen_active.png \
164 extras/package/macosx/Resources/fullscreen_blue.png \
165 extras/package/macosx/Resources/next_active.png \
166 extras/package/macosx/Resources/next_blue.png \
167 extras/package/macosx/Resources/playlistdrawer_active.png \
168 extras/package/macosx/Resources/playlistdrawer_blue.png \
169 extras/package/macosx/Resources/previous_active.png \
170 extras/package/macosx/Resources/previous_blue.png \
171 extras/package/macosx/Resources/skip_forward_active.png \
172 extras/package/macosx/Resources/skip_forward_blue.png \
173 extras/package/macosx/Resources/skip_previous_active.png \
174 extras/package/macosx/Resources/skip_previous_blue.png \
175 extras/package/macosx/Resources/volume_high.png \
176 extras/package/macosx/Resources/volume_low.png \
177 extras/package/macosx/Resources/volumeslider_blue.png \
178 extras/package/macosx/Resources/volumeslider_normal.png \
179 extras/package/macosx/Resources/volumetrack.png \
180 extras/package/macosx/Resources/about_bg.png \
181 extras/package/macosx/Resources/skip_forward_active_embedded.png \
182 extras/package/macosx/Resources/play_embedded.png \
183 extras/package/macosx/Resources/pause_embedded.png \
184 extras/package/macosx/Resources/skip_previous_active_embedded.png \
185 extras/package/macosx/Resources/pause_embedded_blue.png \
186 extras/package/macosx/Resources/play_embedded_blue.png \
187 extras/package/macosx/Resources/skip_forward_embedded_blue.png \
188 extras/package/macosx/Resources/skip_previous_embedded_blue.png \
189 extras/package/macosx/Resources/vlc.scriptSuite \
190 extras/package/macosx/Resources/vlc.scriptTerminology \
191 extras/package/macosx/Resources/README \
192 extras/package/macosx/Resources/add_embedded.png \
193 extras/package/macosx/Resources/add_embedded_blue.png \
194 extras/package/macosx/Resources/repeat_embedded.png \
195 extras/package/macosx/Resources/repeat_embedded_blue.png \
196 extras/package/macosx/Resources/repeat_single_embedded_blue.png \
197 extras/package/macosx/Resources/shuffle_embedded.png \
198 extras/package/macosx/Resources/shuffle_embedded_blue.png \
199 extras/package/macosx/Resources/fs_volume_slider_knob_highlight.png \
200 extras/package/macosx/Resources/fs_volume_slider_knob.png \
201 extras/package/macosx/Resources/fs_volume_slider_bar.png \
202 extras/package/macosx/Resources/fs_volume_mute_highlight.png \
203 extras/package/macosx/Resources/fs_volume_mute.png \
204 extras/package/macosx/Resources/fs_volume_max_highlight.png \
205 extras/package/macosx/Resources/fs_volume_max.png \
206 extras/package/macosx/Resources/fs_time_slider_knob_highlight.png \
207 extras/package/macosx/Resources/fs_time_slider_knob.png \
208 extras/package/macosx/Resources/fs_time_slider.png \
209 extras/package/macosx/Resources/fs_stop_highlight.png \
210 extras/package/macosx/Resources/fs_stop.png \
211 extras/package/macosx/Resources/fs_skip_previous_highlight.png \
212 extras/package/macosx/Resources/fs_skip_previous.png \
213 extras/package/macosx/Resources/fs_skip_next_highlight.png \
214 extras/package/macosx/Resources/fs_skip_next.png \
215 extras/package/macosx/Resources/fs_rewind_highlight.png \
216 extras/package/macosx/Resources/fs_rewind.png \
217 extras/package/macosx/Resources/fs_play_highlight.png \
218 extras/package/macosx/Resources/fs_play.png \
219 extras/package/macosx/Resources/fs_pause_highlight.png \
220 extras/package/macosx/Resources/fs_pause.png \
221 extras/package/macosx/Resources/fs_forward_highlight.png \
222 extras/package/macosx/Resources/fs_forward.png \
223 extras/package/macosx/Resources/fs_exit_fullscreen_highlight.png \
224 extras/package/macosx/Resources/fs_exit_fullscreen.png \
225 extras/package/macosx/Resources/fs_background.png \
226 extras/package/macosx/Resources/add_embedded_graphite.png \
227 extras/package/macosx/Resources/equalizerdrawer_graphite.png \
228 extras/package/macosx/Resources/fullscreen_graphite.png \
229 extras/package/macosx/Resources/next_graphite.png \
230 extras/package/macosx/Resources/pause_embedded_graphite.png \
231 extras/package/macosx/Resources/pause_graphite.png \
232 extras/package/macosx/Resources/play_embedded_graphite.png \
233 extras/package/macosx/Resources/play_graphite.png \
234 extras/package/macosx/Resources/playlistdrawer_graphite.png \
235 extras/package/macosx/Resources/previous_graphite.png \
236 extras/package/macosx/Resources/repeat_embedded_graphite.png \
237 extras/package/macosx/Resources/repeat_single_embedded_graphite.png \
238 extras/package/macosx/Resources/shuffle_embedded_graphite.png \
239 extras/package/macosx/Resources/skip_forward_embedded_graphite.png \
240 extras/package/macosx/Resources/skip_forward_graphite.png \
241 extras/package/macosx/Resources/skip_previous_embedded_graphite.png \
242 extras/package/macosx/Resources/skip_previous_graphite.png \
243 extras/package/macosx/Resources/stop_graphite.png \
244 extras/package/macosx/Resources/volumeslider_graphite.png \
245 extras/package/macosx/Resources/backward_big_down.png \
246 extras/package/macosx/Resources/backward_big.png \
247 extras/package/macosx/Resources/eq_sm.pdf \
248 extras/package/macosx/Resources/forward_big_down.png \
249 extras/package/macosx/Resources/forward_big.png \
250 extras/package/macosx/Resources/fs_sm.pdf \
251 extras/package/macosx/Resources/list_sm.pdf \
252 extras/package/macosx/Resources/next_sm.pdf \
253 extras/package/macosx/Resources/pause_big_down.png \
254 extras/package/macosx/Resources/pause_big.png \
255 extras/package/macosx/Resources/play_big_down.png \
256 extras/package/macosx/Resources/play_big.png \
257 extras/package/macosx/Resources/prev_sm.pdf \
258 extras/package/macosx/Resources/sidebarAdd.png \
259 extras/package/macosx/Resources/sidebarRepeat.png \
260 extras/package/macosx/Resources/sidebarRepeatOn.png \
261 extras/package/macosx/Resources/sidebarRepeatOneOn.png \
262 extras/package/macosx/Resources/sidebarResizeWidget.png \
263 extras/package/macosx/Resources/sidebarShuffle.png \
264 extras/package/macosx/Resources/sidebarShuffleOn.png \
265 extras/package/macosx/Resources/sidebarStatusAreaBackground.png \
266 extras/package/macosx/Resources/stop_sm.pdf \
267 extras/package/macosx/Resources/noart.png \
268 extras/package/macosx/Resources/spref_cone_Audio_64.png \
269 extras/package/macosx/Resources/spref_cone_Hotkeys_64.png \
270 extras/package/macosx/Resources/spref_cone_Input_64.png \
271 extras/package/macosx/Resources/spref_cone_Interface_64.png \
272 extras/package/macosx/Resources/spref_cone_Subtitles_64.png \
273 extras/package/macosx/Resources/spref_cone_Video_64.png \
274 extras/package/macosx/fullscreen_panel.svg \
275 extras/package/macosx/ub.sh \
276 extras/package/macosx/vlc.xcodeproj/project.pbxproj \
277 extras/package/macosx/Delete_Preferences.app/Contents/Info.plist \
278 extras/package/macosx/Delete_Preferences.app/Contents/PkgInfo \
279 extras/package/macosx/Delete_Preferences.app/Contents/MacOS/applet \
280 extras/package/macosx/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
281 extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.icns \
282 extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.rsrc \
283 extras/package/macosx/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
284 extras/package/macosx/plugin/Info.plist.in \
285 extras/package/macosx/plugin/InstallerInfo.plist.in \
286 extras/package/macosx/plugin/InstallerDescription.plist \
287 extras/package/macosx/plugin/pbdevelopment.plist \
288 extras/package/macosx/eyetvplugin/EyeTVPluginDefs.h \
289 extras/package/macosx/eyetvplugin/Info.plist \
290 extras/package/macosx/eyetvplugin/eyetvplugin.c \
291 extras/package/macosx/eyetvplugin/eyetvplugin.h \
292 extras/package/macosx/eyetvplugin/English.lproj/InfoPlist.strings \
293 extras/package/macosx/eyetvplugin/eyetvplugin.xcodeproj/project.pbxproj \
294 extras/package/macosx/README.MacOSX.rtf \
295 extras/package/macosx/Info.plist.in
298 ###############################################################################
299 # Various utilities ( editor syntax files, D-Bus controller ... )
300 ##############################################################################
302 extras/analyser/zsh_completion.sh \
303 extras/analyser/zsh.cpp \
304 extras/analyser/emacs.init \
305 extras/analyser/vlc.vim \
306 extras/analyser/valgrind.suppressions \
307 extras/buildsystem/make.pl \
308 extras/misc/mpris.py \
309 extras/misc/mpris.glade
312 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
314 ###############################################################################
316 ###############################################################################
318 noinst_SCRIPTS = vlc-config
319 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
320 $(SHELL) ./config.status --file=$@
324 vlc-config.in: vlc-config.in.in
325 ./config.status --recheck
328 CLEANFILES = $(BUILT_SOURCES_clean)
329 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
330 MAINTAINERCLEANFILES = ChangeLog
332 # Shortcut for developpers to rebuild the core (libvlc + vlc)
333 # Don't use it if you don't know what it is about.
334 # Don't complain if it doesn't work. -- Courmisch
336 cd compat && $(MAKE) $(AM_MAKEFLAGS)
339 cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
342 cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT)
345 cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
347 .PHONY: libvlc core doc
349 #To get some nice output
351 $(top_builddir)/compile
354 noinst_DATA = vlc-bundle
356 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
357 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
358 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
359 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
360 if test -n "$$i" ; then \
361 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
362 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
365 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
366 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
367 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
368 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
371 cat $(top_srcdir)/po/LINGUAS | while read i; do \
372 mkdir -p "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES" ; \
373 cp "$(top_builddir)/po/$$i.gmo" \
374 "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
376 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
379 ###############################################################################
381 ###############################################################################
383 ALL_ALIASES = cvlc rvlc svlc wxvlc qvlc nvlc mvlc
384 bin_SCRIPTS = $(ALIASES)
385 CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
386 EXTRA_SCRIPTS = $(ALL_ALIASES)
388 dist_noinst_SCRIPTS += make-alias
390 MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
392 cvlc: make-alias Makefile
395 rvlc: make-alias Makefile
398 svlc: make-alias Makefile
401 wxvlc: make-alias Makefile
404 qvlc: make-alias Makefile
407 nvlc: make-alias Makefile
410 mvlc: make-alias Makefile
414 noinst_SCRIPTS += vlc$(EXEEXT)
418 ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
422 # Create the MacOS X app
423 noinst_DATA = VLC.app
427 # VLC-release.app for packaging and giving it to your friends
428 # use package-macosx to get a nice dmg
430 ( cd src && make install )
431 rm -Rf "$(top_builddir)/tmp"
432 mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
433 rm -Rf $(top_builddir)/VLC-release.app
434 for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do \
435 cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
437 REVISION=`git describe --always` && \
438 cat $(top_builddir)/extras/package/macosx/Info.plist | \
439 sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
440 cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
441 for i in AUTHORS COPYING THANKS; do \
442 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
444 mkdir -p $(top_builddir)/tmp/modules/audio_output
445 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
493 cp "$(srcdir)/modules/gui/macosx/$$i" \
494 $(top_builddir)/tmp/modules/gui/macosx; \
496 cd $(top_builddir)/tmp/extras/package/macosx && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)' && \
498 cp -R $(top_builddir)/tmp/extras/package/macosx/build/Default/VLC.bundle \
499 $(top_builddir)/VLC-release.app; \
500 rm -Rf $(top_builddir)/tmp
501 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
502 PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
503 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua
504 for i in $(srcdir)/share/lua/*.* ; do \
505 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/`basename $${i}` ; \
507 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist
508 for i in $(srcdir)/share/lua/playlist/*.* ; do \
509 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; \
511 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta
512 for i in $(srcdir)/share/lua/meta/*.* ; do \
513 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta/`basename $${i}` ; \
515 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf
516 for i in $(srcdir)/share/lua/intf/*.* ; do \
517 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/`basename $${i}` ; \
519 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules
520 for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
521 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules/`basename $${i}` ; \
523 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs
524 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js
525 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images
526 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests
527 $(INSTALL) -m 644 $(srcdir)/share/lua/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/.hosts
528 for i in $(srcdir)/share/lua/http/*.* ; do \
529 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/`basename $${i}` ; \
531 for i in $(srcdir)/share/lua/http/dialogs/* ; do \
532 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs/`basename $${i}` ; \
534 for i in $(srcdir)/share/lua/http/js/*.* ; do \
535 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js/`basename $${i}` ; \
537 for i in $(srcdir)/share/lua/http/images/*.* ; do \
538 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images/`basename $${i}` ; \
540 for i in $(srcdir)/share/lua/http/requests/*.* ; do \
541 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/`basename $${i}` ; \
543 $(INSTALL) -m 644 $(srcdir)/share/lua/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/readme.txt
544 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs
545 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js
546 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old
547 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/admin
548 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/vlm
549 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images
550 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests
551 $(INSTALL) -m 644 $(srcdir)/share/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/.hosts
552 $(INSTALL) -m 644 $(srcdir)/share/http/old/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/.hosts
553 for i in $(srcdir)/share/http/*.* ; do \
554 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
556 for i in $(srcdir)/share/http/dialogs/* ; do \
557 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs/`basename $${i}` ; \
559 for i in $(srcdir)/share/http/js/*.* ; do \
560 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js/`basename $${i}` ; \
562 for i in $(srcdir)/share/http/old/*.* ; do \
563 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/`basename $${i}` ; \
565 for i in $(srcdir)/share/http/old/admin/*.* ; do \
566 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/admin/`basename $${i}` ; \
568 for i in $(srcdir)/share/http/old/vlm/*.* ; do \
569 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/old/vlm/`basename $${i}` ; \
571 for i in $(srcdir)/share/http/images/*.* ; do \
572 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images/`basename $${i}` ; \
574 for i in $(srcdir)/share/http/requests/*.* ; do \
575 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/`basename $${i}` ; \
577 $(INSTALL) -m 644 $(srcdir)/share/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/readme.txt
578 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale
579 cat $(top_srcdir)/po/LINGUAS | while read i; do \
580 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
581 $(INSTALL) $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
582 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
583 ln -sf ../English.lproj/InfoPlist.strings \
584 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
585 ln -sf ../English.lproj/MainMenu.nib \
586 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
588 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
589 find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name classes.nib -delete;
590 find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name info.nib -delete;
591 find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name designable.nib -delete;
592 find $(top_builddir)/VLC-release.app -type d -exec chmod ugo+rx '{}' \;
593 find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' \;
595 # This is just for development purposes.
596 # The resulting VLC.app will only run in this tree.
597 VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.libs/libvlc.dylib
598 (cd src && make install)
599 rm -Rf $(top_builddir)/tmp
600 mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
601 rm -Rf $(top_builddir)/VLC.app
602 for i in vlc.xcodeproj Resources README.MacOSX.rtf; do \
603 cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; \
605 REVISION=`git describe --always` && \
606 cat $(top_builddir)/extras/package/macosx/Info.plist | \
607 sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
608 cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
609 for i in AUTHORS COPYING THANKS; do \
610 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
612 mkdir -p $(top_builddir)/tmp/modules/audio_output
613 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
661 cp "$(srcdir)/modules/gui/macosx/$$i" \
662 $(top_builddir)/tmp/modules/gui/macosx; \
664 cd $(top_builddir)/tmp/extras/package/macosx && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)' && \
666 cp -R $(top_builddir)/tmp/extras/package/macosx/build/Default/VLC.bundle \
667 $(top_builddir)/VLC.app
668 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
669 touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
670 chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
671 $(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
672 ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/modules
673 install -d $(top_builddir)/VLC.app/Contents/MacOS/share
674 for i in `ls $(srcdir)/share`; do \
675 ln -sf `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; \
677 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
678 cat $(top_srcdir)/po/LINGUAS | while read i; do \
679 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; \
680 ln -sfn `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
681 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
682 ln -sf ../English.lproj/InfoPlist.strings \
683 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
684 ln -sf ../English.lproj/MainMenu.nib \
685 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
687 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
689 ###############################################################################
690 # Building architecture-specific binary packages
691 ###############################################################################
693 # XXX: this rule is probably only useful to you if you have exactly
694 # the same setup as the maintaner(s).
697 ############################################################################
699 ############################################################################
700 win32_destdir=$(top_builddir)/vlc-$(VERSION)
701 win32_debugdir=$(top_builddir)/symbols-$(VERSION)
702 npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT)
703 axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT)
704 win32_lua_destdir=$(win32_destdir)/lua
705 win32_http_destdir=$(win32_destdir)/http
707 #Win-common if for win32 and wince
709 # Check that tmp isn't in the way
710 @if test -e "$(win32_destdir)"; then \
711 echo "Error: please remove $(win32_destdir), it is in the way"; \
714 echo "OK."; mkdir -p "$(win32_destdir)"; \
717 # Copy relevant files
718 # Copy executables and libs
719 cp "$(top_builddir)/bin/.libs/vlc$(EXEEXT)" "$(win32_destdir)/"
720 cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(win32_destdir)/"
721 cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_destdir)/"
722 cp "$(top_builddir)/src/.libs/libvlccore$(LIBEXT)" "$(win32_destdir)/"
723 cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "$(win32_destdir)/"
726 for file in AUTHORS MAINTAINERS THANKS ; \
727 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt" ; done;
728 for file in NEWS COPYING README; \
729 do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
730 unix2dos "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
733 cp $(srcdir)/share/vlc.ico $(win32_destdir)/
736 mkdir -p $(win32_destdir)/locale
737 cat $(top_srcdir)/po/LINGUAS | while read i; do \
738 mkdir -p "$(win32_destdir)/locale/$${i}/LC_MESSAGES" ; \
739 cp "$(srcdir)/po/$${i}.gmo" \
740 "$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" \
743 mkdir -p $(win32_destdir)/locale/qt4/
744 cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
748 mkdir -p "$(win32_destdir)/mozilla"
749 cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)/mozilla/
750 cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)/mozilla/
755 mkdir -p "$(win32_destdir)/activex"
756 cp $(srcdir)/projects/activex/README.TXT $(win32_destdir)/activex/
757 cp $(srcdir)/projects/activex/test.html $(win32_destdir)/activex/
758 unix2dos $(win32_destdir)/activex/*
760 cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
761 cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
764 # Rebase all those DLLs to speed up loading (need cygwin rebase)
765 if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
766 find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
769 package-win32-base-debug: package-win-common
770 # Copy relevant files
772 cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
773 mkdir "$(win32_destdir)/languages"
774 cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
777 mkdir -p "$(win32_destdir)/plugins"
778 find modules/ -name '*_plugin$(LIBEXT)' | while read i; do \
779 if test -n "$$i" ; then \
780 $(INSTALL) "$$i" "vlc-$(VERSION)/plugins/" ; \
784 cp $(srcdir)/extras/contrib/lib/*.dll "vlc-$(VERSION)/" || true
786 # Copy the lua scripts (HTTP)
788 mkdir -p "$(win32_lua_destdir)/http/images"
789 mkdir -p "$(win32_lua_destdir)/http/requests"
790 mkdir -p "$(win32_lua_destdir)/http/js"
791 mkdir -p "$(win32_lua_destdir)/http/dialogs"
792 cp $(srcdir)/share/lua/http/*.html $(win32_lua_destdir)/http/
793 unix2dos $(win32_lua_destdir)/http/*.html
794 cp $(srcdir)/share/lua/http/.hosts $(win32_lua_destdir)/http/
795 unix2dos $(win32_lua_destdir)/http/.hosts
796 cp $(srcdir)/share/lua/http/*.css $(win32_lua_destdir)/http/
797 unix2dos $(win32_lua_destdir)/http/*.css
798 cp $(srcdir)/share/lua/http/js/*.js $(win32_lua_destdir)/http/js/
799 unix2dos $(win32_lua_destdir)/http/js/*.js
800 cp $(srcdir)/share/lua/http/dialogs/* $(win32_lua_destdir)/http/dialogs/
801 unix2dos $(win32_lua_destdir)/http/dialogs/*
802 cp $(srcdir)/share/lua/http/dialogs/.hosts $(win32_lua_destdir)/http/dialogs/
803 unix2dos $(win32_lua_destdir)/http/dialogs/.hosts
804 cp $(srcdir)/share/lua/http/*.ico $(win32_lua_destdir)/http/
805 cp $(srcdir)/share/lua/http/images/*.png $(win32_lua_destdir)/http/images/
806 cp $(srcdir)/share/lua/http/requests/*.xml $(win32_lua_destdir)/http/requests/
807 unix2dos $(win32_lua_destdir)/http/requests/*.xml
808 cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
809 unix2dos $(win32_lua_destdir)/http/requests/readme.txt
814 $(INSTALL) -d $(win32_lua_destdir)
815 for i in $(srcdir)/share/lua/*.* ; do \
816 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; \
818 $(INSTALL) -d $(win32_lua_destdir)/playlist
819 for i in $(srcdir)/share/lua/playlist/*.* ; do \
820 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; \
822 $(INSTALL) -d $(win32_lua_destdir)/meta
823 for i in $(srcdir)/share/lua/meta/*.* ; do \
824 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/`basename $${i}` ; \
826 $(INSTALL) -d $(win32_lua_destdir)/intf
827 for i in $(srcdir)/share/lua/intf/*.* ; do \
828 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; \
830 $(INSTALL) -d $(win32_lua_destdir)/intf/modules
831 for i in $(srcdir)/share/lua/intf/modules/*.* ; do \
832 $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; \
836 # Copy the http files
838 mkdir -p "$(win32_http_destdir)/images"
839 mkdir -p "$(win32_http_destdir)/requests"
840 mkdir -p "$(win32_http_destdir)/js"
841 mkdir -p "$(win32_http_destdir)/dialogs"
842 mkdir -p "$(win32_http_destdir)/old"
843 mkdir -p "$(win32_http_destdir)/old/vlm"
844 mkdir -p "$(win32_http_destdir)/old/admin"
845 cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
846 unix2dos $(win32_http_destdir)/*.html
847 cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
848 unix2dos $(win32_http_destdir)/.hosts
849 cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
850 unix2dos $(win32_http_destdir)/*.css
851 cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
852 unix2dos $(win32_http_destdir)/js/*.js
853 cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
854 unix2dos $(win32_http_destdir)/dialogs/*
855 cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
856 unix2dos $(win32_http_destdir)/dialogs/.hosts
857 cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
858 cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
859 cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
860 unix2dos $(win32_http_destdir)/requests/*.xml
861 cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt
862 unix2dos $(win32_http_destdir)/requests/readme.txt
864 cp $(srcdir)/share/http/old/*.html $(win32_http_destdir)/old/
865 unix2dos $(win32_http_destdir)/old/*.html
866 cp $(srcdir)/share/http/old/*.css $(win32_http_destdir)/old/
867 cp $(srcdir)/share/http/old/.hosts $(win32_http_destdir)/old/
868 cp $(srcdir)/share/http/old/*.png $(win32_http_destdir)/old/
869 cp $(srcdir)/share/http/old/vlm/*.html $(win32_http_destdir)/old/vlm/
870 unix2dos $(win32_http_destdir)/old/vlm/*.html
871 cp $(srcdir)/share/http/old/admin/*.html $(win32_http_destdir)/old/admin/
872 unix2dos $(win32_http_destdir)/old/admin/*.html
873 cp $(srcdir)/share/http/old/admin/.access $(win32_http_destdir)/old/admin/
878 mkdir -p $(win32_destdir)/skins/fonts
879 for i in $(srcdir)/share/skins2/fonts/*.*; do \
880 cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; \
882 for i in $(top_builddir)/share/skins2/*.*; do \
883 cp -- "$$i" $(win32_destdir)/skins/ || true ; \
885 cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
886 cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
891 mkdir -p "$(win32_destdir)/osdmenu"
892 cp $(srcdir)/share/osdmenu/*.* "$(win32_destdir)/osdmenu"
893 for dir in default default/selected default/selection default/volume ;do \
894 mkdir -p "$(win32_destdir)/osdmenu/$$dir"; \
895 for file in $(srcdir)/share/osdmenu/$${dir}/*.png;do \
896 cp -- "$$file" "$(win32_destdir)/osdmenu/$$dir"; \
899 unix2dos $(win32_destdir)/osdmenu/*.cfg;
900 for file in $(win32_destdir)/osdmenu/*.cfg; do \
901 sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \
902 sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \
903 rm -f -- "$$file.tmp"; \
908 mkdir -p "$(win32_destdir)/sdk.tmp"
909 mkdir -p "$(win32_destdir)/sdk"
912 make install DESTDIR="$$d/vlc-$(VERSION)/sdk.tmp"
913 cd vlc-$(VERSION) && mv sdk.tmp/$(prefix)/* sdk/
914 find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir
915 rm -Rf vlc-$(VERSION)/sdk/bin
917 #strip exe and main dll
918 package-win-common-strip: package-win32-base-debug
919 @if test -e "$(win32_debugdir)"; then \
920 echo "Error: please remove $(win32_debugdir), it is in the way"; \
923 echo "OK."; mkdir -p "$(win32_debugdir)"; \
925 for i in "" vlc-$(VERSION)/*$(LIBEXT) ; \
926 do if test -n "$$i" ; then \
927 $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
928 $(OBJCOPY) --strip-debug "$$i" ; \
929 $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
930 mv "$$i.dbg" "$(win32_debugdir)"; \
934 $(OBJCOPY) --only-keep-debug "$(npvlc)" "$(npvlc).dbg"
935 $(OBJCOPY) --strip-debug "$(npvlc)"
936 $(OBJCOPY) --add-gnu-debuglink="$(npvlc).dbg" "$(npvlc)"
937 mv "$(npvlc).dbg" "$(win32_debugdir)"
940 $(OBJCOPY) --only-keep-debug "$(axvlc)" "$(axvlc).dbg"
941 $(OBJCOPY) --strip-debug "$(axvlc)"
942 $(OBJCOPY) --add-gnu-debuglink="$(axvlc).dbg" "$(axvlc)"
943 mv "$(axvlc).dbg" "$(win32_debugdir)"
946 #strip all plugins dll
947 package-win32-base: package-win-common-strip
948 for i in "" $(win32_destdir)/plugins/*$(LIBEXT) ; \
949 do if test -n "$$i" ; then \
950 $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
951 $(OBJCOPY) --strip-debug "$$i" ; \
952 $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
953 mv "$$i.dbg" "$(win32_debugdir)"; \
956 package-win32-base-exe: package-win32-base
958 rm -Rf $(win32_destdir)/sdk
959 if makensis -VERSION >/dev/null 2>&1; then \
960 MAKENSIS="makensis"; \
961 elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
962 MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis"; \
963 elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then \
964 MAKENSIS="$(PROGRAMFILES)/NSIS/makensis"; \
965 elif wine --version >/dev/null 2>&1; then \
966 MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"; \
968 echo 'Error: cannot locate makensis tool'; exit 1; \
970 eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
972 package-win32-base-zip: package-win32-base
974 rm -f -- vlc-$(VERSION)-win32.zip
975 zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION)
977 package-win32-base-debug-zip: package-win32-base-debug
979 rm -f -- vlc-$(VERSION)-win32-debug.zip
980 zip -r -9 vlc-$(VERSION)-win32-debug.zip vlc-$(VERSION)
982 package-win32-base-7zip: package-win32-base
984 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION)
986 package-win32-base-debug-7zip: package-win32-base-debug
988 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32-debug.7z vlc-$(VERSION)
990 package-win32-exe: package-win32-base package-win32-base-exe
992 rm -Rf $(win32_destdir)
994 package-win32-zip: package-win32-base-zip
996 rm -Rf $(win32_destdir)
998 package-win32-debug-zip: package-win32-base-debug-zip
1000 rm -Rf $(win32_destdir)
1002 package-win32-7zip: package-win32-base-7zip
1004 rm -Rf $(win32_destdir)
1006 package-win32-debug-7zip: package-win32-base-debug-7zip
1008 rm -Rf $(win32_destdir)
1010 package-win32-no-clean: package-win32-base-zip package-win32-base-7zip package-win32-base-exe
1012 package-win32: package-win32-no-clean
1014 rm -Rf $(win32_destdir)
1016 package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip
1018 rm -Rf $(win32_destdir)
1020 package-wince-base: package-win-common package-win-common-strip
1022 package-wince-base-zip:
1024 zip -r vlc-$(VERSION)-wince.zip vlc-$(VERSION)
1026 package-wince: package-wince-base package-wince-base-zip
1028 rm -Rf $(win32_destdir)
1031 #####################################################################
1033 #####################################################################
1035 # Check that tmp isn't in the way
1036 @if test -e $(srcdir)/tmp; then \
1037 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
1040 echo "OK." ; mkdir $(srcdir)/tmp ; \
1043 # Copy relevant files
1044 mkdir -p $(srcdir)/tmp/vlc
1045 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
1046 THANKS NEWS tmp/vlc/
1048 # Create debug package
1049 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1050 find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1051 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1052 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) )
1053 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/
1054 mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc
1056 # Create normal package
1057 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc
1058 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
1059 --strip-debug --strip-unneeded "{}" \;
1060 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
1061 find $(srcdir)/tmp/vlc -exec mimeset -f {} \;
1062 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
1063 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) )
1064 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/
1067 rm -Rf $(srcdir)/tmp
1069 #########################################################################
1071 #########################################################################
1072 package-macosx: VLC-release.app ChangeLog
1073 # Check that the temporary location isn't in the way
1074 @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then \
1075 rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; \
1078 echo "Create package directory: vlc-$(VERSION)/";
1079 mkdir -p "$(top_builddir)/vlc-$(VERSION)/";
1081 # Copy relevant files
1082 @if test -e "$(top_builddir)/VLC-release.app/"; then \
1083 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1085 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \
1087 mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1088 mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && \
1089 cp $(srcdir)/AUTHORS $(srcdir)/COPYING $(srcdir)/README $(srcdir)/THANKS $(srcdir)/NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && \
1090 cp -R $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \
1091 cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \
1092 cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
1093 cp -L $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
1095 # Place a link to the application folder
1096 ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications
1098 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs)
1099 echo "Creating disk image"
1100 rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
1101 hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
1102 "$(top_builddir)/vlc-$(VERSION).dmg" -scrub
1103 echo "Disk image creation completed:"
1104 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1107 # echo "Creating disk image"
1108 # rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
1109 # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \
1110 # "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \
1111 # -scrub -imagekey zlib-level=9 -attach
1113 # Make sure the root window of the dmg will pop up when the dmg is mounted.
1114 # Note: We dont mount in /Volumes to be sure we won't collide with an other
1115 # finder mounted dmg with the same name.
1116 # echo "Make sure the root window of the dmg will pop up when the dmg is mounted"
1117 # mkdir -p $(top_builddir)/vlcmnt
1118 # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1119 # bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1120 # sleep 1 # Make sure operation completes
1123 # Unmount the image now
1124 # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
1125 # rm -R $(top_builddir)/vlcmnt
1127 # Make sure the image is not writable
1128 # Note: We can't directly create a read only dmg as we do the bless stuff
1129 echo "Make the disk image read-only"
1130 mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1131 hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDZO -o "$(top_builddir)/vlc-$(VERSION).dmg"
1132 rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
1135 echo "Disk image creation completed:"
1136 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
1139 rm -Rf "$(top_builddir)/vlc-$(VERSION)"
1141 package-macosx-zip: VLC-release.app
1142 rm -Rf $(top_builddir)/vlc-$(VERSION)
1143 mkdir -p $(top_builddir)/vlc-$(VERSION)
1144 cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app
1145 mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1146 for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1147 cp $(srcdir)/$$i $(top_builddir)/vlc-$(VERSION)/Goodies; \
1149 cp -R $(srcdir)/extras/package/macosx/Delete_Preferences.app \
1150 $(top_builddir)/vlc-$(VERSION)/Goodies
1151 cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf \
1152 $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
1153 zip -r $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
1154 rm -Rf $(top_builddir)/vlc-$(VERSION)
1156 package-macosx-framework-zip:
1157 rm -Rf $(top_builddir)/vlckit-$(VERSION)
1158 mkdir -p $(top_builddir)/vlckit-$(VERSION)
1159 cp -R $(srcdir)/projects/macosx/framework/build/Debug/VLCKit.framework \
1160 $(top_builddir)/vlckit-$(VERSION)/VLCKit.framework
1161 mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
1162 for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do \
1163 cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; \
1165 zip -r $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
1166 rm -Rf $(top_builddir)/vlc-$(VERSION)
1168 package-macosx-plugin:
1171 rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
1172 mkdir -p "$(top_builddir)/macosx-plugin-instdata"
1173 cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
1174 rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
1175 export PACKAGEMAKER=
1176 if test -x /Developer/Tools/packagemaker; then \
1177 export PACKAGEMAKER=/Developer/Tools/packagemaker; \
1179 if test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then \
1180 export PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; \
1182 $${PACKAGEMAKER} -build -ds -p "$(top_builddir)/VLC Internet Plug-In.pkg" \
1183 -f "$(top_builddir)/macosx-plugin-instdata" \
1184 -i "$(srcdir)/extras/package/macosx/plugin/InstallerInfo.plist" \
1185 -d "$(srcdir)/extras/package/macosx/plugin/InstallerDescription.plist"; true
1186 rm -rf "$(top_builddir)/macosx-plugin-instdata/"
1189 rm -f "$(top_builddir)/vlc-plugin-$(VERSION).dmg"; true
1190 rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)/"; true
1191 mkdir -p "$(top_builddir)/vlc-plugin-$(VERSION)/"
1192 mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$(VERSION)/"
1193 hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \
1194 "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDZO \
1195 -scrub -imagekey zlib-level=9
1196 echo "Disk image creation completed:"
1197 rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)"
1200 package-translations:
1201 @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \
1202 echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \
1205 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \
1208 cat $(top_srcdir)/po/LINGUAS | while read i; do \
1209 cp "$(srcdir)/po/$${i}.po" \
1210 "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \
1213 cp "$(srcdir)/doc/translations.txt" \
1214 "$(srcdir)/vlc-translations-$(VERSION)/README.txt"
1216 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1217 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1218 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1219 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1220 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1221 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1222 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1223 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
1225 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
1226 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
1228 ###############################################################################
1229 # PO translation files update
1230 ###############################################################################
1234 cd po && $(MAKE) POTFILES vlc.pot update-po
1237 ###############################################################################
1238 # Enforce Mac OS X deployment target environment variable
1239 ###############################################################################
1240 macosx-sdk: Makefile.in $(HEADERS_include) vlc-config
1241 export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)