1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
7 # SUBDIRS stores the directories where a "make" is required when building
8 # something. DIST_SUBDIRS stores the directories where nothing is built but
9 # which have makefiles with distribution information.
10 # - intl should come before modules and . because all the code uses gettext
11 # - modules should come before . because vlc needs the builtins
12 # - . should come before mozilla because the plugin needs libvlc_pic.a
13 # - po should come before . because VLC.app needs the pofiles
14 SUBDIRS = intl modules po . mozilla share m4 doc
15 DIST_SUBDIRS = $(SUBDIRS) src debian ipkg lib autotools
35 # Tell aclocal to use -I m4. Wonder if it really works.
36 ACLOCAL_AMFLAGS = -I m4
38 # XXX: these flags could be set in configure.ac, but we set them here
39 # because old versions of automake don't support them in configure.ac.
40 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
42 ###############################################################################
44 ###############################################################################
47 include/vlc_symbols.h \
48 src/misc/modules_builtin.h \
49 src/misc/modules_plugin.h \
52 pkgincludedir = $(includedir)/vlc
54 dist_pkginclude_HEADERS = \
59 include/vlc/decoder.h \
64 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
67 include/aout_internal.h \
68 include/audio_output.h \
69 include/beos_specific.h \
70 include/configuration.h \
71 include/darwin_specific.h \
75 include/input_ext-dec.h \
76 include/input_ext-intf.h \
77 include/input_ext-plugins.h \
78 include/intf_eject.h \
84 include/modules_inner.h \
87 include/os_specific.h \
88 include/stream_control.h \
89 include/stream_output.h \
91 include/video_output.h \
94 include/vlc_block_helper.h \
96 include/vlc_common.h \
97 include/vlc_config.h \
102 include/vlc_interface.h \
104 include/vlc_messages.h \
105 include/vlc_objects.h \
106 include/vlc_playlist.h \
107 include/vlc_threads.h \
108 include/vlc_threads_funcs.h \
109 include/vlc_video.h \
110 include/vout_synchro.h \
111 include/win32_specific.h \
115 HEADERS_include_built = \
116 include/vlc_symbols.h \
119 include/vlc_symbols.h: Makefile $(HEADERS_include)
120 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
122 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
123 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
125 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
126 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
128 # These dependencies are mandatory
129 $(SOURCES): include/vlc_symbols.h
130 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
132 ###############################################################################
133 # Optional libintl - FIXME, bad dependencies
134 ###############################################################################
136 intl/libintl.a: FORCE
137 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
140 LIB_intl = intl/libintl.a
143 ###############################################################################
145 ###############################################################################
148 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
149 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
150 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
151 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
152 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
153 extras/MacOSX/Resources/a52.icns \
154 extras/MacOSX/Resources/aac.icns \
155 extras/MacOSX/Resources/asf.icns \
156 extras/MacOSX/Resources/asx.icns \
157 extras/MacOSX/Resources/avi.icns \
158 extras/MacOSX/Resources/bin.icns \
159 extras/MacOSX/Resources/cue.icns \
160 extras/MacOSX/Resources/dat.icns \
161 extras/MacOSX/Resources/divx.icns \
162 extras/MacOSX/Resources/dv.icns \
163 extras/MacOSX/Resources/generic.icns \
164 extras/MacOSX/Resources/m3u.icns \
165 extras/MacOSX/Resources/mov.icns \
166 extras/MacOSX/Resources/mp3.icns \
167 extras/MacOSX/Resources/mp4.icns \
168 extras/MacOSX/Resources/mpeg.icns \
169 extras/MacOSX/Resources/mpeg1.icns \
170 extras/MacOSX/Resources/mpeg2.icns \
171 extras/MacOSX/Resources/mpeg4.icns \
172 extras/MacOSX/Resources/mpg.icns \
173 extras/MacOSX/Resources/ogg.icns \
174 extras/MacOSX/Resources/ogm.icns \
175 extras/MacOSX/Resources/pls.icns \
176 extras/MacOSX/Resources/srt.icns \
177 extras/MacOSX/Resources/sub.icns \
178 extras/MacOSX/Resources/vlc.icns \
179 extras/MacOSX/Resources/vob.icns \
180 extras/MacOSX/Resources/wma.icns \
181 extras/MacOSX/Resources/wmv.icns \
182 extras/MacOSX/Resources/pause.png \
183 extras/MacOSX/Resources/pause_blue.png \
184 extras/MacOSX/Resources/play.png \
185 extras/MacOSX/Resources/play_blue.png \
186 extras/MacOSX/Resources/stop.png \
187 extras/MacOSX/Resources/stop_blue.png \
188 extras/MacOSX/Resources/display.png \
189 extras/MacOSX/Resources/display_slider.png \
190 extras/MacOSX/Resources/display_track.png \
191 extras/MacOSX/Resources/fullscreen_active.png \
192 extras/MacOSX/Resources/fullscreen_blue.png \
193 extras/MacOSX/Resources/next_active.png \
194 extras/MacOSX/Resources/next_blue.png \
195 extras/MacOSX/Resources/playlistdrawer_active.png \
196 extras/MacOSX/Resources/playlistdrawer_blue.png \
197 extras/MacOSX/Resources/previous_active.png \
198 extras/MacOSX/Resources/previous_blue.png \
199 extras/MacOSX/Resources/skip_forward_active.png \
200 extras/MacOSX/Resources/skip_forward_blue.png \
201 extras/MacOSX/Resources/skip_previous_active.png \
202 extras/MacOSX/Resources/skip_previous_blue.png \
203 extras/MacOSX/Resources/volume_high.png \
204 extras/MacOSX/Resources/volume_low.png \
205 extras/MacOSX/Resources/volumeslider_blue.png \
206 extras/MacOSX/Resources/volumeslider_normal.png \
207 extras/MacOSX/Resources/volumetrack.png \
208 extras/MacOSX/Resources/about_bg.png \
209 extras/MacOSX/Resources/vlc.scriptSuite \
210 extras/MacOSX/Resources/README \
211 extras/MacOSX/vlc.pbproj/project.pbxproj \
212 extras/MacOSX/macosx-dmg \
215 ###############################################################################
216 # MS Visual Studio and eMbedded Visual Studio projects
217 ###############################################################################
222 msvc/plugins.dsp.in \
225 msvc/modules_builtin_msvc.h \
232 evc/modules_builtin_evc.h \
236 mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
237 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
239 ###############################################################################
241 ###############################################################################
243 bin_SCRIPTS = vlc-config
245 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
247 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
248 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
249 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
250 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
251 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
253 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
254 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
255 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
256 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
259 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
262 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
265 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
268 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
271 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
275 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
280 $(SOURCES_libvlc_beos) \
281 $(SOURCES_libvlc_darwin) \
282 $(SOURCES_libvlc_win32) \
283 $(SOURCES_libvlc_dirent) \
284 $(SOURCES_libvlc_getopt) \
287 SOURCES_libvlc_beos = \
288 src/misc/beos_specific.cpp \
291 SOURCES_libvlc_darwin = \
292 src/misc/darwin_specific.m \
295 SOURCES_libvlc_win32 = \
296 src/misc/win32_specific.c \
299 SOURCES_libvlc_dirent = \
300 src/extras/dirent.c \
301 src/extras/dirent.h \
304 SOURCES_libvlc_getopt = \
305 src/extras/getopt.c \
306 src/extras/getopt.h \
307 src/extras/getopt1.c \
310 SOURCES_libvlc_common = \
313 src/interface/interface.c \
314 src/interface/intf_eject.c \
315 src/playlist/playlist.c \
316 src/playlist/sort.c \
317 src/playlist/loadsave.c \
318 src/playlist/group.c \
319 src/playlist/item.c \
323 src/input/subtitles.c \
324 src/input/input_ext-plugins.c \
325 src/input/input_ext-intf.c \
326 src/input/input_dec.c \
327 src/input/input_programs.c \
328 src/input/input_clock.c \
329 src/input/input_info.c \
330 src/video_output/video_output.c \
331 src/video_output/vout_pictures.c \
332 src/video_output/vout_pictures.h \
333 src/video_output/video_text.c \
334 src/video_output/vout_subpictures.c \
335 src/video_output/vout_synchro.c \
336 src/audio_output/common.c \
337 src/audio_output/dec.c \
338 src/audio_output/filters.c \
339 src/audio_output/input.c \
340 src/audio_output/mixer.c \
341 src/audio_output/output.c \
342 src/audio_output/intf.c \
343 src/stream_output/stream_output.c \
350 src/misc/configuration.c \
351 src/misc/iso_lang.c \
352 src/misc/iso-639_def.h \
353 src/misc/messages.c \
355 src/misc/variables.c \
361 $(SOURCES_libvlc_common) \
362 $(OPT_SOURCES_libvlc_beos) \
363 $(OPT_SOURCES_libvlc_darwin) \
364 $(OPT_SOURCES_libvlc_win32) \
365 $(OPT_SOURCES_libvlc_dirent) \
366 $(OPT_SOURCES_libvlc_getopt) \
369 ###############################################################################
371 ###############################################################################
375 vlc_SOURCES = src/vlc.c
377 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
378 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
379 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
381 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
382 # old automake-1.5 bug (automake/279).
383 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
385 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
386 @rm -f $(top_builddir)/vlc$(EXEEXT)
387 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
388 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
389 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
390 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
394 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
396 rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
397 for i in $(ALL_LINGUAS); do \
398 mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
399 cp "$(srcdir)/po/$${i}.gmo" \
400 "$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
404 # Install the modules and the symlinks
406 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
407 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
408 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
410 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
411 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
412 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
415 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
416 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
417 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
420 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
421 rm -f "$(DESTDIR)$(bindir)/$$i" && \
422 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
426 # Create the MacOS X app
427 vlc_app_DATA = VLC.app
428 vlc_appdir = $(bindir)
430 @if test -e "$(top_builddir)/tmp"; then \
431 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
434 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
436 rm -Rf $(top_builddir)/VLC.app
437 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
438 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
439 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
441 mkdir -p $(top_builddir)/tmp/modules/audio_output
442 cp $(srcdir)/modules/audio_output/coreaudio.c \
443 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
444 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
469 cp "$(srcdir)/modules/gui/macosx/$$i" \
470 $(top_builddir)/tmp/modules/gui/macosx; \
472 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
473 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
474 $(top_builddir)/VLC.app
475 rm -Rf $(top_builddir)/tmp
476 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
477 $(INSTALL) $(top_builddir)/vlc \
478 $(top_builddir)/VLC.app/Contents/MacOS/VLC
479 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
480 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
482 then $(INSTALL) "$$i$(LIBEXT)" \
483 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
485 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
486 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
487 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
488 install -c $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
491 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
492 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
493 $(INSTALL) -m 644 $(srcdir)/share/http/*.html \
494 $(top_builddir)/VLC.app/Contents/MacOS/share/http
495 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
496 $(INSTALL) -m 644 $(srcdir)/share/http/admin/*.html \
497 $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
498 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
499 for i in $(ALL_LINGUAS); do \
500 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
501 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
502 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
503 ln -sf ../English.lproj/InfoPlist.strings \
504 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
505 ln -sf ../English.lproj/MainMenu.nib \
506 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
507 ln -sf ../English.lproj/vlc.scriptTerminology \
508 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
510 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
514 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
515 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
516 noinst_share_vlc_win32_rcdir = $(libdir)
517 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
518 $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(srcdir)/share -i $< -o $@
521 ###############################################################################
522 # Building specific source packages
523 ###############################################################################
526 $(remove_distdir_woody)
527 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
528 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
529 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
530 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
531 $(remove_distdir_woody)
533 remove_distdir_woody = \
534 { test ! -d $(PACKAGE)-woody-$(VERSION) \
535 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
536 -exec chmod u+w {} ';' \
537 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
539 ###############################################################################
540 # Building architecture-specific binary packages
541 ###############################################################################
543 # XXX: this rule is probably only useful to you if you have exactly
544 # the same setup as me. Contact sam@zoy.org if you need to use it.
546 # Check that tmp isn't in the way
548 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
549 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
552 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
554 # Create installation script
555 cp "$(srcdir)/install-win32" "$(srcdir)/vlc-${VERSION}/nsi"
556 # Copy relevant files
557 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
558 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
559 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
560 do cp "$(srcdir)/$$file" "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
561 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
563 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
564 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
565 if test -n "$$i" ; then \
566 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
567 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
570 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
571 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
573 mkdir $(srcdir)/vlc-${VERSION}/locale
574 for i in $(ALL_LINGUAS); do \
575 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
576 cp "$(srcdir)/po/$${i}.gmo" \
577 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
581 mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
582 for i in $(srcdir)/share/skins/default/*.*; do \
583 cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
585 for i in $(srcdir)/doc/skins/*.txt; do \
586 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
589 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
590 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
591 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
592 cp $(srcdir)/share/http/admin/*.html \
593 $(srcdir)/vlc-${VERSION}/http/admin/ ;
594 cp $(srcdir)/share/http/admin/.access \
595 $(srcdir)/vlc-${VERSION}/http/admin/ ;
597 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
599 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
600 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
601 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
604 package-win32-base-exe:
606 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
607 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/nsi
609 package-win32-base-zip:
611 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
613 package-win32-exe: package-win32-base package-win32-base-exe
615 rm -Rf $(srcdir)/vlc-${VERSION}
617 package-win32-zip: package-win32-base package-win32-base-zip
619 rm -Rf $(srcdir)/vlc-${VERSION}
621 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
623 rm -Rf $(srcdir)/vlc-${VERSION}
626 # Check that tmp isn't in the way
627 @if test -e $(srcdir)/tmp; then \
628 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
631 echo "OK."; mkdir $(srcdir)/tmp; \
634 # Copy relevant files
635 mkdir -p $(srcdir)/tmp/vlc
637 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/
638 # We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
639 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
640 mkdir -p $(srcdir)/tmp/vlc/plugins; \
641 find $(srcdir)/modules -name "lib*_plugin.so" | xargs -i{} cp {} $(srcdir)/tmp/vlc/plugins/; \
643 for i in $(ALL_LINGUAS); do \
644 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
645 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
648 # Create package with debug symbols
649 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
650 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
651 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
652 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/
654 # Create package without debug symbols
655 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc
656 strip $(srcdir)/tmp/vlc/vlc
657 if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
658 strip $(srcdir)/tmp/vlc/plugins/lib*_plugin.so; \
660 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
661 mimeset -f $(srcdir)/tmp/vlc/* $(srcdir)/tmp/vlc/*/*
662 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION}
663 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
664 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/
670 # Check that tmp isn't in the way
671 @if test -e "$(top_builddir)/tmp"; then \
672 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
675 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
678 # Copy relevant files
679 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
680 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
683 $(srcdir)/extras/MacOSX/macosx-dmg 25 "vlc-${VERSION}" $(top_builddir)/tmp/*
686 rm -Rf $(top_builddir)/tmp
688 ###############################################################################
690 ###############################################################################
696 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
697 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
702 @if test ! -f $@; then printf "" > $@; fi
704 ###############################################################################
706 ###############################################################################