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 \
102 include/vlc_config_cat.h \
103 include/vlc_httpd.h \
105 include/vlc_image.h \
106 include/vlc_input.h \
107 include/vlc_interface.h \
109 include/vlc_messages.h \
111 include/vlc_objects.h \
112 include/vlc_playlist.h \
114 include/vlc_stream.h \
115 include/vlc_threads_funcs.h \
116 include/vlc_threads.h \
117 include/vlc_video.h \
121 include/vout_synchro.h \
122 include/win32_specific.h \
125 HEADERS_include_built = \
126 include/vlc_symbols.h \
129 include/vlc_symbols.h: Makefile $(HEADERS_include)
130 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
132 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
133 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
135 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
136 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
138 # These dependencies are mandatory
139 $(SOURCES): include/vlc_symbols.h
140 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
142 ###############################################################################
143 # Optional libintl - FIXME, bad dependencies
144 ###############################################################################
146 intl/libintl.a: FORCE
147 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
150 LIB_intl = intl/libintl.a
153 ###############################################################################
155 ###############################################################################
158 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
159 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
160 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
161 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
162 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
163 extras/MacOSX/Resources/a52.icns \
164 extras/MacOSX/Resources/aac.icns \
165 extras/MacOSX/Resources/asf.icns \
166 extras/MacOSX/Resources/asx.icns \
167 extras/MacOSX/Resources/avi.icns \
168 extras/MacOSX/Resources/bin.icns \
169 extras/MacOSX/Resources/cue.icns \
170 extras/MacOSX/Resources/dat.icns \
171 extras/MacOSX/Resources/divx.icns \
172 extras/MacOSX/Resources/dv.icns \
173 extras/MacOSX/Resources/generic.icns \
174 extras/MacOSX/Resources/m3u.icns \
175 extras/MacOSX/Resources/mov.icns \
176 extras/MacOSX/Resources/mp3.icns \
177 extras/MacOSX/Resources/mp4.icns \
178 extras/MacOSX/Resources/mpeg.icns \
179 extras/MacOSX/Resources/mpeg1.icns \
180 extras/MacOSX/Resources/mpeg2.icns \
181 extras/MacOSX/Resources/mpeg4.icns \
182 extras/MacOSX/Resources/mpg.icns \
183 extras/MacOSX/Resources/ogg.icns \
184 extras/MacOSX/Resources/ogm.icns \
185 extras/MacOSX/Resources/pls.icns \
186 extras/MacOSX/Resources/srt.icns \
187 extras/MacOSX/Resources/sub.icns \
188 extras/MacOSX/Resources/vlc.icns \
189 extras/MacOSX/Resources/vob.icns \
190 extras/MacOSX/Resources/wma.icns \
191 extras/MacOSX/Resources/wmv.icns \
192 extras/MacOSX/Resources/pause.png \
193 extras/MacOSX/Resources/pause_blue.png \
194 extras/MacOSX/Resources/play.png \
195 extras/MacOSX/Resources/play_blue.png \
196 extras/MacOSX/Resources/stop.png \
197 extras/MacOSX/Resources/stop_blue.png \
198 extras/MacOSX/Resources/display.png \
199 extras/MacOSX/Resources/display_slider.png \
200 extras/MacOSX/Resources/display_track.png \
201 extras/MacOSX/Resources/equalizerdrawer_active.png \
202 extras/MacOSX/Resources/equalizerdrawer_blue.png \
203 extras/MacOSX/Resources/fullscreen_active.png \
204 extras/MacOSX/Resources/fullscreen_blue.png \
205 extras/MacOSX/Resources/next_active.png \
206 extras/MacOSX/Resources/next_blue.png \
207 extras/MacOSX/Resources/playlistdrawer_active.png \
208 extras/MacOSX/Resources/playlistdrawer_blue.png \
209 extras/MacOSX/Resources/previous_active.png \
210 extras/MacOSX/Resources/previous_blue.png \
211 extras/MacOSX/Resources/skip_forward_active.png \
212 extras/MacOSX/Resources/skip_forward_blue.png \
213 extras/MacOSX/Resources/skip_previous_active.png \
214 extras/MacOSX/Resources/skip_previous_blue.png \
215 extras/MacOSX/Resources/volume_high.png \
216 extras/MacOSX/Resources/volume_low.png \
217 extras/MacOSX/Resources/volumeslider_blue.png \
218 extras/MacOSX/Resources/volumeslider_normal.png \
219 extras/MacOSX/Resources/volumetrack.png \
220 extras/MacOSX/Resources/about_bg.png \
221 extras/MacOSX/Resources/vlc.scriptSuite \
222 extras/MacOSX/Resources/README \
223 extras/MacOSX/vlc.pbproj/project.pbxproj \
224 extras/MacOSX/macosx-dmg \
227 ###############################################################################
228 # MS Visual Studio and eMbedded Visual Studio projects
229 ###############################################################################
234 msvc/plugins.dsp.in \
237 msvc/modules_builtin_msvc.h \
244 evc/modules_builtin_evc.h \
248 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
249 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
251 ###############################################################################
253 ###############################################################################
255 bin_SCRIPTS = vlc-config
257 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
259 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
260 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
261 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
262 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
263 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
265 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
266 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
267 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
268 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
271 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
274 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
277 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
280 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
283 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
287 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
292 $(SOURCES_libvlc_beos) \
293 $(SOURCES_libvlc_darwin) \
294 $(SOURCES_libvlc_win32) \
295 $(SOURCES_libvlc_dirent) \
296 $(SOURCES_libvlc_getopt) \
299 SOURCES_libvlc_beos = \
300 src/misc/beos_specific.cpp \
303 SOURCES_libvlc_darwin = \
304 src/misc/darwin_specific.m \
307 SOURCES_libvlc_win32 = \
308 src/misc/win32_specific.c \
311 SOURCES_libvlc_dirent = \
312 src/extras/dirent.c \
313 src/extras/dirent.h \
316 SOURCES_libvlc_getopt = \
317 src/extras/getopt.c \
318 src/extras/getopt.h \
319 src/extras/getopt1.c \
322 SOURCES_libvlc_common = \
325 src/interface/interface.c \
326 src/interface/intf_eject.c \
327 src/playlist/playlist.c \
328 src/playlist/sort.c \
329 src/playlist/loadsave.c \
330 src/playlist/view.c \
331 src/playlist/item.c \
332 src/playlist/item-ext.c \
333 src/playlist/info.c \
334 src/playlist/services_discovery.c \
337 src/input/control.c \
338 src/input/decoder.c \
342 src/input/input_internal.h \
344 src/input/mem_stream.c \
345 src/input/subtitles.c \
347 src/video_output/video_output.c \
348 src/video_output/vout_pictures.c \
349 src/video_output/vout_pictures.h \
350 src/video_output/video_text.c \
351 src/video_output/video_widgets.c \
352 src/video_output/vout_subpictures.c \
353 src/video_output/vout_synchro.c \
354 src/video_output/vout_intf.c \
355 src/audio_output/common.c \
356 src/audio_output/dec.c \
357 src/audio_output/filters.c \
358 src/audio_output/input.c \
359 src/audio_output/mixer.c \
360 src/audio_output/output.c \
361 src/audio_output/intf.c \
362 src/stream_output/stream_output.c \
363 src/stream_output/announce.c \
364 src/stream_output/sap.c \
373 src/misc/configuration.c \
375 src/misc/iso_lang.c \
376 src/misc/iso-639_def.h \
377 src/misc/messages.c \
379 src/misc/variables.c \
388 $(SOURCES_libvlc_common) \
389 $(OPT_SOURCES_libvlc_beos) \
390 $(OPT_SOURCES_libvlc_darwin) \
391 $(OPT_SOURCES_libvlc_win32) \
392 $(OPT_SOURCES_libvlc_dirent) \
393 $(OPT_SOURCES_libvlc_getopt) \
396 ###############################################################################
398 ###############################################################################
402 vlc_SOURCES = src/vlc.c
404 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
405 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
406 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
408 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
409 # old automake-1.5 bug (automake/279).
410 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
412 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
413 @rm -f $(top_builddir)/vlc$(EXEEXT)
414 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
415 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
416 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
417 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
421 noinst_DATA = vlc-bundle
423 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
424 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
425 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
426 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
427 if test -n "$$i" ; then \
428 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
429 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
432 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
433 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
434 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
435 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
438 for i in $(ALL_LINGUAS); do \
439 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
440 cp "$(top_builddir)/po/$$i.gmo" \
441 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
443 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
446 # Install the modules and the symlinks
448 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
449 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
450 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
452 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
453 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
454 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
457 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
458 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
459 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
462 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
463 rm -f "$(DESTDIR)$(bindir)/$$i" && \
464 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
468 # Create the MacOS X app
469 vlc_app_DATA = VLC.app
470 vlc_appdir = $(bindir)
472 @if test -e "$(top_builddir)/tmp"; then \
473 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
476 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
478 rm -Rf $(top_builddir)/VLC.app
479 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
480 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
481 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
483 mkdir -p $(top_builddir)/tmp/modules/audio_output
484 cp $(srcdir)/modules/audio_output/coreaudio.c \
485 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
486 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
517 cp "$(srcdir)/modules/gui/macosx/$$i" \
518 $(top_builddir)/tmp/modules/gui/macosx; \
520 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
521 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
522 $(top_builddir)/VLC.app
523 rm -Rf $(top_builddir)/tmp
524 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
525 $(INSTALL) $(top_builddir)/vlc \
526 $(top_builddir)/VLC.app/Contents/MacOS/VLC
527 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
528 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
529 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
531 then $(INSTALL) "$$i$(LIBEXT)" \
532 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
534 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
535 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
536 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
537 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
540 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
541 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
542 for i in $(srcdir)/share/http/* ; do \
543 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
545 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
546 for i in $(srcdir)/share/http/vlm/* ; do \
547 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
549 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
550 for i in $(srcdir)/share/http/admin/* ; do \
551 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
553 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
554 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
555 for i in $(ALL_LINGUAS); do \
556 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
557 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
558 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
559 ln -sf ../English.lproj/InfoPlist.strings \
560 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
561 ln -sf ../English.lproj/MainMenu.nib \
562 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
563 ln -sf ../English.lproj/vlc.scriptTerminology \
564 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
566 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
570 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
571 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
572 noinst_share_vlc_win32_rcdir = $(libdir)
573 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
574 $(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 $@
577 ###############################################################################
578 # Building specific source packages
579 ###############################################################################
582 $(remove_distdir_woody)
583 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
584 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
585 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
586 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
587 $(remove_distdir_woody)
589 remove_distdir_woody = \
590 { test ! -d $(PACKAGE)-woody-$(VERSION) \
591 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
592 -exec chmod u+w {} ';' \
593 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
595 ###############################################################################
596 # Building architecture-specific binary packages
597 ###############################################################################
599 # XXX: this rule is probably only useful to you if you have exactly
600 # the same setup as me. Contact sam@zoy.org if you need to use it.
603 # Check that tmp isn't in the way
604 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
605 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
608 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
611 # Copy relevant files
612 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
613 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
614 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
615 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
617 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
618 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
619 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
621 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
622 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
623 if test -n "$$i" ; then \
624 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
625 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
628 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
629 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
631 mkdir $(srcdir)/vlc-${VERSION}/locale
632 for i in $(ALL_LINGUAS); do \
633 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
634 cp "$(srcdir)/po/$${i}.gmo" \
635 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
639 mkdir -p $(srcdir)/vlc-${VERSION}/skins/fonts
640 for i in $(srcdir)/share/skins2/fonts/*.*; do \
641 cp $$i $(srcdir)/vlc-${VERSION}/skins/fonts/ || true ; \
643 for i in $(srcdir)/share/skins2/*.*; do \
644 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
647 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
648 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
649 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
650 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
651 cp $(srcdir)/share/http/admin/*.html \
652 $(srcdir)/vlc-${VERSION}/http/admin/ ;
653 cp $(srcdir)/share/http/admin/.access \
654 $(srcdir)/vlc-${VERSION}/http/admin/ ;
655 cp $(srcdir)/share/http/vlm/*.html \
656 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
658 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
660 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
662 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
663 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
664 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
667 package-win32-base-exe:
669 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
670 /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
672 package-win32-base-zip:
674 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
676 package-win32-exe: package-win32-base package-win32-base-exe
678 rm -Rf $(srcdir)/vlc-${VERSION}
680 package-win32-zip: package-win32-base package-win32-base-zip
682 rm -Rf $(srcdir)/vlc-${VERSION}
684 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
686 rm -Rf $(srcdir)/vlc-${VERSION}
689 # Check that tmp isn't in the way
690 @if test -e $(srcdir)/tmp; then \
691 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
694 echo "OK." ; mkdir $(srcdir)/tmp ; \
697 # Copy relevant files
698 mkdir -p $(srcdir)/tmp/vlc ;
699 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
700 THANKS NEWS tmp/vlc/ ;
702 # Create debug package
703 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
704 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
705 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
706 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
707 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
708 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
710 # Create normal package
711 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
712 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
713 --strip-debug --strip-unneeded "{}" \; ;
714 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
715 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
716 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
717 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
718 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
721 rm -Rf $(srcdir)/tmp ;
724 # Check that tmp isn't in the way
725 @if test -e "$(top_builddir)/tmp"; then \
726 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
729 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
732 # Copy relevant files
733 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
734 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
737 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
740 rm -Rf $(top_builddir)/tmp
742 package-translations:
743 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
744 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
747 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
750 for i in $(ALL_LINGUAS); do \
751 cp "$(srcdir)/po/$${i}.po" \
752 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
755 cp "$(srcdir)/doc/translations.txt" \
756 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
758 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
759 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
760 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
761 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
762 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
763 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
764 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
765 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
767 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
768 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
770 ###############################################################################
772 ###############################################################################
778 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
779 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
784 @if test ! -f $@; then printf "" > $@; fi
786 ###############################################################################
788 ###############################################################################