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 autotools
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 \
71 include/configuration.h \
72 include/darwin_specific.h \
76 include/input_ext-dec.h \
77 include/input_ext-intf.h \
78 include/input_ext-plugins.h \
79 include/intf_eject.h \
85 include/modules_inner.h \
88 include/os_specific.h \
89 include/stream_control.h \
90 include/stream_output.h \
92 include/video_output.h \
95 include/vlc_block_helper.h \
97 include/vlc_common.h \
98 include/vlc_config.h \
100 include/vlc_error.h \
103 include/vlc_interface.h \
105 include/vlc_messages.h \
108 include/vlc_objects.h \
109 include/vlc_playlist.h \
110 include/vlc_threads.h \
111 include/vlc_threads_funcs.h \
112 include/vlc_video.h \
113 include/vout_synchro.h \
114 include/win32_specific.h \
118 HEADERS_include_built = \
119 include/vlc_symbols.h \
122 include/vlc_symbols.h: Makefile $(HEADERS_include)
123 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
125 src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include)
126 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
128 src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in
129 srcdir=$(srcdir) $(srcdir)/toolbox --update-includes
131 # These dependencies are mandatory
132 $(SOURCES): include/vlc_symbols.h
133 $(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h $(LIB_intl)
135 ###############################################################################
136 # Optional libintl - FIXME, bad dependencies
137 ###############################################################################
139 intl/libintl.a: FORCE
140 cd $(top_builddir)/intl && $(MAKE) $(AM_MAKEFLAGS)
143 LIB_intl = intl/libintl.a
146 ###############################################################################
148 ###############################################################################
151 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
152 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
153 extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib \
154 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
155 extras/MacOSX/Resources/English.lproj/vlc.scriptTerminology \
156 extras/MacOSX/Resources/a52.icns \
157 extras/MacOSX/Resources/aac.icns \
158 extras/MacOSX/Resources/asf.icns \
159 extras/MacOSX/Resources/asx.icns \
160 extras/MacOSX/Resources/avi.icns \
161 extras/MacOSX/Resources/bin.icns \
162 extras/MacOSX/Resources/cue.icns \
163 extras/MacOSX/Resources/dat.icns \
164 extras/MacOSX/Resources/divx.icns \
165 extras/MacOSX/Resources/dv.icns \
166 extras/MacOSX/Resources/generic.icns \
167 extras/MacOSX/Resources/m3u.icns \
168 extras/MacOSX/Resources/mov.icns \
169 extras/MacOSX/Resources/mp3.icns \
170 extras/MacOSX/Resources/mp4.icns \
171 extras/MacOSX/Resources/mpeg.icns \
172 extras/MacOSX/Resources/mpeg1.icns \
173 extras/MacOSX/Resources/mpeg2.icns \
174 extras/MacOSX/Resources/mpeg4.icns \
175 extras/MacOSX/Resources/mpg.icns \
176 extras/MacOSX/Resources/ogg.icns \
177 extras/MacOSX/Resources/ogm.icns \
178 extras/MacOSX/Resources/pls.icns \
179 extras/MacOSX/Resources/srt.icns \
180 extras/MacOSX/Resources/sub.icns \
181 extras/MacOSX/Resources/vlc.icns \
182 extras/MacOSX/Resources/vob.icns \
183 extras/MacOSX/Resources/wma.icns \
184 extras/MacOSX/Resources/wmv.icns \
185 extras/MacOSX/Resources/pause.png \
186 extras/MacOSX/Resources/pause_blue.png \
187 extras/MacOSX/Resources/play.png \
188 extras/MacOSX/Resources/play_blue.png \
189 extras/MacOSX/Resources/stop.png \
190 extras/MacOSX/Resources/stop_blue.png \
191 extras/MacOSX/Resources/display.png \
192 extras/MacOSX/Resources/display_slider.png \
193 extras/MacOSX/Resources/display_track.png \
194 extras/MacOSX/Resources/fullscreen_active.png \
195 extras/MacOSX/Resources/fullscreen_blue.png \
196 extras/MacOSX/Resources/next_active.png \
197 extras/MacOSX/Resources/next_blue.png \
198 extras/MacOSX/Resources/playlistdrawer_active.png \
199 extras/MacOSX/Resources/playlistdrawer_blue.png \
200 extras/MacOSX/Resources/previous_active.png \
201 extras/MacOSX/Resources/previous_blue.png \
202 extras/MacOSX/Resources/skip_forward_active.png \
203 extras/MacOSX/Resources/skip_forward_blue.png \
204 extras/MacOSX/Resources/skip_previous_active.png \
205 extras/MacOSX/Resources/skip_previous_blue.png \
206 extras/MacOSX/Resources/volume_high.png \
207 extras/MacOSX/Resources/volume_low.png \
208 extras/MacOSX/Resources/volumeslider_blue.png \
209 extras/MacOSX/Resources/volumeslider_normal.png \
210 extras/MacOSX/Resources/volumetrack.png \
211 extras/MacOSX/Resources/about_bg.png \
212 extras/MacOSX/Resources/vlc.scriptSuite \
213 extras/MacOSX/Resources/README \
214 extras/MacOSX/vlc.pbproj/project.pbxproj \
215 extras/MacOSX/macosx-dmg \
218 ###############################################################################
219 # MS Visual Studio and eMbedded Visual Studio projects
220 ###############################################################################
225 msvc/plugins.dsp.in \
228 msvc/modules_builtin_msvc.h \
235 evc/modules_builtin_evc.h \
239 mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild
240 cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc
242 ###############################################################################
244 ###############################################################################
246 bin_SCRIPTS = vlc-config
248 lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
250 lib_libvlc_a_SOURCES = $(SOURCES_libvlc)
251 dist_lib_libvlc_a_SOURCES = src/misc/modules_plugin.h
252 lib_libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
253 lib_libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
254 lib_libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
256 lib_libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
257 lib_libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
258 lib_libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
259 lib_libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
262 OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
265 OPT_SOURCES_libvlc_darwin = $(SOURCES_libvlc_darwin)
268 OPT_SOURCES_libvlc_win32 = $(SOURCES_libvlc_win32)
271 OPT_SOURCES_libvlc_dirent = $(SOURCES_libvlc_dirent)
274 OPT_SOURCES_libvlc_getopt = $(SOURCES_libvlc_getopt)
278 LIBRARIES_libvlc_pic = lib/libvlc_pic.a
283 $(SOURCES_libvlc_beos) \
284 $(SOURCES_libvlc_darwin) \
285 $(SOURCES_libvlc_win32) \
286 $(SOURCES_libvlc_dirent) \
287 $(SOURCES_libvlc_getopt) \
290 SOURCES_libvlc_beos = \
291 src/misc/beos_specific.cpp \
294 SOURCES_libvlc_darwin = \
295 src/misc/darwin_specific.m \
298 SOURCES_libvlc_win32 = \
299 src/misc/win32_specific.c \
302 SOURCES_libvlc_dirent = \
303 src/extras/dirent.c \
304 src/extras/dirent.h \
307 SOURCES_libvlc_getopt = \
308 src/extras/getopt.c \
309 src/extras/getopt.h \
310 src/extras/getopt1.c \
313 SOURCES_libvlc_common = \
316 src/interface/interface.c \
317 src/interface/intf_eject.c \
318 src/playlist/playlist.c \
319 src/playlist/sort.c \
320 src/playlist/loadsave.c \
321 src/playlist/group.c \
322 src/playlist/item.c \
323 src/playlist/item-ext.c \
324 src/playlist/info.c \
326 src/input/control.c \
330 src/input/subtitles.c \
331 src/input/input_ext-plugins.c \
332 src/input/input_ext-intf.c \
333 src/input/input_dec.c \
334 src/input/input_programs.c \
335 src/input/input_clock.c \
336 src/input/input_info.c \
337 src/video_output/video_output.c \
338 src/video_output/vout_pictures.c \
339 src/video_output/vout_pictures.h \
340 src/video_output/video_text.c \
341 src/video_output/vout_subpictures.c \
342 src/video_output/vout_synchro.c \
343 src/video_output/vout_intf.c \
344 src/audio_output/common.c \
345 src/audio_output/dec.c \
346 src/audio_output/filters.c \
347 src/audio_output/input.c \
348 src/audio_output/mixer.c \
349 src/audio_output/output.c \
350 src/audio_output/intf.c \
351 src/stream_output/stream_output.c \
359 src/misc/configuration.c \
360 src/misc/iso_lang.c \
361 src/misc/iso-639_def.h \
362 src/misc/messages.c \
364 src/misc/variables.c \
372 $(SOURCES_libvlc_common) \
373 $(OPT_SOURCES_libvlc_beos) \
374 $(OPT_SOURCES_libvlc_darwin) \
375 $(OPT_SOURCES_libvlc_win32) \
376 $(OPT_SOURCES_libvlc_dirent) \
377 $(OPT_SOURCES_libvlc_getopt) \
380 ###############################################################################
382 ###############################################################################
386 vlc_SOURCES = src/vlc.c
388 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin`
389 vlc_LDADD = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
390 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
392 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
393 # old automake-1.5 bug (automake/279).
394 DEPENDENCIES_vlc = lib/libvlc.a $(DATA_win32_rc) $(LIB_intl)
396 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
397 @rm -f $(top_builddir)/vlc$(EXEEXT)
398 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
399 c++) echo $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(CXXLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
400 objc) echo $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(OBJCLINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
401 c|*) echo $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ; $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS) ;; \
405 xres -o $@ $(srcdir)/share/vlc_beos.rsrc
407 rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
408 for i in $(ALL_LINGUAS); do \
409 mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
410 cp "$(srcdir)/po/$${i}.gmo" \
411 "$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
415 # Install the modules and the symlinks
417 for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \
418 echo $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
419 $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | sed -e 's,.*modules/\([^/]*\).*,\1,'`" ; \
421 for i in "" `$(VLC_CONFIG) --target builtin` ; do if test -n "$$i" ; then \
422 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
423 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
426 for i in "" `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \
427 echo $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
428 $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \
431 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
432 rm -f "$(DESTDIR)$(bindir)/$$i" && \
433 ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
437 # Create the MacOS X app
438 vlc_app_DATA = VLC.app
439 vlc_appdir = $(bindir)
441 @if test -e "$(top_builddir)/tmp"; then \
442 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
445 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
447 rm -Rf $(top_builddir)/VLC.app
448 cp -r $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
449 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
450 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
452 mkdir -p $(top_builddir)/tmp/modules/audio_output
453 cp $(srcdir)/modules/audio_output/coreaudio.c \
454 $(top_builddir)/tmp/modules/audio_output/coreaudio.c
455 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
482 cp "$(srcdir)/modules/gui/macosx/$$i" \
483 $(top_builddir)/tmp/modules/gui/macosx; \
485 cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'
486 cp -r $(top_builddir)/tmp/extras/MacOSX/build/vlc.bundle \
487 $(top_builddir)/VLC.app
488 rm -Rf $(top_builddir)/tmp
489 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
490 $(INSTALL) $(top_builddir)/vlc \
491 $(top_builddir)/VLC.app/Contents/MacOS/VLC
492 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
493 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
495 then $(INSTALL) "$$i$(LIBEXT)" \
496 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
498 if test -d $(top_builddir)/extras/contrib/vlc-lib; then \
499 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
500 for i in $(top_builddir)/extras/contrib/vlc-lib/*.dylib ; do \
501 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
504 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share
505 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http
506 for i in $(srcdir)/share/http/* ; do \
507 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/`basename $${i}` ; \
509 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin
510 for i in $(srcdir)/share/http/admin/* ; do \
511 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC.app/Contents/MacOS/share/http/admin/`basename $${i}` ; \
513 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
514 for i in $(ALL_LINGUAS); do \
515 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
516 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
517 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
518 ln -sf ../English.lproj/InfoPlist.strings \
519 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
520 ln -sf ../English.lproj/MainMenu.nib \
521 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
522 ln -sf ../English.lproj/vlc.scriptTerminology \
523 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
525 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
529 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
530 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
531 noinst_share_vlc_win32_rcdir = $(libdir)
532 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
533 $(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 $@
536 ###############################################################################
537 # Building specific source packages
538 ###############################################################################
541 $(remove_distdir_woody)
542 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
543 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
544 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
545 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
546 $(remove_distdir_woody)
548 remove_distdir_woody = \
549 { test ! -d $(PACKAGE)-woody-$(VERSION) \
550 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
551 -exec chmod u+w {} ';' \
552 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
554 ###############################################################################
555 # Building architecture-specific binary packages
556 ###############################################################################
558 # XXX: this rule is probably only useful to you if you have exactly
559 # the same setup as me. Contact sam@zoy.org if you need to use it.
561 # Check that tmp isn't in the way
563 @if test -e "$(srcdir)/vlc-${VERSION}"; then \
564 echo "Error: please remove $(srcdir)/vlc-${VERSION}, it is in the way"; \
567 echo "OK."; mkdir -p "$(srcdir)/vlc-${VERSION}"; \
569 # Create installation script
570 cp "$(srcdir)/install-win32" "$(srcdir)/vlc-${VERSION}/nsi"
571 # Copy relevant files
572 cp "$(top_builddir)/vlc$(EXEEXT)" "$(srcdir)/vlc-${VERSION}/"
573 cp "$(top_builddir)/vlc$(EXEEXT).manifest" "$(srcdir)/vlc-${VERSION}/"
574 $(STRIP) "$(srcdir)/vlc-${VERSION}/vlc$(EXEEXT)"
575 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
576 do cp "$(srcdir)/$$file" "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; \
577 unix2dos "$(srcdir)/vlc-${VERSION}/$${file}.txt" ; done
579 mkdir -p "$(srcdir)/vlc-${VERSION}/plugins"
580 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
581 if test -n "$$i" ; then \
582 $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \
583 "$(srcdir)/vlc-${VERSION}/plugins/" ; \
586 for i in "" $(srcdir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
587 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
589 mkdir $(srcdir)/vlc-${VERSION}/locale
590 for i in $(ALL_LINGUAS); do \
591 mkdir -p "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
592 cp "$(srcdir)/po/$${i}.gmo" \
593 "$(srcdir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
597 mkdir -p $(srcdir)/vlc-${VERSION}/skins/default
598 for i in $(srcdir)/share/skins/default/*.*; do \
599 cp $$i $(srcdir)/vlc-${VERSION}/skins/default/ || true ; \
601 for i in $(srcdir)/doc/skins/*.txt; do \
602 cp $$i $(srcdir)/vlc-${VERSION}/skins/ || true ; \
604 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/fonts
605 for i in $(srcdir)/share/skins2/fonts/*.*; do \
606 cp $$i $(srcdir)/vlc-${VERSION}/skins2/fonts/ || true ; \
608 mkdir -p $(srcdir)/vlc-${VERSION}/skins2/default
609 for i in $(srcdir)/share/skins2/default/*.*; do \
610 cp $$i $(srcdir)/vlc-${VERSION}/skins2/default/ || true ; \
613 mkdir -p "$(srcdir)/vlc-${VERSION}/http/admin"
614 cp $(srcdir)/share/http/*.html $(srcdir)/vlc-${VERSION}/http/ ;
615 cp $(srcdir)/share/http/*.css $(srcdir)/vlc-${VERSION}/http/ ;
616 cp $(srcdir)/share/http/admin/*.html \
617 $(srcdir)/vlc-${VERSION}/http/admin/ ;
618 cp $(srcdir)/share/http/admin/.access \
619 $(srcdir)/vlc-${VERSION}/http/admin/ ;
621 mkdir -p "$(srcdir)/vlc-${VERSION}/mozilla"
623 cp $(srcdir)/mozilla/*$(LIBEXT) $(srcdir)/vlc-${VERSION}/mozilla/ ;
624 $(STRIP) $(srcdir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
625 cp $(srcdir)/mozilla/vlcintf.xpt $(srcdir)/vlc-${VERSION}/mozilla/ ;
628 package-win32-base-exe:
630 wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe \
631 -- /DVERSION=${VERSION} $(srcdir)/vlc-${VERSION}/nsi
633 package-win32-base-zip:
635 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
637 package-win32-exe: package-win32-base package-win32-base-exe
639 rm -Rf $(srcdir)/vlc-${VERSION}
641 package-win32-zip: package-win32-base package-win32-base-zip
643 rm -Rf $(srcdir)/vlc-${VERSION}
645 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
647 rm -Rf $(srcdir)/vlc-${VERSION}
650 # Check that tmp isn't in the way
651 @if test -e $(srcdir)/tmp; then \
652 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
655 echo "OK." ; mkdir $(srcdir)/tmp ; \
658 # Copy relevant files
659 mkdir -p $(srcdir)/tmp/vlc ;
661 cp vlc AUTHORS COPYING ChangeLog README THANKS NEWS tmp/vlc/ ;
662 # We cannot use ${PLUGIN_FILES} as it looks like it is too "long" for the BeOS shell...
663 if [ `find $(srcdir)/modules -name "lib*_plugin.so" | wc -l` -gt 0 ]; then \
664 mkdir -p $(srcdir)/tmp/vlc/plugins ; \
665 find $(srcdir)/modules -name "lib*_plugin.so" -exec cp {} $(srcdir)/tmp/vlc/plugins/ \; ; \
667 for i in $(ALL_LINGUAS); do \
668 mkdir -p $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES ; \
669 cp $(srcdir)/po/$${i}.gmo $(srcdir)/tmp/vlc/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
672 # Strip files and create package
673 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
674 if [ -d $(srcdir)/tmp/vlc/plugins ]; then \
675 strip --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/plugins/lib*_plugin.so ; \
677 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
678 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
679 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
680 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
681 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
684 rm -Rf $(srcdir)/tmp ;
687 # Check that tmp isn't in the way
688 @if test -e "$(top_builddir)/tmp"; then \
689 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
692 echo "OK."; mkdir -p "$(top_builddir)/tmp"; \
695 # Copy relevant files
696 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/tmp/"
697 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/tmp/
700 $(srcdir)/extras/MacOSX/macosx-dmg 25 "vlc-${VERSION}" $(top_builddir)/tmp/*
703 rm -Rf $(top_builddir)/tmp
705 package-translations:
706 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
707 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
710 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
713 for i in $(ALL_LINGUAS); do \
714 cp "$(srcdir)/po/$${i}.po" \
715 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
718 cp "$(srcdir)/doc/translations.txt" \
719 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
721 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
722 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
723 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
724 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
725 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
726 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
727 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
728 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
730 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
731 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
733 ###############################################################################
735 ###############################################################################
741 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
742 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
747 @if test ! -f $@; then printf "" > $@; fi
749 ###############################################################################
751 ###############################################################################