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 \
105 include/vlc_input.h \
106 include/vlc_interface.h \
108 include/vlc_messages.h \
110 include/vlc_objects.h \
111 include/vlc_playlist.h \
113 include/vlc_stream.h \
114 include/vlc_threads_funcs.h \
115 include/vlc_threads.h \
116 include/vlc_video.h \
119 include/vout_synchro.h \
120 include/win32_specific.h \
123 HEADERS_include_built = \
124 include/vlc_symbols.h \
127 include/vlc_symbols.h: Makefile $(HEADERS_include)
128 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
130 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
131 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
133 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
134 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
136 # These dependencies are mandatory
137 $(SOURCES): include/vlc_symbols.h
138 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
140 ###############################################################################
141 # Optional libintl - FIXME, bad dependencies
142 ###############################################################################
144 intl/libintl.a: FORCE
145 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
148 LIB_intl = intl/libintl.a
151 ###############################################################################
153 ###############################################################################
156 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
157 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
158 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
159 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
160 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
161 extras/MacOSX/Resources/a52.icns \
162 extras/MacOSX/Resources/aac.icns \
163 extras/MacOSX/Resources/asf.icns \
164 extras/MacOSX/Resources/asx.icns \
165 extras/MacOSX/Resources/avi.icns \
166 extras/MacOSX/Resources/bin.icns \
167 extras/MacOSX/Resources/cue.icns \
168 extras/MacOSX/Resources/dat.icns \
169 extras/MacOSX/Resources/divx.icns \
170 extras/MacOSX/Resources/dv.icns \
171 extras/MacOSX/Resources/generic.icns \
172 extras/MacOSX/Resources/m3u.icns \
173 extras/MacOSX/Resources/mov.icns \
174 extras/MacOSX/Resources/mp3.icns \
175 extras/MacOSX/Resources/mp4.icns \
176 extras/MacOSX/Resources/mpeg.icns \
177 extras/MacOSX/Resources/mpeg1.icns \
178 extras/MacOSX/Resources/mpeg2.icns \
179 extras/MacOSX/Resources/mpeg4.icns \
180 extras/MacOSX/Resources/mpg.icns \
181 extras/MacOSX/Resources/ogg.icns \
182 extras/MacOSX/Resources/ogm.icns \
183 extras/MacOSX/Resources/pls.icns \
184 extras/MacOSX/Resources/srt.icns \
185 extras/MacOSX/Resources/sub.icns \
186 extras/MacOSX/Resources/vlc.icns \
187 extras/MacOSX/Resources/vob.icns \
188 extras/MacOSX/Resources/wma.icns \
189 extras/MacOSX/Resources/wmv.icns \
190 extras/MacOSX/Resources/pause.png \
191 extras/MacOSX/Resources/pause_blue.png \
192 extras/MacOSX/Resources/play.png \
193 extras/MacOSX/Resources/play_blue.png \
194 extras/MacOSX/Resources/stop.png \
195 extras/MacOSX/Resources/stop_blue.png \
196 extras/MacOSX/Resources/display.png \
197 extras/MacOSX/Resources/display_slider.png \
198 extras/MacOSX/Resources/display_track.png \
199 extras/MacOSX/Resources/equalizerdrawer_active.png \
200 extras/MacOSX/Resources/equalizerdrawer_blue.png \
201 extras/MacOSX/Resources/fullscreen_active.png \
202 extras/MacOSX/Resources/fullscreen_blue.png \
203 extras/MacOSX/Resources/next_active.png \
204 extras/MacOSX/Resources/next_blue.png \
205 extras/MacOSX/Resources/playlistdrawer_active.png \
206 extras/MacOSX/Resources/playlistdrawer_blue.png \
207 extras/MacOSX/Resources/previous_active.png \
208 extras/MacOSX/Resources/previous_blue.png \
209 extras/MacOSX/Resources/skip_forward_active.png \
210 extras/MacOSX/Resources/skip_forward_blue.png \
211 extras/MacOSX/Resources/skip_previous_active.png \
212 extras/MacOSX/Resources/skip_previous_blue.png \
213 extras/MacOSX/Resources/volume_high.png \
214 extras/MacOSX/Resources/volume_low.png \
215 extras/MacOSX/Resources/volumeslider_blue.png \
216 extras/MacOSX/Resources/volumeslider_normal.png \
217 extras/MacOSX/Resources/volumetrack.png \
218 extras/MacOSX/Resources/about_bg.png \
219 extras/MacOSX/Resources/vlc.scriptSuite \
220 extras/MacOSX/Resources/README \
221 extras/MacOSX/vlc.pbproj/project.pbxproj \
222 extras/MacOSX/macosx-dmg \
225 ###############################################################################
226 # MS Visual Studio and eMbedded Visual Studio projects
227 ###############################################################################
232 msvc/plugins.dsp.in \
235 msvc/modules_builtin_msvc.h \
243 evc/modules_builtin_evc.h \
247 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
248 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
250 ###############################################################################
252 ###############################################################################
254 bin_SCRIPTS = vlc-config
256 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
258 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
259 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
260 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
261 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
262 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
264 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
265 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
266 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
267 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
270 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
273 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
276 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
279 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
282 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
286 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
291 $(SOURCES_libvlc_beos) \
292 $(SOURCES_libvlc_darwin) \
293 $(SOURCES_libvlc_win32) \
294 $(SOURCES_libvlc_dirent) \
295 $(SOURCES_libvlc_getopt) \
298 SOURCES_libvlc_beos = \
299 src/misc/beos_specific.cpp \
302 SOURCES_libvlc_darwin = \
303 src/misc/darwin_specific.m \
306 SOURCES_libvlc_win32 = \
307 src/misc/win32_specific.c \
310 SOURCES_libvlc_dirent = \
311 src/extras/dirent.c \
312 src/extras/dirent.h \
315 SOURCES_libvlc_getopt = \
316 src/extras/getopt.c \
317 src/extras/getopt.h \
318 src/extras/getopt1.c \
321 SOURCES_libvlc_common = \
324 src/interface/interface.c \
325 src/interface/intf_eject.c \
326 src/playlist/playlist.c \
327 src/playlist/sort.c \
328 src/playlist/loadsave.c \
329 src/playlist/group.c \
330 src/playlist/item.c \
331 src/playlist/item-ext.c \
332 src/playlist/info.c \
335 src/input/control.c \
336 src/input/decoder.c \
340 src/input/input_internal.h \
342 src/input/subtitles.c \
344 src/video_output/video_output.c \
345 src/video_output/vout_pictures.c \
346 src/video_output/vout_pictures.h \
347 src/video_output/video_text.c \
348 src/video_output/video_widgets.c \
349 src/video_output/vout_subpictures.c \
350 src/video_output/vout_synchro.c \
351 src/video_output/vout_intf.c \
352 src/audio_output/common.c \
353 src/audio_output/dec.c \
354 src/audio_output/filters.c \
355 src/audio_output/input.c \
356 src/audio_output/mixer.c \
357 src/audio_output/output.c \
358 src/audio_output/intf.c \
359 src/stream_output/stream_output.c \
360 src/stream_output/announce.c \
361 src/stream_output/sap.c \
369 src/misc/configuration.c \
370 src/misc/iso_lang.c \
371 src/misc/iso-639_def.h \
372 src/misc/messages.c \
374 src/misc/variables.c \
382 $(SOURCES_libvlc_common) \
383 $(OPT_SOURCES_libvlc_beos) \
384 $(OPT_SOURCES_libvlc_darwin) \
385 $(OPT_SOURCES_libvlc_win32) \
386 $(OPT_SOURCES_libvlc_dirent) \
387 $(OPT_SOURCES_libvlc_getopt) \
390 ###############################################################################
392 ###############################################################################
396 vlc_SOURCES = src/vlc.c
398 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
399 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
400 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
402 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
403 # old automake-1.5 bug (automake/279).
404 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
406 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
407 @rm -f $(top_builddir)/vlc$(EXEEXT)
408 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
409 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
410 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
411 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
415 noinst_DATA = vlc-bundle
417 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
418 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
419 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
420 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
421 if test -n "$$i" ; then \
422 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
423 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
426 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
427 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
428 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
429 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
432 for i in $(ALL_LINGUAS); do \
433 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
434 cp "$(top_builddir)/po/$$i.gmo" \
435 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
437 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
440 # Install the modules and the symlinks
442 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
443 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
444 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
446 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
447 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
448 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
451 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
452 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
453 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
456 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
457 rm -f "$(DESTDIR)$(bindir)/$$i" && \
458 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
462 # Create the MacOS X app
463 vlc_app_DATA = VLC.app
464 vlc_appdir = $(bindir)
466 @if test -e "$(top_builddir)/tmp"; then \
467 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
470 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
472 rm -Rf $(top_builddir)/VLC.app
473 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
474 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
475 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
477 mkdir -p $(top_builddir)/tmp/modules/audio_output
478 cp $(srcdir)/modules/audio_output/coreaudio.c \
479 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
480 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
511 cp "$(srcdir)/modules/gui/macosx/$$i" \
512 $(top_builddir)/tmp/modules/gui/macosx; \
514 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
515 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
516 $(top_builddir)/VLC.app
517 rm -Rf $(top_builddir)/tmp
518 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
519 $(INSTALL) $(top_builddir)/vlc \
520 $(top_builddir)/VLC.app/Contents/MacOS/VLC
521 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
522 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
523 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
525 then $(INSTALL) "$$i$(LIBEXT)" \
526 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
528 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
529 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
530 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
531 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
534 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
535 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
536 for i in $(srcdir)/share/http/* ; do \
537 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
539 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
540 for i in $(srcdir)/share/http/vlm/* ; do \
541 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
543 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
544 for i in $(srcdir)/share/http/admin/* ; do \
545 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
547 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
548 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
549 for i in $(ALL_LINGUAS); do \
550 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
551 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
552 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
553 ln -sf ../English.lproj/InfoPlist.strings \
554 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
555 ln -sf ../English.lproj/MainMenu.nib \
556 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
557 ln -sf ../English.lproj/vlc.scriptTerminology \
558 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
560 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
564 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
565 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
566 noinst_share_vlc_win32_rcdir = $(libdir)
567 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
568 $(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 $@
571 ###############################################################################
572 # Building specific source packages
573 ###############################################################################
576 $(remove_distdir_woody)
577 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
578 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
579 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
580 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
581 $(remove_distdir_woody)
583 remove_distdir_woody = \
584 { test ! -d $(PACKAGE)-woody-$(VERSION) \
585 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
586 -exec chmod u+w {} ';' \
587 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
589 ###############################################################################
590 # Building architecture-specific binary packages
591 ###############################################################################
593 # XXX: this rule is probably only useful to you if you have exactly
594 # the same setup as me. Contact sam@zoy.org if you need to use it.
597 # Check that tmp isn't in the way
598 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
599 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
602 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
605 # Copy relevant files
606 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
607 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
608 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
609 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
611 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
612 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
613 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
615 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
616 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
617 if test -n "$$i" ; then \
618 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
619 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
622 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
623 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
625 mkdir $(srcdir)/vlc-${VERSION}/locale
626 for i in $(ALL_LINGUAS); do \
627 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
628 cp "$(srcdir)/po/$${i}.gmo" \
629 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
633 mkdir -p $(srcdir)/vlc-${VERSION}/skins/fonts
634 for i in $(srcdir)/share/skins2/fonts/*.*; do \
635 cp $$i $(srcdir)/vlc-${VERSION}/skins/fonts/ || true ; \
637 for i in $(srcdir)/share/skins2/*.*; do \
638 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
641 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
642 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
643 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
644 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
645 cp $(srcdir)/share/http/admin/*.html \
646 $(srcdir)/vlc-${VERSION}/http/admin/ ;
647 cp $(srcdir)/share/http/admin/.access \
648 $(srcdir)/vlc-${VERSION}/http/admin/ ;
649 cp $(srcdir)/share/http/vlm/*.html \
650 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
652 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
654 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
656 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
657 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
658 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
661 package-win32-base-exe:
663 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
664 /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
666 package-win32-base-zip:
668 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
670 package-win32-exe: package-win32-base package-win32-base-exe
672 rm -Rf $(srcdir)/vlc-${VERSION}
674 package-win32-zip: package-win32-base package-win32-base-zip
676 rm -Rf $(srcdir)/vlc-${VERSION}
678 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
680 rm -Rf $(srcdir)/vlc-${VERSION}
683 # Check that tmp isn't in the way
684 @if test -e $(srcdir)/tmp; then \
685 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
688 echo "OK." ; mkdir $(srcdir)/tmp ; \
691 # Copy relevant files
692 mkdir -p $(srcdir)/tmp/vlc ;
693 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
694 THANKS NEWS tmp/vlc/ ;
696 # Create debug package
697 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
698 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
699 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
700 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
701 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
702 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
704 # Create normal package
705 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
706 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
707 --strip-debug --strip-unneeded "{}" \; ;
708 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
709 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
710 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
711 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
712 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
715 rm -Rf $(srcdir)/tmp ;
718 # Check that tmp isn't in the way
719 @if test -e "$(top_builddir)/tmp"; then \
720 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
723 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
726 # Copy relevant files
727 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
728 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
731 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
734 rm -Rf $(top_builddir)/tmp
736 package-translations:
737 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
738 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
741 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
744 for i in $(ALL_LINGUAS); do \
745 cp "$(srcdir)/po/$${i}.po" \
746 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
749 cp "$(srcdir)/doc/translations.txt" \
750 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
752 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
753 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
754 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
755 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
756 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
757 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
758 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
759 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
761 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
762 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
764 ###############################################################################
766 ###############################################################################
772 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
773 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
778 @if test ! -f $@; then printf "" > $@; fi
780 ###############################################################################
782 ###############################################################################