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 \
117 include/vout_synchro.h \
118 include/win32_specific.h \
121 HEADERS_include_built = \
122 include/vlc_symbols.h \
125 include/vlc_symbols.h: Makefile $(HEADERS_include)
126 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
128 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
129 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
131 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
132 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
134 # These dependencies are mandatory
135 $(SOURCES): include/vlc_symbols.h
136 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
138 ###############################################################################
139 # Optional libintl - FIXME, bad dependencies
140 ###############################################################################
142 intl/libintl.a: FORCE
143 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
146 LIB_intl = intl/libintl.a
149 ###############################################################################
151 ###############################################################################
154 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
155 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
156 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
157 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
158 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
159 extras/MacOSX/Resources/a52.icns \
160 extras/MacOSX/Resources/aac.icns \
161 extras/MacOSX/Resources/asf.icns \
162 extras/MacOSX/Resources/asx.icns \
163 extras/MacOSX/Resources/avi.icns \
164 extras/MacOSX/Resources/bin.icns \
165 extras/MacOSX/Resources/cue.icns \
166 extras/MacOSX/Resources/dat.icns \
167 extras/MacOSX/Resources/divx.icns \
168 extras/MacOSX/Resources/dv.icns \
169 extras/MacOSX/Resources/generic.icns \
170 extras/MacOSX/Resources/m3u.icns \
171 extras/MacOSX/Resources/mov.icns \
172 extras/MacOSX/Resources/mp3.icns \
173 extras/MacOSX/Resources/mp4.icns \
174 extras/MacOSX/Resources/mpeg.icns \
175 extras/MacOSX/Resources/mpeg1.icns \
176 extras/MacOSX/Resources/mpeg2.icns \
177 extras/MacOSX/Resources/mpeg4.icns \
178 extras/MacOSX/Resources/mpg.icns \
179 extras/MacOSX/Resources/ogg.icns \
180 extras/MacOSX/Resources/ogm.icns \
181 extras/MacOSX/Resources/pls.icns \
182 extras/MacOSX/Resources/srt.icns \
183 extras/MacOSX/Resources/sub.icns \
184 extras/MacOSX/Resources/vlc.icns \
185 extras/MacOSX/Resources/vob.icns \
186 extras/MacOSX/Resources/wma.icns \
187 extras/MacOSX/Resources/wmv.icns \
188 extras/MacOSX/Resources/pause.png \
189 extras/MacOSX/Resources/pause_blue.png \
190 extras/MacOSX/Resources/play.png \
191 extras/MacOSX/Resources/play_blue.png \
192 extras/MacOSX/Resources/stop.png \
193 extras/MacOSX/Resources/stop_blue.png \
194 extras/MacOSX/Resources/display.png \
195 extras/MacOSX/Resources/display_slider.png \
196 extras/MacOSX/Resources/display_track.png \
197 extras/MacOSX/Resources/equalizerdrawer_active.png \
198 extras/MacOSX/Resources/equalizerdrawer_blue.png \
199 extras/MacOSX/Resources/fullscreen_active.png \
200 extras/MacOSX/Resources/fullscreen_blue.png \
201 extras/MacOSX/Resources/next_active.png \
202 extras/MacOSX/Resources/next_blue.png \
203 extras/MacOSX/Resources/playlistdrawer_active.png \
204 extras/MacOSX/Resources/playlistdrawer_blue.png \
205 extras/MacOSX/Resources/previous_active.png \
206 extras/MacOSX/Resources/previous_blue.png \
207 extras/MacOSX/Resources/skip_forward_active.png \
208 extras/MacOSX/Resources/skip_forward_blue.png \
209 extras/MacOSX/Resources/skip_previous_active.png \
210 extras/MacOSX/Resources/skip_previous_blue.png \
211 extras/MacOSX/Resources/volume_high.png \
212 extras/MacOSX/Resources/volume_low.png \
213 extras/MacOSX/Resources/volumeslider_blue.png \
214 extras/MacOSX/Resources/volumeslider_normal.png \
215 extras/MacOSX/Resources/volumetrack.png \
216 extras/MacOSX/Resources/about_bg.png \
217 extras/MacOSX/Resources/vlc.scriptSuite \
218 extras/MacOSX/Resources/README \
219 extras/MacOSX/vlc.pbproj/project.pbxproj \
220 extras/MacOSX/macosx-dmg \
223 ###############################################################################
224 # MS Visual Studio and eMbedded Visual Studio projects
225 ###############################################################################
230 msvc/plugins.dsp.in \
233 msvc/modules_builtin_msvc.h \
240 evc/modules_builtin_evc.h \
244 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
245 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
247 ###############################################################################
249 ###############################################################################
251 bin_SCRIPTS = vlc-config
253 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
255 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
256 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
257 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
258 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
259 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
261 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
262 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
263 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
264 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
267 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
270 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
273 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
276 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
279 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
283 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
288 $(SOURCES_libvlc_beos) \
289 $(SOURCES_libvlc_darwin) \
290 $(SOURCES_libvlc_win32) \
291 $(SOURCES_libvlc_dirent) \
292 $(SOURCES_libvlc_getopt) \
295 SOURCES_libvlc_beos = \
296 src/misc/beos_specific.cpp \
299 SOURCES_libvlc_darwin = \
300 src/misc/darwin_specific.m \
303 SOURCES_libvlc_win32 = \
304 src/misc/win32_specific.c \
307 SOURCES_libvlc_dirent = \
308 src/extras/dirent.c \
309 src/extras/dirent.h \
312 SOURCES_libvlc_getopt = \
313 src/extras/getopt.c \
314 src/extras/getopt.h \
315 src/extras/getopt1.c \
318 SOURCES_libvlc_common = \
321 src/interface/interface.c \
322 src/interface/intf_eject.c \
323 src/playlist/playlist.c \
324 src/playlist/sort.c \
325 src/playlist/loadsave.c \
326 src/playlist/group.c \
327 src/playlist/item.c \
328 src/playlist/item-ext.c \
329 src/playlist/info.c \
332 src/input/control.c \
333 src/input/decoder.c \
337 src/input/input_internal.h \
339 src/input/subtitles.c \
341 src/video_output/video_output.c \
342 src/video_output/vout_pictures.c \
343 src/video_output/vout_pictures.h \
344 src/video_output/video_text.c \
345 src/video_output/video_widgets.c \
346 src/video_output/vout_subpictures.c \
347 src/video_output/vout_synchro.c \
348 src/video_output/vout_intf.c \
349 src/audio_output/common.c \
350 src/audio_output/dec.c \
351 src/audio_output/filters.c \
352 src/audio_output/input.c \
353 src/audio_output/mixer.c \
354 src/audio_output/output.c \
355 src/audio_output/intf.c \
356 src/stream_output/stream_output.c \
357 src/stream_output/announce.c \
358 src/stream_output/sap.c \
366 src/misc/configuration.c \
367 src/misc/iso_lang.c \
368 src/misc/iso-639_def.h \
369 src/misc/messages.c \
371 src/misc/variables.c \
379 $(SOURCES_libvlc_common) \
380 $(OPT_SOURCES_libvlc_beos) \
381 $(OPT_SOURCES_libvlc_darwin) \
382 $(OPT_SOURCES_libvlc_win32) \
383 $(OPT_SOURCES_libvlc_dirent) \
384 $(OPT_SOURCES_libvlc_getopt) \
387 ###############################################################################
389 ###############################################################################
393 vlc_SOURCES = src/vlc.c
395 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
396 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
397 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
399 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
400 # old automake-1.5 bug (automake/279).
401 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
403 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
404 @rm -f $(top_builddir)/vlc$(EXEEXT)
405 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
406 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
407 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
408 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
412 noinst_DATA = vlc-bundle
414 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
415 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
416 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
417 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
418 if test -n "$$i" ; then \
419 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
420 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
423 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
424 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
425 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
426 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
429 for i in $(ALL_LINGUAS); do \
430 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
431 cp "$(top_builddir)/po/$$i.gmo" \
432 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
434 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
437 # Install the modules and the symlinks
439 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
440 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
441 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
443 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
444 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
445 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
448 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
449 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
450 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
453 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
454 rm -f "$(DESTDIR)$(bindir)/$$i" && \
455 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
459 # Create the MacOS X app
460 vlc_app_DATA = VLC.app
461 vlc_appdir = $(bindir)
463 @if test -e "$(top_builddir)/tmp"; then \
464 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
467 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
469 rm -Rf $(top_builddir)/VLC.app
470 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
471 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
472 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
474 mkdir -p $(top_builddir)/tmp/modules/audio_output
475 cp $(srcdir)/modules/audio_output/coreaudio.c \
476 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
477 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
508 cp "$(srcdir)/modules/gui/macosx/$$i" \
509 $(top_builddir)/tmp/modules/gui/macosx; \
511 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
512 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
513 $(top_builddir)/VLC.app
514 rm -Rf $(top_builddir)/tmp
515 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
516 $(INSTALL) $(top_builddir)/vlc \
517 $(top_builddir)/VLC.app/Contents/MacOS/VLC
518 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
519 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
520 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
522 then $(INSTALL) "$$i$(LIBEXT)" \
523 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
525 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
526 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
527 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
528 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
531 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
532 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
533 for i in $(srcdir)/share/http/* ; do \
534 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
536 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
537 for i in $(srcdir)/share/http/vlm/* ; do \
538 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
540 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
541 for i in $(srcdir)/share/http/admin/* ; do \
542 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
544 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
545 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
546 for i in $(ALL_LINGUAS); do \
547 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
548 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
549 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
550 ln -sf ../English.lproj/InfoPlist.strings \
551 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
552 ln -sf ../English.lproj/MainMenu.nib \
553 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
554 ln -sf ../English.lproj/vlc.scriptTerminology \
555 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
557 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
561 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
562 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
563 noinst_share_vlc_win32_rcdir = $(libdir)
564 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
565 $(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 $@
568 ###############################################################################
569 # Building specific source packages
570 ###############################################################################
573 $(remove_distdir_woody)
574 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
575 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
576 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
577 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
578 $(remove_distdir_woody)
580 remove_distdir_woody = \
581 { test ! -d $(PACKAGE)-woody-$(VERSION) \
582 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
583 -exec chmod u+w {} ';' \
584 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
586 ###############################################################################
587 # Building architecture-specific binary packages
588 ###############################################################################
590 # XXX: this rule is probably only useful to you if you have exactly
591 # the same setup as me. Contact sam@zoy.org if you need to use it.
594 # Check that tmp isn't in the way
595 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
596 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
599 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
602 # Copy relevant files
603 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
604 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
605 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
606 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
608 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
609 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
610 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
612 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
613 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
614 if test -n "$$i" ; then \
615 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
616 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
619 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
620 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
622 mkdir $(srcdir)/vlc-${VERSION}/locale
623 for i in $(ALL_LINGUAS); do \
624 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
625 cp "$(srcdir)/po/$${i}.gmo" \
626 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
630 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/fonts
631 for i in $(srcdir)/share/skins2/fonts/*.*; do \
632 cp $$i $(srcdir)/vlc-${VERSION}/skins2/fonts/ || true ; \
634 for i in $(srcdir)/share/skins2/*.*; do \
635 cp $$i $(srcdir)/vlc-${VERSION}/skins2/ || true ; \
638 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
639 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
640 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
641 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
642 cp $(srcdir)/share/http/admin/*.html \
643 $(srcdir)/vlc-${VERSION}/http/admin/ ;
644 cp $(srcdir)/share/http/admin/.access \
645 $(srcdir)/vlc-${VERSION}/http/admin/ ;
646 cp $(srcdir)/share/http/vlm/*.html \
647 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
649 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
651 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
653 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
654 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
655 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
658 package-win32-base-exe:
660 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
661 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
663 package-win32-base-zip:
665 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
667 package-win32-exe: package-win32-base package-win32-base-exe
669 rm -Rf $(srcdir)/vlc-${VERSION}
671 package-win32-zip: package-win32-base package-win32-base-zip
673 rm -Rf $(srcdir)/vlc-${VERSION}
675 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
677 rm -Rf $(srcdir)/vlc-${VERSION}
680 # Check that tmp isn't in the way
681 @if test -e $(srcdir)/tmp; then \
682 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
685 echo "OK." ; mkdir $(srcdir)/tmp ; \
688 # Copy relevant files
689 mkdir -p $(srcdir)/tmp/vlc ;
690 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
691 THANKS NEWS tmp/vlc/ ;
693 # Create debug package
694 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
695 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
696 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
697 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
698 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
699 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
701 # Create normal package
702 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
703 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
704 --strip-debug --strip-unneeded "{}" \; ;
705 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
706 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
707 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
708 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
709 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
712 rm -Rf $(srcdir)/tmp ;
715 # Check that tmp isn't in the way
716 @if test -e "$(top_builddir)/tmp"; then \
717 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
720 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
723 # Copy relevant files
724 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
725 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
728 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
731 rm -Rf $(top_builddir)/tmp
733 package-translations:
734 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
735 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
738 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
741 for i in $(ALL_LINGUAS); do \
742 cp "$(srcdir)/po/$${i}.po" \
743 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
746 cp "$(srcdir)/doc/translations.txt" \
747 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
749 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
750 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
751 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
752 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
753 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
754 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
755 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
756 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
758 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
759 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
761 ###############################################################################
763 ###############################################################################
769 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
770 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
775 @if test ! -f $@; then printf "" > $@; fi
777 ###############################################################################
779 ###############################################################################