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 activex 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/About.nib/classes.nib \
162 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
163 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
164 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
165 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
166 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
167 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
168 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
169 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
170 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
171 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
172 extras/MacOSX/Resources/a52.icns \
173 extras/MacOSX/Resources/aac.icns \
174 extras/MacOSX/Resources/asf.icns \
175 extras/MacOSX/Resources/asx.icns \
176 extras/MacOSX/Resources/avi.icns \
177 extras/MacOSX/Resources/bin.icns \
178 extras/MacOSX/Resources/cue.icns \
179 extras/MacOSX/Resources/dat.icns \
180 extras/MacOSX/Resources/divx.icns \
181 extras/MacOSX/Resources/dv.icns \
182 extras/MacOSX/Resources/generic.icns \
183 extras/MacOSX/Resources/m3u.icns \
184 extras/MacOSX/Resources/mov.icns \
185 extras/MacOSX/Resources/mp3.icns \
186 extras/MacOSX/Resources/mp4.icns \
187 extras/MacOSX/Resources/mpeg.icns \
188 extras/MacOSX/Resources/mpeg1.icns \
189 extras/MacOSX/Resources/mpeg2.icns \
190 extras/MacOSX/Resources/mpeg4.icns \
191 extras/MacOSX/Resources/mpg.icns \
192 extras/MacOSX/Resources/ogg.icns \
193 extras/MacOSX/Resources/ogm.icns \
194 extras/MacOSX/Resources/pls.icns \
195 extras/MacOSX/Resources/srt.icns \
196 extras/MacOSX/Resources/sub.icns \
197 extras/MacOSX/Resources/vlc.icns \
198 extras/MacOSX/Resources/vob.icns \
199 extras/MacOSX/Resources/wma.icns \
200 extras/MacOSX/Resources/wmv.icns \
201 extras/MacOSX/Resources/pause.png \
202 extras/MacOSX/Resources/pause_blue.png \
203 extras/MacOSX/Resources/play.png \
204 extras/MacOSX/Resources/play_blue.png \
205 extras/MacOSX/Resources/stop.png \
206 extras/MacOSX/Resources/stop_blue.png \
207 extras/MacOSX/Resources/display.png \
208 extras/MacOSX/Resources/display_slider.png \
209 extras/MacOSX/Resources/display_track.png \
210 extras/MacOSX/Resources/equalizerdrawer_active.png \
211 extras/MacOSX/Resources/equalizerdrawer_blue.png \
212 extras/MacOSX/Resources/fullscreen_active.png \
213 extras/MacOSX/Resources/fullscreen_blue.png \
214 extras/MacOSX/Resources/next_active.png \
215 extras/MacOSX/Resources/next_blue.png \
216 extras/MacOSX/Resources/playlistdrawer_active.png \
217 extras/MacOSX/Resources/playlistdrawer_blue.png \
218 extras/MacOSX/Resources/previous_active.png \
219 extras/MacOSX/Resources/previous_blue.png \
220 extras/MacOSX/Resources/skip_forward_active.png \
221 extras/MacOSX/Resources/skip_forward_blue.png \
222 extras/MacOSX/Resources/skip_previous_active.png \
223 extras/MacOSX/Resources/skip_previous_blue.png \
224 extras/MacOSX/Resources/volume_high.png \
225 extras/MacOSX/Resources/volume_low.png \
226 extras/MacOSX/Resources/volumeslider_blue.png \
227 extras/MacOSX/Resources/volumeslider_normal.png \
228 extras/MacOSX/Resources/volumetrack.png \
229 extras/MacOSX/Resources/about_bg.png \
230 extras/MacOSX/Resources/vlc.scriptSuite \
231 extras/MacOSX/Resources/README \
232 extras/MacOSX/vlc.pbproj/project.pbxproj \
233 extras/MacOSX/macosx-dmg \
236 ###############################################################################
237 # MS Visual Studio and eMbedded Visual Studio projects
238 ###############################################################################
243 msvc/plugins.dsp.in \
246 msvc/modules_builtin_msvc.h \
253 evc/modules_builtin_evc.h \
257 cp $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
258 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
259 distdir=$(distdir) srcdir=$(srcdir) $(srcdir)/toolbox --dist-contrib
261 ###############################################################################
263 ###############################################################################
265 bin_SCRIPTS = vlc-config
266 CLEANFILES = $(bin_SCRIPTS)
267 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
268 cd $(top_builddir) && $(SHELL) ./config.status --file=$@
269 -cd $(top_builddir) && chmod 0755 $@
271 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
273 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
274 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
275 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
276 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
277 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
279 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
280 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
281 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
282 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
285 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
288 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
291 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
294 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
297 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
301 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
306 $(SOURCES_libvlc_beos) \
307 $(SOURCES_libvlc_darwin) \
308 $(SOURCES_libvlc_win32) \
309 $(SOURCES_libvlc_dirent) \
310 $(SOURCES_libvlc_getopt) \
313 SOURCES_libvlc_beos = \
314 src/misc/beos_specific.cpp \
317 SOURCES_libvlc_darwin = \
318 src/misc/darwin_specific.m \
321 SOURCES_libvlc_win32 = \
322 src/misc/win32_specific.c \
325 SOURCES_libvlc_dirent = \
326 src/extras/dirent.c \
327 src/extras/dirent.h \
330 SOURCES_libvlc_getopt = \
331 src/extras/getopt.c \
332 src/extras/getopt.h \
333 src/extras/getopt1.c \
336 SOURCES_libvlc_common = \
339 src/interface/interface.c \
340 src/interface/intf_eject.c \
341 src/playlist/playlist.c \
342 src/playlist/sort.c \
343 src/playlist/loadsave.c \
344 src/playlist/view.c \
345 src/playlist/item.c \
346 src/playlist/item-ext.c \
347 src/playlist/services_discovery.c \
350 src/input/control.c \
351 src/input/decoder.c \
355 src/input/input_internal.h \
357 src/input/mem_stream.c \
358 src/input/subtitles.c \
360 src/video_output/video_output.c \
361 src/video_output/vout_pictures.c \
362 src/video_output/vout_pictures.h \
363 src/video_output/video_text.c \
364 src/video_output/video_widgets.c \
365 src/video_output/vout_subpictures.c \
366 src/video_output/vout_synchro.c \
367 src/video_output/vout_intf.c \
368 src/audio_output/common.c \
369 src/audio_output/dec.c \
370 src/audio_output/filters.c \
371 src/audio_output/input.c \
372 src/audio_output/mixer.c \
373 src/audio_output/output.c \
374 src/audio_output/intf.c \
375 src/stream_output/stream_output.c \
376 src/stream_output/announce.c \
377 src/stream_output/sap.c \
386 src/misc/configuration.c \
388 src/misc/iso_lang.c \
389 src/misc/iso-639_def.h \
390 src/misc/messages.c \
392 src/misc/variables.c \
401 $(SOURCES_libvlc_common) \
402 $(OPT_SOURCES_libvlc_beos) \
403 $(OPT_SOURCES_libvlc_darwin) \
404 $(OPT_SOURCES_libvlc_win32) \
405 $(OPT_SOURCES_libvlc_dirent) \
406 $(OPT_SOURCES_libvlc_getopt) \
409 ###############################################################################
411 ###############################################################################
415 vlc_SOURCES = src/vlc.c
417 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
418 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
419 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
421 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
422 # old automake-1.5 bug (automake/279).
423 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
425 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
426 @rm -f $(top_builddir)/vlc$(EXEEXT)
427 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
428 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
429 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
430 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
434 noinst_DATA = vlc-bundle
436 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
437 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
438 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
439 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
440 if test -n "$$i" ; then \
441 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
442 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
445 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
446 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
447 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
448 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
451 for i in $(ALL_LINGUAS); do \
452 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
453 cp "$(top_builddir)/po/$$i.gmo" \
454 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
456 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
459 # Install the modules and the symlinks
461 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
462 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
463 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
465 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
466 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
467 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
470 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
471 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
472 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
475 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
476 rm -f "$(DESTDIR)$(bindir)/$$i" && \
477 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
481 # Create the MacOS X app
482 vlc_app_DATA = VLC.app
483 vlc_appdir = $(bindir)
485 @if test -e "$(top_builddir)/tmp"; then \
486 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
489 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
491 rm -Rf $(top_builddir)/VLC.app
492 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
493 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
494 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
496 mkdir -p $(top_builddir)/tmp/modules/audio_output
497 cp $(srcdir)/modules/audio_output/coreaudio.c \
498 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
499 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
530 cp "$(srcdir)/modules/gui/macosx/$$i" \
531 $(top_builddir)/tmp/modules/gui/macosx; \
533 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
534 cp -r $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
535 $(top_builddir)/VLC.app
536 rm -Rf $(top_builddir)/tmp
537 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
538 $(INSTALL) $(top_builddir)/vlc \
539 $(top_builddir)/VLC.app/Contents/MacOS/VLC
540 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
541 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
542 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
544 then $(INSTALL) "$$i$(LIBEXT)" \
545 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
547 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
548 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
549 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
550 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
553 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
554 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
555 for i in $(srcdir)/share/http/* ; do \
556 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
558 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm
559 for i in $(srcdir)/share/http/vlm/* ; do \
560 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/vlm/`basename $${i}` ; \
562 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
563 for i in $(srcdir)/share/http/admin/* ; do \
564 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
566 $(INSTALL) -m 644 $(srcdir)/share/http/admin/.access $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/.access
567 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
568 for i in $(ALL_LINGUAS); do \
569 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
570 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
571 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
572 ln -sf ../English.lproj/InfoPlist.strings \
573 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
574 ln -sf ../English.lproj/MainMenu.nib \
575 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
576 ln -sf ../English.lproj/vlc.scriptTerminology \
577 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
579 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
583 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
584 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
585 noinst_share_vlc_win32_rcdir = $(libdir)
586 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
587 $(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 $@
590 ###############################################################################
591 # Building specific source packages
592 ###############################################################################
595 $(remove_distdir_woody)
596 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
597 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
598 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
599 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
600 $(remove_distdir_woody)
602 remove_distdir_woody = \
603 { test ! -d $(PACKAGE)-woody-$(VERSION) \
604 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
605 -exec chmod u+w {} ';' \
606 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
608 ###############################################################################
609 # Building architecture-specific binary packages
610 ###############################################################################
612 # XXX: this rule is probably only useful to you if you have exactly
613 # the same setup as me. Contact sam@zoy.org if you need to use it.
616 # Check that tmp isn't in the way
617 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
618 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
621 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
624 # Copy relevant files
625 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
626 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
627 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
628 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
630 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
631 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
632 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
634 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
635 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
636 if test -n "$$i" ; then \
637 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
638 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
641 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
642 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
644 mkdir $(top_builddir)/vlc-${VERSION}/locale
645 for i in $(ALL_LINGUAS); do \
646 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
647 cp "$(srcdir)/po/$${i}.gmo" \
648 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
652 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
653 for i in $(srcdir)/share/skins2/fonts/*.*; do \
654 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
656 for i in $(srcdir)/share/skins2/*.*; do \
657 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
660 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/admin"
661 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/vlm"
662 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
663 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
664 cp $(srcdir)/share/http/admin/*.html \
665 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
666 cp $(srcdir)/share/http/admin/.access \
667 $(top_builddir)/vlc-${VERSION}/http/admin/ ;
668 cp $(srcdir)/share/http/vlm/*.html \
669 $(top_builddir)/vlc-${VERSION}/http/vlm/ ;
671 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
673 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
675 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
676 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
677 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
680 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
682 cp $(top_builddir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
683 cp $(top_builddir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
684 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
686 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
687 cp $(top_builddir)/activex/*.reg $(top_builddir)/vlc-${VERSION}/activex/ ;
688 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
691 package-win32-base-exe:
693 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
694 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
696 package-win32-base-exe-cygwin:
698 C:/Program\ Files/NSIS/makensis.exe \
699 /DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
701 package-win32-base-exe-linux:
703 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
705 package-win32-base-zip:
707 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
709 package-win32-exe: package-win32-base package-win32-base-exe
711 rm -Rf $(top_builddir)/vlc-${VERSION}
713 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
715 rm -Rf $(top_builddir)/vlc-${VERSION}
717 package-win32-zip: package-win32-base package-win32-base-zip
719 rm -Rf $(top_builddir)/vlc-${VERSION}
721 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
723 rm -Rf $(top_builddir)/vlc-${VERSION}
726 # Check that tmp isn't in the way
727 @if test -e $(srcdir)/tmp; then \
728 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
731 echo "OK." ; mkdir $(srcdir)/tmp ; \
734 # Copy relevant files
735 mkdir -p $(srcdir)/tmp/vlc ;
736 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
737 THANKS NEWS tmp/vlc/ ;
739 # Create debug package
740 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
741 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
742 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
743 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
744 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
745 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
747 # Create normal package
748 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
749 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec strip \
750 --strip-debug --strip-unneeded "{}" \; ;
751 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
752 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
753 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
754 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
755 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
758 rm -Rf $(srcdir)/tmp ;
761 # Check that tmp isn't in the way
762 @if test -e "$(top_builddir)/tmp"; then \
763 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
766 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
769 # Copy relevant files
770 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
771 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
774 $(srcdir)/extras/MacOSX/macosx-dmg "vlc-${VERSION}" $(top_builddir)/tmp
777 rm -Rf $(top_builddir)/tmp
779 package-translations:
780 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
781 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
784 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
787 for i in $(ALL_LINGUAS); do \
788 cp "$(srcdir)/po/$${i}.po" \
789 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
792 cp "$(srcdir)/doc/translations.txt" \
793 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
795 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
796 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
797 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
798 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
799 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
800 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
801 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
802 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
804 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
805 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
807 ###############################################################################
809 ###############################################################################
810 clean: clean-stamp clean-recursive
815 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
816 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
821 @if test ! -f $@; then printf "" > $@; fi
823 ###############################################################################
825 ###############################################################################