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
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 \
73 include/configuration.h \
74 include/darwin_specific.h \
75 include/intf_eject.h \
80 include/modules_inner.h \
84 include/os_specific.h \
86 include/stream_output.h \
88 include/video_output.h \
89 include/vlc_access.h \
92 include/vlc_block_helper.h \
94 include/vlc_common.h \
95 include/vlc_config.h \
100 include/vlc_es_out.h \
101 include/vlc_filter.h \
103 include/vlc_httpd.h \
104 include/vlc_input.h \
105 include/vlc_interface.h \
107 include/vlc_messages.h \
109 include/vlc_objects.h \
110 include/vlc_playlist.h \
111 include/vlc_stream.h \
112 include/vlc_threads_funcs.h \
113 include/vlc_threads.h \
114 include/vlc_video.h \
116 include/vout_synchro.h \
117 include/win32_specific.h \
120 HEADERS_include_built = \
121 include/vlc_symbols.h \
124 include/vlc_symbols.h: Makefile $(HEADERS_include)
125 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
127 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
128 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
130 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
131 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
133 # These dependencies are mandatory
134 $(SOURCES): include/vlc_symbols.h
135 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
137 ###############################################################################
138 # Optional libintl - FIXME, bad dependencies
139 ###############################################################################
141 intl/libintl.a: FORCE
142 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
145 LIB_intl = intl/libintl.a
148 ###############################################################################
150 ###############################################################################
153 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
154 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
155 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
156 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
157 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
158 extras/MacOSX/Resources/a52.icns \
159 extras/MacOSX/Resources/aac.icns \
160 extras/MacOSX/Resources/asf.icns \
161 extras/MacOSX/Resources/asx.icns \
162 extras/MacOSX/Resources/avi.icns \
163 extras/MacOSX/Resources/bin.icns \
164 extras/MacOSX/Resources/cue.icns \
165 extras/MacOSX/Resources/dat.icns \
166 extras/MacOSX/Resources/divx.icns \
167 extras/MacOSX/Resources/dv.icns \
168 extras/MacOSX/Resources/generic.icns \
169 extras/MacOSX/Resources/m3u.icns \
170 extras/MacOSX/Resources/mov.icns \
171 extras/MacOSX/Resources/mp3.icns \
172 extras/MacOSX/Resources/mp4.icns \
173 extras/MacOSX/Resources/mpeg.icns \
174 extras/MacOSX/Resources/mpeg1.icns \
175 extras/MacOSX/Resources/mpeg2.icns \
176 extras/MacOSX/Resources/mpeg4.icns \
177 extras/MacOSX/Resources/mpg.icns \
178 extras/MacOSX/Resources/ogg.icns \
179 extras/MacOSX/Resources/ogm.icns \
180 extras/MacOSX/Resources/pls.icns \
181 extras/MacOSX/Resources/srt.icns \
182 extras/MacOSX/Resources/sub.icns \
183 extras/MacOSX/Resources/vlc.icns \
184 extras/MacOSX/Resources/vob.icns \
185 extras/MacOSX/Resources/wma.icns \
186 extras/MacOSX/Resources/wmv.icns \
187 extras/MacOSX/Resources/pause.png \
188 extras/MacOSX/Resources/pause_blue.png \
189 extras/MacOSX/Resources/play.png \
190 extras/MacOSX/Resources/play_blue.png \
191 extras/MacOSX/Resources/stop.png \
192 extras/MacOSX/Resources/stop_blue.png \
193 extras/MacOSX/Resources/display.png \
194 extras/MacOSX/Resources/display_slider.png \
195 extras/MacOSX/Resources/display_track.png \
196 extras/MacOSX/Resources/equalizerdrawer_active.png \
197 extras/MacOSX/Resources/equalizerdrawer_blue.png \
198 extras/MacOSX/Resources/fullscreen_active.png \
199 extras/MacOSX/Resources/fullscreen_blue.png \
200 extras/MacOSX/Resources/next_active.png \
201 extras/MacOSX/Resources/next_blue.png \
202 extras/MacOSX/Resources/playlistdrawer_active.png \
203 extras/MacOSX/Resources/playlistdrawer_blue.png \
204 extras/MacOSX/Resources/previous_active.png \
205 extras/MacOSX/Resources/previous_blue.png \
206 extras/MacOSX/Resources/skip_forward_active.png \
207 extras/MacOSX/Resources/skip_forward_blue.png \
208 extras/MacOSX/Resources/skip_previous_active.png \
209 extras/MacOSX/Resources/skip_previous_blue.png \
210 extras/MacOSX/Resources/volume_high.png \
211 extras/MacOSX/Resources/volume_low.png \
212 extras/MacOSX/Resources/volumeslider_blue.png \
213 extras/MacOSX/Resources/volumeslider_normal.png \
214 extras/MacOSX/Resources/volumetrack.png \
215 extras/MacOSX/Resources/about_bg.png \
216 extras/MacOSX/Resources/vlc.scriptSuite \
217 extras/MacOSX/Resources/README \
218 extras/MacOSX/vlc.pbproj/project.pbxproj \
219 extras/MacOSX/macosx-dmg \
222 ###############################################################################
223 # MS Visual Studio and eMbedded Visual Studio projects
224 ###############################################################################
229 msvc/plugins.dsp.in \
232 msvc/modules_builtin_msvc.h \
239 evc/modules_builtin_evc.h \
243 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
244 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
246 ###############################################################################
248 ###############################################################################
250 bin_SCRIPTS = vlc-config
252 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
254 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
255 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
256 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
257 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
258 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
260 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
261 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
262 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
263 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
266 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
269 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
272 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
275 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
278 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
282 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
287 $(SOURCES_libvlc_beos) \
288 $(SOURCES_libvlc_darwin) \
289 $(SOURCES_libvlc_win32) \
290 $(SOURCES_libvlc_dirent) \
291 $(SOURCES_libvlc_getopt) \
294 SOURCES_libvlc_beos = \
295 src/misc/beos_specific.cpp \
298 SOURCES_libvlc_darwin = \
299 src/misc/darwin_specific.m \
302 SOURCES_libvlc_win32 = \
303 src/misc/win32_specific.c \
306 SOURCES_libvlc_dirent = \
307 src/extras/dirent.c \
308 src/extras/dirent.h \
311 SOURCES_libvlc_getopt = \
312 src/extras/getopt.c \
313 src/extras/getopt.h \
314 src/extras/getopt1.c \
317 SOURCES_libvlc_common = \
320 src/interface/interface.c \
321 src/interface/intf_eject.c \
322 src/playlist/playlist.c \
323 src/playlist/sort.c \
324 src/playlist/loadsave.c \
325 src/playlist/group.c \
326 src/playlist/item.c \
327 src/playlist/item-ext.c \
328 src/playlist/info.c \
331 src/input/control.c \
332 src/input/decoder.c \
336 src/input/input_internal.h \
338 src/input/subtitles.c \
340 src/video_output/video_output.c \
341 src/video_output/vout_pictures.c \
342 src/video_output/vout_pictures.h \
343 src/video_output/video_text.c \
344 src/video_output/video_widgets.c \
345 src/video_output/vout_subpictures.c \
346 src/video_output/vout_synchro.c \
347 src/video_output/vout_intf.c \
348 src/audio_output/common.c \
349 src/audio_output/dec.c \
350 src/audio_output/filters.c \
351 src/audio_output/input.c \
352 src/audio_output/mixer.c \
353 src/audio_output/output.c \
354 src/audio_output/intf.c \
355 src/stream_output/stream_output.c \
356 src/stream_output/announce.c \
357 src/stream_output/sap.c \
365 src/misc/configuration.c \
366 src/misc/iso_lang.c \
367 src/misc/iso-639_def.h \
368 src/misc/messages.c \
370 src/misc/variables.c \
378 $(SOURCES_libvlc_common) \
379 $(OPT_SOURCES_libvlc_beos) \
380 $(OPT_SOURCES_libvlc_darwin) \
381 $(OPT_SOURCES_libvlc_win32) \
382 $(OPT_SOURCES_libvlc_dirent) \
383 $(OPT_SOURCES_libvlc_getopt) \
386 ###############################################################################
388 ###############################################################################
392 vlc_SOURCES = src/vlc.c
394 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
395 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
396 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
398 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
399 # old automake-1.5 bug (automake/279).
400 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
402 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
403 @rm -f $(top_builddir)/vlc$(EXEEXT)
404 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
405 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
406 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
407 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
411 vlc_app_DATA = vlc-bundle
413 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
414 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
415 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
416 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
417 if test -n "$$i" ; then \
418 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
419 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
422 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
423 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
424 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
425 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
428 for i in $(ALL_LINGUAS); do \
429 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
430 cp "$(top_builddir)/po/$$i.gmo" \
431 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
433 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
436 # Install the modules and the symlinks
438 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
439 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
440 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
442 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
443 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
444 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
447 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
448 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
449 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
452 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
453 rm -f "$(DESTDIR)$(bindir)/$$i" && \
454 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
458 # Create the MacOS X app
459 vlc_app_DATA = VLC.app
460 vlc_appdir = $(bindir)
462 @if test -e "$(top_builddir)/tmp"; then \
463 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
466 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
468 rm -Rf $(top_builddir)/VLC.app
469 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
470 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
471 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
473 mkdir -p $(top_builddir)/tmp/modules/audio_output
474 cp $(srcdir)/modules/audio_output/coreaudio.c \
475 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
476 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
505 cp "$(srcdir)/modules/gui/macosx/$$i" \
506 $(top_builddir)/tmp/modules/gui/macosx; \
508 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
509 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
510 $(top_builddir)/VLC.app
511 rm -Rf $(top_builddir)/tmp
512 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
513 $(INSTALL) $(top_builddir)/vlc \
514 $(top_builddir)/VLC.app/Contents/MacOS/VLC
515 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
516 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
517 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
519 then $(INSTALL) "$$i$(LIBEXT)" \
520 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
522 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
523 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
524 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
525 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
528 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
529 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
530 for i in $(srcdir)/share/http/* ; do \
531 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
533 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
534 for i in $(srcdir)/share/http/vlm/* ; do \
535 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
537 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
538 for i in $(srcdir)/share/http/admin/* ; do \
539 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
541 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
542 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
543 for i in $(ALL_LINGUAS); do \
544 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
545 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
546 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
547 ln -sf ../English.lproj/InfoPlist.strings \
548 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
549 ln -sf ../English.lproj/MainMenu.nib \
550 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
551 ln -sf ../English.lproj/vlc.scriptTerminology \
552 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
554 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
558 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
559 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
560 noinst_share_vlc_win32_rcdir = $(libdir)
561 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
562 $(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 $@
565 ###############################################################################
566 # Building specific source packages
567 ###############################################################################
570 $(remove_distdir_woody)
571 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
572 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
573 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
574 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
575 $(remove_distdir_woody)
577 remove_distdir_woody = \
578 { test ! -d $(PACKAGE)-woody-$(VERSION) \
579 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
580 -exec chmod u+w {} ';' \
581 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
583 ###############################################################################
584 # Building architecture-specific binary packages
585 ###############################################################################
587 # XXX: this rule is probably only useful to you if you have exactly
588 # the same setup as me. Contact sam@zoy.org if you need to use it.
591 # Check that tmp isn't in the way
592 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
593 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
596 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
599 # Copy relevant files
600 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
601 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
602 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
603 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
605 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
606 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
607 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
609 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
610 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
611 if test -n "$$i" ; then \
612 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
613 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
616 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
617 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
619 mkdir $(srcdir)/vlc-${VERSION}/locale
620 for i in $(ALL_LINGUAS); do \
621 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
622 cp "$(srcdir)/po/$${i}.gmo" \
623 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
627 mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
628 for i in $(srcdir)/share/skins/default/*.*; do \
629 cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
631 for i in $(srcdir)/doc/skins/*.txt; do \
632 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
634 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/fonts
635 for i in $(srcdir)/share/skins2/fonts/*.*; do \
636 cp $$i $(srcdir)/vlc-${VERSION}/skins2/fonts/ || true ; \
638 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/default
639 for i in $(srcdir)/share/skins2/default/*.*; do \
640 cp $$i $(srcdir)/vlc-${VERSION}/skins2/default/ || true ; \
642 for i in $(srcdir)/share/skins2/*.*; do \
643 cp $$i $(srcdir)/vlc-${VERSION}/skins2/ || true ; \
646 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
647 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
648 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
649 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
650 cp $(srcdir)/share/http/admin/*.html \
651 $(srcdir)/vlc-${VERSION}/http/admin/ ;
652 cp $(srcdir)/share/http/admin/.access \
653 $(srcdir)/vlc-${VERSION}/http/admin/ ;
654 cp $(srcdir)/share/http/vlm/*.html \
655 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
657 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
659 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
661 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
662 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
663 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
666 package-win32-base-exe:
668 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
669 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
671 package-win32-base-zip:
673 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
675 package-win32-exe: package-win32-base package-win32-base-exe
677 rm -Rf $(srcdir)/vlc-${VERSION}
679 package-win32-zip: package-win32-base package-win32-base-zip
681 rm -Rf $(srcdir)/vlc-${VERSION}
683 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
685 rm -Rf $(srcdir)/vlc-${VERSION}
688 # Check that tmp isn't in the way
689 @if test -e $(srcdir)/tmp; then \
690 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
693 echo "OK." ; mkdir $(srcdir)/tmp ; \
696 # Copy relevant files
697 mkdir -p $(srcdir)/tmp/vlc ;
698 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
699 THANKS NEWS tmp/vlc/ ;
701 # Create debug package
702 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
703 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
704 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
705 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
706 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
707 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
709 # Create normal package
710 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
711 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
712 --strip-debug --strip-unneeded "{}" \; ;
713 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
714 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
715 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
716 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
717 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
720 rm -Rf $(srcdir)/tmp ;
723 # Check that tmp isn't in the way
724 @if test -e "$(top_builddir)/tmp"; then \
725 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
728 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
731 # Copy relevant files
732 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
733 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
736 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
739 rm -Rf $(top_builddir)/tmp
741 package-translations:
742 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
743 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
746 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
749 for i in $(ALL_LINGUAS); do \
750 cp "$(srcdir)/po/$${i}.po" \
751 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
754 cp "$(srcdir)/doc/translations.txt" \
755 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
757 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
758 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
759 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
760 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
761 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
762 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
763 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
764 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
766 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
767 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
769 ###############################################################################
771 ###############################################################################
777 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
778 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
783 @if test ! -f $@; then printf "" > $@; fi
785 ###############################################################################
787 ###############################################################################