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
36 # Tell aclocal to use -I m4. Wonder if it really works.
37 ACLOCAL_AMFLAGS = -I m4
39 # XXX: these flags could be set in configure.ac, but we set them here
40 # because old versions of automake don't support them in configure.ac.
41 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
43 ###############################################################################
45 ###############################################################################
48 include/vlc_symbols.h \
49 src/misc/modules_builtin.h \
50 src/misc/modules_plugin.h \
53 pkgincludedir = $(includedir)/vlc
55 dist_pkginclude_HEADERS = \
60 include/vlc/decoder.h \
65 noinst_HEADERS = $(HEADERS_include) $(HEADERS_include_built)
68 include/aout_internal.h \
69 include/audio_output.h \
70 include/beos_specific.h \
71 include/configuration.h \
72 include/darwin_specific.h \
76 include/input_ext-dec.h \
77 include/input_ext-intf.h \
78 include/input_ext-plugins.h \
79 include/intf_eject.h \
85 include/modules_inner.h \
88 include/os_specific.h \
90 include/stream_control.h \
91 include/stream_output.h \
93 include/video_output.h \
96 include/vlc_block_helper.h \
98 include/vlc_common.h \
99 include/vlc_config.h \
101 include/vlc_error.h \
104 include/vlc_interface.h \
106 include/vlc_messages.h \
109 include/vlc_objects.h \
110 include/vlc_playlist.h \
111 include/vlc_threads.h \
112 include/vlc_threads_funcs.h \
113 include/vlc_video.h \
114 include/vout_synchro.h \
115 include/win32_specific.h \
119 HEADERS_include_built = \
120 include/vlc_symbols.h \
123 include/vlc_symbols.h: Makefile $(HEADERS_include)
124 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
126 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
127 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
129 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
130 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
132 # These dependencies are mandatory
133 $(SOURCES): include/vlc_symbols.h
134 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
136 ###############################################################################
137 # Optional libintl - FIXME, bad dependencies
138 ###############################################################################
140 intl/libintl.a: FORCE
141 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
144 LIB_intl = intl/libintl.a
147 ###############################################################################
149 ###############################################################################
152 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
153 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
154 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
155 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
156 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
157 extras/MacOSX/Resources/a52.icns \
158 extras/MacOSX/Resources/aac.icns \
159 extras/MacOSX/Resources/asf.icns \
160 extras/MacOSX/Resources/asx.icns \
161 extras/MacOSX/Resources/avi.icns \
162 extras/MacOSX/Resources/bin.icns \
163 extras/MacOSX/Resources/cue.icns \
164 extras/MacOSX/Resources/dat.icns \
165 extras/MacOSX/Resources/divx.icns \
166 extras/MacOSX/Resources/dv.icns \
167 extras/MacOSX/Resources/generic.icns \
168 extras/MacOSX/Resources/m3u.icns \
169 extras/MacOSX/Resources/mov.icns \
170 extras/MacOSX/Resources/mp3.icns \
171 extras/MacOSX/Resources/mp4.icns \
172 extras/MacOSX/Resources/mpeg.icns \
173 extras/MacOSX/Resources/mpeg1.icns \
174 extras/MacOSX/Resources/mpeg2.icns \
175 extras/MacOSX/Resources/mpeg4.icns \
176 extras/MacOSX/Resources/mpg.icns \
177 extras/MacOSX/Resources/ogg.icns \
178 extras/MacOSX/Resources/ogm.icns \
179 extras/MacOSX/Resources/pls.icns \
180 extras/MacOSX/Resources/srt.icns \
181 extras/MacOSX/Resources/sub.icns \
182 extras/MacOSX/Resources/vlc.icns \
183 extras/MacOSX/Resources/vob.icns \
184 extras/MacOSX/Resources/wma.icns \
185 extras/MacOSX/Resources/wmv.icns \
186 extras/MacOSX/Resources/pause.png \
187 extras/MacOSX/Resources/pause_blue.png \
188 extras/MacOSX/Resources/play.png \
189 extras/MacOSX/Resources/play_blue.png \
190 extras/MacOSX/Resources/stop.png \
191 extras/MacOSX/Resources/stop_blue.png \
192 extras/MacOSX/Resources/display.png \
193 extras/MacOSX/Resources/display_slider.png \
194 extras/MacOSX/Resources/display_track.png \
195 extras/MacOSX/Resources/fullscreen_active.png \
196 extras/MacOSX/Resources/fullscreen_blue.png \
197 extras/MacOSX/Resources/next_active.png \
198 extras/MacOSX/Resources/next_blue.png \
199 extras/MacOSX/Resources/playlistdrawer_active.png \
200 extras/MacOSX/Resources/playlistdrawer_blue.png \
201 extras/MacOSX/Resources/previous_active.png \
202 extras/MacOSX/Resources/previous_blue.png \
203 extras/MacOSX/Resources/skip_forward_active.png \
204 extras/MacOSX/Resources/skip_forward_blue.png \
205 extras/MacOSX/Resources/skip_previous_active.png \
206 extras/MacOSX/Resources/skip_previous_blue.png \
207 extras/MacOSX/Resources/volume_high.png \
208 extras/MacOSX/Resources/volume_low.png \
209 extras/MacOSX/Resources/volumeslider_blue.png \
210 extras/MacOSX/Resources/volumeslider_normal.png \
211 extras/MacOSX/Resources/volumetrack.png \
212 extras/MacOSX/Resources/about_bg.png \
213 extras/MacOSX/Resources/vlc.scriptSuite \
214 extras/MacOSX/Resources/README \
215 extras/MacOSX/vlc.pbproj/project.pbxproj \
216 extras/MacOSX/macosx-dmg \
219 ###############################################################################
220 # MS Visual Studio and eMbedded Visual Studio projects
221 ###############################################################################
226 msvc/plugins.dsp.in \
229 msvc/modules_builtin_msvc.h \
236 evc/modules_builtin_evc.h \
240 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
241 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
243 ###############################################################################
245 ###############################################################################
247 bin_SCRIPTS = vlc-config
249 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
251 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
252 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
253 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
254 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
255 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
257 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
258 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
259 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
260 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
263 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
266 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
269 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
272 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
275 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
279 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
284 $(SOURCES_libvlc_beos) \
285 $(SOURCES_libvlc_darwin) \
286 $(SOURCES_libvlc_win32) \
287 $(SOURCES_libvlc_dirent) \
288 $(SOURCES_libvlc_getopt) \
291 SOURCES_libvlc_beos = \
292 src/misc/beos_specific.cpp \
295 SOURCES_libvlc_darwin = \
296 src/misc/darwin_specific.m \
299 SOURCES_libvlc_win32 = \
300 src/misc/win32_specific.c \
303 SOURCES_libvlc_dirent = \
304 src/extras/dirent.c \
305 src/extras/dirent.h \
308 SOURCES_libvlc_getopt = \
309 src/extras/getopt.c \
310 src/extras/getopt.h \
311 src/extras/getopt1.c \
314 SOURCES_libvlc_common = \
317 src/interface/interface.c \
318 src/interface/intf_eject.c \
319 src/playlist/playlist.c \
320 src/playlist/sort.c \
321 src/playlist/loadsave.c \
322 src/playlist/group.c \
323 src/playlist/item.c \
324 src/playlist/item-ext.c \
325 src/playlist/info.c \
327 src/input/control.c \
332 src/input/subtitles.c \
333 src/input/input_ext-plugins.c \
334 src/input/input_ext-intf.c \
335 src/input/input_dec.c \
336 src/input/input_programs.c \
337 src/input/input_clock.c \
338 src/video_output/video_output.c \
339 src/video_output/vout_pictures.c \
340 src/video_output/vout_pictures.h \
341 src/video_output/video_text.c \
342 src/video_output/video_widgets.c \
343 src/video_output/vout_subpictures.c \
344 src/video_output/vout_synchro.c \
345 src/video_output/vout_intf.c \
346 src/audio_output/common.c \
347 src/audio_output/dec.c \
348 src/audio_output/filters.c \
349 src/audio_output/input.c \
350 src/audio_output/mixer.c \
351 src/audio_output/output.c \
352 src/audio_output/intf.c \
353 src/stream_output/stream_output.c \
354 src/stream_output/announce.c \
355 src/stream_output/sap.c \
363 src/misc/configuration.c \
364 src/misc/iso_lang.c \
365 src/misc/iso-639_def.h \
366 src/misc/messages.c \
368 src/misc/variables.c \
376 $(SOURCES_libvlc_common) \
377 $(OPT_SOURCES_libvlc_beos) \
378 $(OPT_SOURCES_libvlc_darwin) \
379 $(OPT_SOURCES_libvlc_win32) \
380 $(OPT_SOURCES_libvlc_dirent) \
381 $(OPT_SOURCES_libvlc_getopt) \
384 ###############################################################################
386 ###############################################################################
390 vlc_SOURCES = src/vlc.c
392 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
393 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
394 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
396 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
397 # old automake-1.5 bug (automake/279).
398 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
400 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
401 @rm -f $(top_builddir)/vlc$(EXEEXT)
402 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
403 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
404 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
405 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
409 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
411 rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
412 for i in $(ALL_LINGUAS); do \
413 mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
414 cp "$(srcdir)/po/$${i}.gmo" \
415 "$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
419 # Install the modules and the symlinks
421 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
422 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
423 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
425 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
426 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
427 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
430 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
431 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
432 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
435 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
436 rm -f "$(DESTDIR)$(bindir)/$$i" && \
437 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
441 # Create the MacOS X app
442 vlc_app_DATA = VLC.app
443 vlc_appdir = $(bindir)
445 @if test -e "$(top_builddir)/tmp"; then \
446 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
449 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
451 rm -Rf $(top_builddir)/VLC.app
452 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
453 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
454 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
456 mkdir -p $(top_builddir)/tmp/modules/audio_output
457 cp $(srcdir)/modules/audio_output/coreaudio.c \
458 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
459 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
486 cp "$(srcdir)/modules/gui/macosx/$$i" \
487 $(top_builddir)/tmp/modules/gui/macosx; \
489 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
490 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
491 $(top_builddir)/VLC.app
492 rm -Rf $(top_builddir)/tmp
493 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
494 $(INSTALL) $(top_builddir)/vlc \
495 $(top_builddir)/VLC.app/Contents/MacOS/VLC
496 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
497 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
499 then $(INSTALL) "$$i$(LIBEXT)" \
500 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
502 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
503 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
504 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
505 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
508 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
509 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
510 for i in $(srcdir)/share/http/* ; do \
511 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
513 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
514 for i in $(srcdir)/share/http/vlm/* ; do \
515 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
517 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
518 for i in $(srcdir)/share/http/admin/* ; do \
519 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
521 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
522 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
523 for i in $(ALL_LINGUAS); do \
524 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
525 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
526 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
527 ln -sf ../English.lproj/InfoPlist.strings \
528 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
529 ln -sf ../English.lproj/MainMenu.nib \
530 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
531 ln -sf ../English.lproj/vlc.scriptTerminology \
532 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
534 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
538 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
539 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
540 noinst_share_vlc_win32_rcdir = $(libdir)
541 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
542 $(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 $@
545 ###############################################################################
546 # Building specific source packages
547 ###############################################################################
550 $(remove_distdir_woody)
551 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
552 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
553 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
554 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
555 $(remove_distdir_woody)
557 remove_distdir_woody = \
558 { test ! -d $(PACKAGE)-woody-$(VERSION) \
559 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
560 -exec chmod u+w {} ';' \
561 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
563 ###############################################################################
564 # Building architecture-specific binary packages
565 ###############################################################################
567 # XXX: this rule is probably only useful to you if you have exactly
568 # the same setup as me. Contact sam@zoy.org if you need to use it.
571 # Check that tmp isn't in the way
572 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
573 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
576 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
579 # Copy relevant files
580 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
581 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
582 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
583 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
584 @if test -n "$(UPX)"; then \
585 $(UPX) -9 "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"; fi ;
587 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
588 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
589 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
591 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
592 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
593 if test -n "$$i" ; then \
594 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
595 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
598 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
599 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; \
600 if test -n "$(UPX)" -a -n "$$i"; then $(UPX) -9 "$$i"; fi ; \
603 mkdir $(srcdir)/vlc-${VERSION}/locale
604 for i in $(ALL_LINGUAS); do \
605 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
606 cp "$(srcdir)/po/$${i}.gmo" \
607 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
611 mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
612 for i in $(srcdir)/share/skins/default/*.*; do \
613 cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
615 for i in $(srcdir)/doc/skins/*.txt; do \
616 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
618 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/fonts
619 for i in $(srcdir)/share/skins2/fonts/*.*; do \
620 cp $$i $(srcdir)/vlc-${VERSION}/skins2/fonts/ || true ; \
622 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/default
623 for i in $(srcdir)/share/skins2/default/*.*; do \
624 cp $$i $(srcdir)/vlc-${VERSION}/skins2/default/ || true ; \
626 for i in $(srcdir)/share/skins2/*.*; do \
627 cp $$i $(srcdir)/vlc-${VERSION}/skins2/ || true ; \
630 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
631 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
632 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
633 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
634 cp $(srcdir)/share/http/admin/*.html \
635 $(srcdir)/vlc-${VERSION}/http/admin/ ;
636 cp $(srcdir)/share/http/admin/.access \
637 $(srcdir)/vlc-${VERSION}/http/admin/ ;
638 cp $(srcdir)/share/http/vlm/*.html \
639 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
641 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
643 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
645 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
646 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
647 @if test $(UPX); then \
648 $(UPX) -9 $(srcdir)/vlc-${VERSION}/mozilla/npvlc$(LIBEXT); fi ; \
649 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
652 package-win32-base-exe:
654 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
655 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
657 package-win32-base-zip:
659 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
661 package-win32-exe: package-win32-base package-win32-base-exe
663 rm -Rf $(srcdir)/vlc-${VERSION}
665 package-win32-zip: package-win32-base package-win32-base-zip
667 rm -Rf $(srcdir)/vlc-${VERSION}
669 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
671 rm -Rf $(srcdir)/vlc-${VERSION}
674 # Check that tmp isn't in the way
675 @if test -e $(srcdir)/tmp; then \
676 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
679 echo "OK." ; mkdir $(srcdir)/tmp ; \
682 # Copy relevant files
683 mkdir -p $(srcdir)/tmp/vlc ;
685 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/ ;
686 # We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
687 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
688 mkdir -p $(srcdir)/tmp/vlc/plugins ; \
689 find $(srcdir)/modules -name "lib*_plugin.so" -exec cp {} $(srcdir)/tmp/vlc/plugins/ \; ; \
691 for i in $(ALL_LINGUAS); do \
692 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
693 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
696 # Strip files and create package
697 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
698 if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
699 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/plugins/lib*_plugin.so ; \
701 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
702 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
703 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
704 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
705 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
708 rm -Rf $(srcdir)/tmp ;
711 # Check that tmp isn't in the way
712 @if test -e "$(top_builddir)/tmp"; then \
713 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
716 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
719 # Copy relevant files
720 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
721 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
724 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
727 rm -Rf $(top_builddir)/tmp
729 package-translations:
730 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
731 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
734 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
737 for i in $(ALL_LINGUAS); do \
738 cp "$(srcdir)/po/$${i}.po" \
739 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
742 cp "$(srcdir)/doc/translations.txt" \
743 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
745 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
746 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
747 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
748 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
749 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
750 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
751 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
752 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
754 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
755 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
757 ###############################################################################
759 ###############################################################################
765 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
766 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
771 @if test ! -f $@; then printf "" > $@; fi
773 ###############################################################################
775 ###############################################################################