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 \
120 include/vout_synchro.h \
121 include/win32_specific.h \
124 HEADERS_include_built = \
125 include/vlc_symbols.h \
128 include/vlc_symbols.h: Makefile $(HEADERS_include)
129 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
131 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
132 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
134 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
135 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
137 # These dependencies are mandatory
138 $(SOURCES): include/vlc_symbols.h
139 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
141 ###############################################################################
142 # Optional libintl - FIXME, bad dependencies
143 ###############################################################################
145 intl/libintl.a: FORCE
146 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
149 LIB_intl = intl/libintl.a
152 ###############################################################################
154 ###############################################################################
157 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
158 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
159 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
160 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
161 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
162 extras/MacOSX/Resources/a52.icns \
163 extras/MacOSX/Resources/aac.icns \
164 extras/MacOSX/Resources/asf.icns \
165 extras/MacOSX/Resources/asx.icns \
166 extras/MacOSX/Resources/avi.icns \
167 extras/MacOSX/Resources/bin.icns \
168 extras/MacOSX/Resources/cue.icns \
169 extras/MacOSX/Resources/dat.icns \
170 extras/MacOSX/Resources/divx.icns \
171 extras/MacOSX/Resources/dv.icns \
172 extras/MacOSX/Resources/generic.icns \
173 extras/MacOSX/Resources/m3u.icns \
174 extras/MacOSX/Resources/mov.icns \
175 extras/MacOSX/Resources/mp3.icns \
176 extras/MacOSX/Resources/mp4.icns \
177 extras/MacOSX/Resources/mpeg.icns \
178 extras/MacOSX/Resources/mpeg1.icns \
179 extras/MacOSX/Resources/mpeg2.icns \
180 extras/MacOSX/Resources/mpeg4.icns \
181 extras/MacOSX/Resources/mpg.icns \
182 extras/MacOSX/Resources/ogg.icns \
183 extras/MacOSX/Resources/ogm.icns \
184 extras/MacOSX/Resources/pls.icns \
185 extras/MacOSX/Resources/srt.icns \
186 extras/MacOSX/Resources/sub.icns \
187 extras/MacOSX/Resources/vlc.icns \
188 extras/MacOSX/Resources/vob.icns \
189 extras/MacOSX/Resources/wma.icns \
190 extras/MacOSX/Resources/wmv.icns \
191 extras/MacOSX/Resources/pause.png \
192 extras/MacOSX/Resources/pause_blue.png \
193 extras/MacOSX/Resources/play.png \
194 extras/MacOSX/Resources/play_blue.png \
195 extras/MacOSX/Resources/stop.png \
196 extras/MacOSX/Resources/stop_blue.png \
197 extras/MacOSX/Resources/display.png \
198 extras/MacOSX/Resources/display_slider.png \
199 extras/MacOSX/Resources/display_track.png \
200 extras/MacOSX/Resources/equalizerdrawer_active.png \
201 extras/MacOSX/Resources/equalizerdrawer_blue.png \
202 extras/MacOSX/Resources/fullscreen_active.png \
203 extras/MacOSX/Resources/fullscreen_blue.png \
204 extras/MacOSX/Resources/next_active.png \
205 extras/MacOSX/Resources/next_blue.png \
206 extras/MacOSX/Resources/playlistdrawer_active.png \
207 extras/MacOSX/Resources/playlistdrawer_blue.png \
208 extras/MacOSX/Resources/previous_active.png \
209 extras/MacOSX/Resources/previous_blue.png \
210 extras/MacOSX/Resources/skip_forward_active.png \
211 extras/MacOSX/Resources/skip_forward_blue.png \
212 extras/MacOSX/Resources/skip_previous_active.png \
213 extras/MacOSX/Resources/skip_previous_blue.png \
214 extras/MacOSX/Resources/volume_high.png \
215 extras/MacOSX/Resources/volume_low.png \
216 extras/MacOSX/Resources/volumeslider_blue.png \
217 extras/MacOSX/Resources/volumeslider_normal.png \
218 extras/MacOSX/Resources/volumetrack.png \
219 extras/MacOSX/Resources/about_bg.png \
220 extras/MacOSX/Resources/vlc.scriptSuite \
221 extras/MacOSX/Resources/README \
222 extras/MacOSX/vlc.pbproj/project.pbxproj \
223 extras/MacOSX/macosx-dmg \
226 ###############################################################################
227 # MS Visual Studio and eMbedded Visual Studio projects
228 ###############################################################################
233 msvc/plugins.dsp.in \
236 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/view.c \
330 src/playlist/item.c \
331 src/playlist/item-ext.c \
332 src/playlist/info.c \
333 src/playlist/services_discovery.c \
336 src/input/control.c \
337 src/input/decoder.c \
341 src/input/input_internal.h \
343 src/input/mem_stream.c \
344 src/input/subtitles.c \
346 src/video_output/video_output.c \
347 src/video_output/vout_pictures.c \
348 src/video_output/vout_pictures.h \
349 src/video_output/video_text.c \
350 src/video_output/video_widgets.c \
351 src/video_output/vout_subpictures.c \
352 src/video_output/vout_synchro.c \
353 src/video_output/vout_intf.c \
354 src/audio_output/common.c \
355 src/audio_output/dec.c \
356 src/audio_output/filters.c \
357 src/audio_output/input.c \
358 src/audio_output/mixer.c \
359 src/audio_output/output.c \
360 src/audio_output/intf.c \
361 src/stream_output/stream_output.c \
362 src/stream_output/announce.c \
363 src/stream_output/sap.c \
372 src/misc/configuration.c \
373 src/misc/iso_lang.c \
374 src/misc/iso-639_def.h \
375 src/misc/messages.c \
377 src/misc/variables.c \
386 $(SOURCES_libvlc_common) \
387 $(OPT_SOURCES_libvlc_beos) \
388 $(OPT_SOURCES_libvlc_darwin) \
389 $(OPT_SOURCES_libvlc_win32) \
390 $(OPT_SOURCES_libvlc_dirent) \
391 $(OPT_SOURCES_libvlc_getopt) \
394 ###############################################################################
396 ###############################################################################
400 vlc_SOURCES = src/vlc.c
402 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
403 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
404 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
406 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
407 # old automake-1.5 bug (automake/279).
408 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
410 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
411 @rm -f $(top_builddir)/vlc$(EXEEXT)
412 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
413 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
414 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
415 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
419 noinst_DATA = vlc-bundle
421 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
422 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
423 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
424 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
425 if test -n "$$i" ; then \
426 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
427 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
430 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
431 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
432 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
433 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
436 for i in $(ALL_LINGUAS); do \
437 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
438 cp "$(top_builddir)/po/$$i.gmo" \
439 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
441 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
444 # Install the modules and the symlinks
446 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
447 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
448 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
450 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
451 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
452 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
455 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
456 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
457 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
460 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
461 rm -f "$(DESTDIR)$(bindir)/$$i" && \
462 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
466 # Create the MacOS X app
467 vlc_app_DATA = VLC.app
468 vlc_appdir = $(bindir)
470 @if test -e "$(top_builddir)/tmp"; then \
471 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
474 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
476 rm -Rf $(top_builddir)/VLC.app
477 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
478 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
479 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
481 mkdir -p $(top_builddir)/tmp/modules/audio_output
482 cp $(srcdir)/modules/audio_output/coreaudio.c \
483 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
484 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
515 cp "$(srcdir)/modules/gui/macosx/$$i" \
516 $(top_builddir)/tmp/modules/gui/macosx; \
518 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
519 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
520 $(top_builddir)/VLC.app
521 rm -Rf $(top_builddir)/tmp
522 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
523 $(INSTALL) $(top_builddir)/vlc \
524 $(top_builddir)/VLC.app/Contents/MacOS/VLC
525 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
526 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
527 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
529 then $(INSTALL) "$$i$(LIBEXT)" \
530 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
532 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
533 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
534 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
535 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
538 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
539 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
540 for i in $(srcdir)/share/http/* ; do \
541 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
543 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
544 for i in $(srcdir)/share/http/vlm/* ; do \
545 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
547 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
548 for i in $(srcdir)/share/http/admin/* ; do \
549 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
551 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
552 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
553 for i in $(ALL_LINGUAS); do \
554 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
555 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
556 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
557 ln -sf ../English.lproj/InfoPlist.strings \
558 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
559 ln -sf ../English.lproj/MainMenu.nib \
560 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
561 ln -sf ../English.lproj/vlc.scriptTerminology \
562 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
564 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
568 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
569 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
570 noinst_share_vlc_win32_rcdir = $(libdir)
571 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
572 $(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 $@
575 ###############################################################################
576 # Building specific source packages
577 ###############################################################################
580 $(remove_distdir_woody)
581 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
582 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
583 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
584 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
585 $(remove_distdir_woody)
587 remove_distdir_woody = \
588 { test ! -d $(PACKAGE)-woody-$(VERSION) \
589 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
590 -exec chmod u+w {} ';' \
591 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
593 ###############################################################################
594 # Building architecture-specific binary packages
595 ###############################################################################
597 # XXX: this rule is probably only useful to you if you have exactly
598 # the same setup as me. Contact sam@zoy.org if you need to use it.
601 # Check that tmp isn't in the way
602 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
603 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
606 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
609 # Copy relevant files
610 cp "$(srcdir)/vlc.win32.nsi" "$(srcdir)/vlc-${VERSION}/"
611 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
612 cp "$(top_builddir)/vlc.exe.manifest" "$(srcdir)/vlc-${VERSION}/"
613 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
615 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
616 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
617 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
619 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
620 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
621 if test -n "$$i" ; then \
622 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
623 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
626 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
627 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
629 mkdir $(srcdir)/vlc-${VERSION}/locale
630 for i in $(ALL_LINGUAS); do \
631 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
632 cp "$(srcdir)/po/$${i}.gmo" \
633 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
637 mkdir -p $(srcdir)/vlc-${VERSION}/skins/fonts
638 for i in $(srcdir)/share/skins2/fonts/*.*; do \
639 cp $$i $(srcdir)/vlc-${VERSION}/skins/fonts/ || true ; \
641 for i in $(srcdir)/share/skins2/*.*; do \
642 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
645 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
646 mkdir -p "$(srcdir)/vlc-${VERSION}/http/vlm"
647 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
648 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
649 cp $(srcdir)/share/http/admin/*.html \
650 $(srcdir)/vlc-${VERSION}/http/admin/ ;
651 cp $(srcdir)/share/http/admin/.access \
652 $(srcdir)/vlc-${VERSION}/http/admin/ ;
653 cp $(srcdir)/share/http/vlm/*.html \
654 $(srcdir)/vlc-${VERSION}/http/vlm/ ;
656 cp $(srcdir)/share/vlc48x48.ico $(srcdir)/vlc-${VERSION}/ ;
658 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
660 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
661 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
662 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
665 package-win32-base-exe:
667 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
668 /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/vlc.win32.nsi
670 package-win32-base-zip:
672 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
674 package-win32-exe: package-win32-base package-win32-base-exe
676 rm -Rf $(srcdir)/vlc-${VERSION}
678 package-win32-zip: package-win32-base package-win32-base-zip
680 rm -Rf $(srcdir)/vlc-${VERSION}
682 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
684 rm -Rf $(srcdir)/vlc-${VERSION}
687 # Check that tmp isn't in the way
688 @if test -e $(srcdir)/tmp; then \
689 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
692 echo "OK." ; mkdir $(srcdir)/tmp ; \
695 # Copy relevant files
696 mkdir -p $(srcdir)/tmp/vlc ;
697 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
698 THANKS NEWS tmp/vlc/ ;
700 # Create debug package
701 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
702 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
703 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
704 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
705 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
706 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
708 # Create normal package
709 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
710 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
711 --strip-debug --strip-unneeded "{}" \; ;
712 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
713 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
714 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
715 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
716 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
719 rm -Rf $(srcdir)/tmp ;
722 # Check that tmp isn't in the way
723 @if test -e "$(top_builddir)/tmp"; then \
724 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
727 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
730 # Copy relevant files
731 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
732 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
735 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
738 rm -Rf $(top_builddir)/tmp
740 package-translations:
741 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
742 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
745 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
748 for i in $(ALL_LINGUAS); do \
749 cp "$(srcdir)/po/$${i}.po" \
750 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
753 cp "$(srcdir)/doc/translations.txt" \
754 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
756 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
757 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
758 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
759 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
760 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
761 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
762 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
763 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
765 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
766 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
768 ###############################################################################
770 ###############################################################################
776 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
777 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
782 @if test ! -f $@; then printf "" > $@; fi
784 ###############################################################################
786 ###############################################################################