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/bindings because the plugin needs libvlc_pic.a
13 # - po should come before . because VLC.app needs the pofiles
14 # - loader should come before modules because some plugins need it
15 SUBDIRS = intl loader src modules po . mozilla bindings activex share m4 doc
16 DIST_SUBDIRS = $(SUBDIRS) debian ipkg
34 BUILT_SOURCES_distclean = vlc-config compile
35 BUILT_SOURCES_clean = macosx-sdk
37 BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
41 DISTCHECK_CONFIGURE_FLAGS = --disable-dvd --disable-mad --disable-libmpeg2 \
42 --disable-ffmpeg --disable-faad --disable-skins2
44 # Tell aclocal to use -I m4. Wonder if it really works.
45 ACLOCAL_AMFLAGS = -I m4
47 # XXX: these flags could be set in configure.ac, but we set them here
48 # because old versions of automake don't support them in configure.ac.
49 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects
51 ###############################################################################
53 ###############################################################################
56 extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib \
57 extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib \
58 extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib \
59 extras/MacOSX/Resources/English.lproj/About.nib/classes.nib \
60 extras/MacOSX/Resources/English.lproj/About.nib/info.nib \
61 extras/MacOSX/Resources/English.lproj/About.nib/keyedobjects.nib \
62 extras/MacOSX/Resources/English.lproj/Open.nib/classes.nib \
63 extras/MacOSX/Resources/English.lproj/Open.nib/info.nib \
64 extras/MacOSX/Resources/English.lproj/Open.nib/keyedobjects.nib \
65 extras/MacOSX/Resources/English.lproj/Preferences.nib/classes.nib \
66 extras/MacOSX/Resources/English.lproj/Preferences.nib/info.nib \
67 extras/MacOSX/Resources/English.lproj/Preferences.nib/keyedobjects.nib \
68 extras/MacOSX/Resources/English.lproj/Wizard.nib/classes.nib \
69 extras/MacOSX/Resources/English.lproj/Wizard.nib/info.nib \
70 extras/MacOSX/Resources/English.lproj/Wizard.nib/keyedobjects.nib \
71 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/classes.nib \
72 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/info.nib \
73 extras/MacOSX/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib \
74 extras/MacOSX/Resources/English.lproj/Extended.nib/classes.nib \
75 extras/MacOSX/Resources/English.lproj/Extended.nib/info.nib \
76 extras/MacOSX/Resources/English.lproj/Extended.nib/keyedobjects.nib \
77 extras/MacOSX/Resources/English.lproj/SFilters.nib/classes.nib \
78 extras/MacOSX/Resources/English.lproj/SFilters.nib/info.nib \
79 extras/MacOSX/Resources/English.lproj/SFilters.nib/keyedobjects.nib \
80 extras/MacOSX/Resources/English.lproj/Update.nib/classes.nib \
81 extras/MacOSX/Resources/English.lproj/Update.nib/info.nib \
82 extras/MacOSX/Resources/English.lproj/Update.nib/keyedobjects.nib \
83 extras/MacOSX/Resources/English.lproj/InfoPlist.strings \
84 extras/MacOSX/Resources/a52.icns \
85 extras/MacOSX/Resources/aac.icns \
86 extras/MacOSX/Resources/asf.icns \
87 extras/MacOSX/Resources/asx.icns \
88 extras/MacOSX/Resources/avi.icns \
89 extras/MacOSX/Resources/bin.icns \
90 extras/MacOSX/Resources/cue.icns \
91 extras/MacOSX/Resources/dat.icns \
92 extras/MacOSX/Resources/divx.icns \
93 extras/MacOSX/Resources/dv.icns \
94 extras/MacOSX/Resources/generic.icns \
95 extras/MacOSX/Resources/m3u.icns \
96 extras/MacOSX/Resources/mov.icns \
97 extras/MacOSX/Resources/mp3.icns \
98 extras/MacOSX/Resources/mp4.icns \
99 extras/MacOSX/Resources/mpeg.icns \
100 extras/MacOSX/Resources/mpeg1.icns \
101 extras/MacOSX/Resources/mpeg2.icns \
102 extras/MacOSX/Resources/mpeg4.icns \
103 extras/MacOSX/Resources/mpg.icns \
104 extras/MacOSX/Resources/ogg.icns \
105 extras/MacOSX/Resources/ogm.icns \
106 extras/MacOSX/Resources/pls.icns \
107 extras/MacOSX/Resources/srt.icns \
108 extras/MacOSX/Resources/sub.icns \
109 extras/MacOSX/Resources/vlc.icns \
110 extras/MacOSX/Resources/vob.icns \
111 extras/MacOSX/Resources/wma.icns \
112 extras/MacOSX/Resources/wmv.icns \
113 extras/MacOSX/Resources/pause.png \
114 extras/MacOSX/Resources/pause_blue.png \
115 extras/MacOSX/Resources/play.png \
116 extras/MacOSX/Resources/play_blue.png \
117 extras/MacOSX/Resources/stop.png \
118 extras/MacOSX/Resources/stop_blue.png \
119 extras/MacOSX/Resources/display.png \
120 extras/MacOSX/Resources/display_slider.png \
121 extras/MacOSX/Resources/display_track.png \
122 extras/MacOSX/Resources/equalizerdrawer_active.png \
123 extras/MacOSX/Resources/equalizerdrawer_blue.png \
124 extras/MacOSX/Resources/fullscreen_active.png \
125 extras/MacOSX/Resources/fullscreen_blue.png \
126 extras/MacOSX/Resources/next_active.png \
127 extras/MacOSX/Resources/next_blue.png \
128 extras/MacOSX/Resources/playlistdrawer_active.png \
129 extras/MacOSX/Resources/playlistdrawer_blue.png \
130 extras/MacOSX/Resources/previous_active.png \
131 extras/MacOSX/Resources/previous_blue.png \
132 extras/MacOSX/Resources/skip_forward_active.png \
133 extras/MacOSX/Resources/skip_forward_blue.png \
134 extras/MacOSX/Resources/skip_previous_active.png \
135 extras/MacOSX/Resources/skip_previous_blue.png \
136 extras/MacOSX/Resources/volume_high.png \
137 extras/MacOSX/Resources/volume_low.png \
138 extras/MacOSX/Resources/volumeslider_blue.png \
139 extras/MacOSX/Resources/volumeslider_normal.png \
140 extras/MacOSX/Resources/volumetrack.png \
141 extras/MacOSX/Resources/about_bg.png \
142 extras/MacOSX/Resources/vlc.scriptSuite \
143 extras/MacOSX/Resources/vlc.scriptTerminology \
144 extras/MacOSX/Resources/README \
145 extras/MacOSX/vlc.pbproj/project.pbxproj \
146 extras/MacOSX/Delete_Preferences.app/Contents/Info.plist \
147 extras/MacOSX/Delete_Preferences.app/Contents/PkgInfo \
148 extras/MacOSX/Delete_Preferences.app/Contents/MacOS/applet \
149 extras/MacOSX/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf \
150 extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.icns \
151 extras/MacOSX/Delete_Preferences.app/Contents/Resources/applet.rsrc \
152 extras/MacOSX/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt \
157 ###############################################################################
158 # MS Visual Studio and eMbedded Visual Studio projects
159 ###############################################################################
164 msvc/plugins.dsp.in \
167 msvc/modules_builtin_msvc.h \
174 evc/modules_builtin_evc.h \
178 cd $(distdir) && srcdir=. $(SHELL) ./toolbox --update-vc
179 distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
181 ###############################################################################
183 ###############################################################################
185 bin_SCRIPTS = vlc-config
186 vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
187 $(SHELL) ./config.status --file=$@
190 vlc-config.in: vlc-config.in.in
191 ./config.status --recheck
193 CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
194 DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
196 ###############################################################################
198 ###############################################################################
202 vlc_SOURCES = src/vlc.c
203 # Ugly kludge so that automake defines $(CXXLINK)
204 EXTRA_vlc_SOURCES = extras/zsh.cpp
206 # Work around a bug in the arm-wince-pe linker
208 vlc_WORKAROUNDLDFLAGS = $(LIB_libvlc)
212 LIB_libvlc = src/libvlc$(LIBEXT)
213 #-Wl,-rpath $(libdir)
215 LIB_libvlc = src/libvlc.a
218 vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
219 vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(INCLUDED_LIBINTL)
220 vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
222 # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
223 # old automake-1.5 bug (automake/279).
224 DEPENDENCIES_vlc = $(LIB_libvlc) $(DATA_win32_rc)
226 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) stamp-builtin
228 @case `$(VLC_CONFIG) --linkage vlc builtin` in \
229 c++) cmd="$(CXXLINK)" ;; \
230 objc) cmd="$(OBJCLINK)" ;; \
231 c|*) cmd="$(LINK)" ;; \
233 cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS) $(LIBS)" ; \
238 DATA_noinst_beos = vlc-bundle
240 rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
241 cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
242 xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
243 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
244 if test -n "$$i" ; then \
245 mkdir -p $(top_builddir)/vlc-bundle/plugins ; \
246 cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; \
249 if test -d $(top_builddir)/extras/contrib/vlc-lib ; then \
250 mkdir -p $(top_builddir)/vlc-bundle/lib ; \
251 for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do \
252 cp $$i $(top_builddir)/vlc-bundle/lib/ ; \
255 for i in $(ALL_LINGUAS); do \
256 mkdir -p "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES" ; \
257 cp "$(top_builddir)/po/$$i.gmo" \
258 "$(top_builddir)/vlc-bundle/locale/$$i/LC_MESSAGES/vlc.mo" || true ; \
260 find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
263 # Install the symlinks and shared libvlc
265 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
266 rm -f "$(DESTDIR)$(bindir)/$$i" && \
267 ln -sf vlc "$(DESTDIR)$(bindir)/$$i" ; \
270 # the opposite of install-{data,exec}-local
272 for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
273 rm -f "$(DESTDIR)$(bindir)/$$i" ; \
277 # Create the MacOS X app
278 vlc_app_DATA = VLC.app
279 vlc_appdir = $(bindir)
280 # VLC-release.app is the old VLC.app target
282 @if test -e "$(top_builddir)/tmp"; then \
283 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
286 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
288 rm -Rf $(top_builddir)/VLC-release.app
289 cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
290 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
291 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
293 mkdir -p $(top_builddir)/tmp/modules/audio_output
294 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
333 cp "$(srcdir)/modules/gui/macosx/$$i" \
334 $(top_builddir)/tmp/modules/gui/macosx; \
336 case $(target_triplet) in \
337 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
339 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
340 $(top_builddir)/VLC-release.app;; \
341 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
343 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
344 $(top_builddir)/VLC-release.app;; \
345 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
347 cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
348 $(top_builddir)/VLC-release.app;; \
350 rm -Rf $(top_builddir)/tmp
351 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
352 $(INSTALL) $(top_builddir)/vlc \
353 $(top_builddir)/VLC-release.app/Contents/MacOS/VLC
354 ln -sf ./VLC $(top_builddir)/VLC-release.app/Contents/MacOS/clivlc
355 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/modules
356 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
358 then $(INSTALL) "$$i$(LIBEXT)" \
359 "$(top_builddir)/VLC-release.app/Contents/MacOS/modules" ; \
361 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
362 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/lib ; \
363 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
364 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
367 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share
368 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http
369 for i in $(srcdir)/share/http/* ; do \
370 $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; \
372 $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/locale
373 for i in $(ALL_LINGUAS); do \
374 mkdir -p $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
375 cp $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
376 mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
377 ln -sf ../English.lproj/InfoPlist.strings \
378 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
379 ln -sf ../English.lproj/MainMenu.nib \
380 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
381 ln -sf ../English.lproj/vlc.scriptTerminology \
382 $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; \
384 printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
387 @if test -e "$(top_builddir)/tmp"; then \
388 echo "Error: please remove $(top_builddir)/tmp, it is in the way"; \
391 echo "OK."; mkdir -p "$(top_builddir)/tmp/extras"; \
393 rm -Rf $(top_builddir)/VLC.app
394 cp -R $(srcdir)/extras/MacOSX $(top_builddir)/tmp/extras
395 for i in AUTHORS COPYING README.MacOSX.rtf THANKS; do \
396 cp "$(srcdir)/$$i" $(top_builddir)/tmp; \
398 mkdir -p $(top_builddir)/tmp/modules/audio_output
399 mkdir -p $(top_builddir)/tmp/modules/gui/macosx
438 cp "$(srcdir)/modules/gui/macosx/$$i" \
439 $(top_builddir)/tmp/modules/gui/macosx; \
441 case $(target_triplet) in \
442 *darwin6*) cd $(top_builddir)/tmp/extras/MacOSX && pbxbuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
444 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
445 $(top_builddir)/VLC.app;; \
446 *darwin7*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
448 cp -R $(top_builddir)/tmp/extras/MacOSX/build/VLC.bundle \
449 $(top_builddir)/VLC.app;; \
450 *darwin8*) cd $(top_builddir)/tmp/extras/MacOSX && xcodebuild -target vlc | grep -v '^\([ \t]\|$$\)'; \
452 cp -R $(top_builddir)/tmp/extras/MacOSX/build/Default/VLC.bundle \
453 $(top_builddir)/VLC.app;; \
455 rm -Rf $(top_builddir)/tmp
456 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
457 $(INSTALL) $(top_builddir)/vlc \
458 $(top_builddir)/VLC.app/Contents/MacOS/VLC
459 ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
460 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
461 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
463 then ln -sfn "`pwd`/$$i$(LIBEXT)" \
464 "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
466 if test -d $(srcdir)/extras/contrib/vlc-lib; then \
467 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/lib ; \
468 for i in $(srcdir)/extras/contrib/vlc-lib/*.dylib ; do \
469 ln -sfn `pwd`/$${i} $(top_builddir)/VLC.app/Contents/MacOS/lib/vlc_`basename $${i}` ; \
472 ln -sfn `pwd`/share $(top_builddir)/VLC.app/Contents/MacOS/
473 $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/locale
474 for i in $(ALL_LINGUAS); do \
475 mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES ; \
476 ln -sfn `pwd`/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
477 mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
478 ln -sf ../English.lproj/InfoPlist.strings \
479 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
480 ln -sf ../English.lproj/MainMenu.nib \
481 $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; \
483 printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
487 DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
488 noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
489 noinst_share_vlc_win32_rcdir = $(libdir)
490 share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
491 $(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 $@
495 ###############################################################################
496 # Building specific source packages
497 ###############################################################################
500 $(remove_distdir_woody)
501 mv $(distdir) $(PACKAGE)-woody-$(VERSION)
502 $(srcdir)/toolbox --make-woody $(PACKAGE)-woody-$(VERSION)
503 $(AMTAR) chof - $(PACKAGE)-woody-$(VERSION) \
504 | GZIP=$(GZIP_ENV) gzip -c >$(PACKAGE)-woody-$(VERSION).tar.gz
505 $(remove_distdir_woody)
507 remove_distdir_woody = \
508 { test ! -d $(PACKAGE)-woody-$(VERSION) \
509 || { find $(PACKAGE)-woody-$(VERSION) -type d ! -perm -200 \
510 -exec chmod u+w {} ';' \
511 && rm -fr $(PACKAGE)-woody-$(VERSION); }; }
513 ###############################################################################
514 # Building architecture-specific binary packages
515 ###############################################################################
517 # XXX: this rule is probably only useful to you if you have exactly
518 # the same setup as me. Contact sam@zoy.org if you need to use it.
520 package-win32-base-debug:
521 # Check that tmp isn't in the way
522 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
523 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
526 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
529 # Copy relevant files
530 cp "$(srcdir)/vlc.win32.nsi" "$(top_builddir)/vlc-${VERSION}/"
531 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
532 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
533 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
535 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
536 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
537 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
539 mkdir -p "$(top_builddir)/vlc-${VERSION}/plugins"
540 for i in "" `$(VLC_CONFIG) --target plugin` ; do \
541 if test -n "$$i" ; then \
542 $(INSTALL) "$(top_builddir)/$$i$(LIBEXT)" \
543 "$(top_builddir)/vlc-${VERSION}/plugins/" ; \
546 mkdir $(top_builddir)/vlc-${VERSION}/locale
547 for i in $(ALL_LINGUAS); do \
548 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
549 cp "$(srcdir)/po/$${i}.gmo" \
550 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
554 mkdir -p $(top_builddir)/vlc-${VERSION}/skins/fonts
555 for i in $(srcdir)/share/skins2/fonts/*.*; do \
556 cp $$i $(top_builddir)/vlc-${VERSION}/skins/fonts/ || true ; \
558 for i in $(srcdir)/share/skins2/*.*; do \
559 cp $$i $(top_builddir)/vlc-${VERSION}/skins/ || true ; \
562 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu"
563 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-${VERSION}/osdmenu"
564 for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume;do \
565 mkdir -p "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir"; \
566 for file in $(srcdir)/share/osdmenu/$${dir}/*.*;do \
567 cp $$file "$(top_builddir)/vlc-${VERSION}/osdmenu/$$dir" || true; \
570 unix2dos $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg;
571 sed -i 's%share/osdmenu%osdmenu%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
572 sed -i 's%/%\\%g' $(top_builddir)/vlc-${VERSION}/osdmenu/*.cfg
574 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
575 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
576 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/js"
577 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/dialogs"
578 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old"
579 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/vlm"
580 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/admin"
581 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
582 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
583 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
584 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
585 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-${VERSION}/http/js/ ;
586 unix2dos $(top_builddir)/vlc-${VERSION}/http/js/*.js ;
587 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-${VERSION}/http/dialogs/ ;
588 unix2dos $(top_builddir)/vlc-${VERSION}/http/dialogs/* ;
589 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
590 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
591 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
592 unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
594 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-${VERSION}/http/old/ ;
595 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/*.html ;
596 cp $(srcdir)/share/http/old/*.ico $(top_builddir)/vlc-${VERSION}/http/old/ ;
597 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-${VERSION}/http/old/ ;
598 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-${VERSION}/http/old/ ;
599 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-${VERSION}/http/old/vlm/ ;
600 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/vlm/*.html ;
601 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-${VERSION}/http/old/admin/ ;
602 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/admin/*.html ;
604 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
606 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
608 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
609 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
610 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
613 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
615 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
616 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
617 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
619 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
620 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
622 # Rebase all those DLLs to speed up loading (need cygwin rebase)
623 if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
624 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
627 package-win32-base: package-win32-base-debug
628 for i in "" $(top_builddir)/vlc-${VERSION}/plugins/*$(LIBEXT) ; \
629 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
632 package-win32-base-exe:
634 if makensis -VERSION >/dev/null 2>&1; then \
635 MAKENSIS="makensis -DVERSION=${VERSION}"; \
636 elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \
637 MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis /DVERSION=${VERSION}"; \
638 elif wine --version >dev/null 2>&1; then \
639 MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe /DVERSION=${VERSION}"; \
641 echo 'Error: cannot locate makensis tool'; exit 1; \
643 eval "$$MAKENSIS $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi"
645 package-win32-base-exe-cygwin: package-win32-base-exe
648 package-win32-base-exe-linux:
650 makensis -DVERSION=${VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi
652 package-win32-base-zip:
654 zip -r vlc-${VERSION}-win32.zip vlc-${VERSION}
656 package-win32-exe: package-win32-base package-win32-base-exe
658 rm -Rf $(top_builddir)/vlc-${VERSION}
660 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux
662 rm -Rf $(top_builddir)/vlc-${VERSION}
664 package-win32-zip: package-win32-base package-win32-base-zip
666 rm -Rf $(top_builddir)/vlc-${VERSION}
668 package-win32: package-win32-base package-win32-base-exe package-win32-base-zip
670 rm -Rf $(top_builddir)/vlc-${VERSION}
673 # Check that tmp isn't in the way
674 @if test -e "$(top_builddir)/vlc-${VERSION}"; then \
675 echo "Error: please remove $(top_builddir)/vlc-${VERSION}, it is in the way"; \
678 echo "OK."; mkdir -p "$(top_builddir)/vlc-${VERSION}"; \
681 # Copy relevant files
682 cp "$(top_builddir)/vlc$(EXEEXT)" "$(top_builddir)/vlc-${VERSION}/"
683 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-${VERSION}/"
684 $(STRIP) "$(top_builddir)/vlc-${VERSION}/vlc$(EXEEXT)"
686 for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
687 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \
688 unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done
690 mkdir $(top_builddir)/vlc-${VERSION}/locale
691 for i in $(ALL_LINGUAS); do \
692 mkdir -p "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES" ; \
693 cp "$(srcdir)/po/$${i}.gmo" \
694 "$(top_builddir)/vlc-${VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \
699 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/images"
700 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/requests"
701 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/js"
702 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/dialogs"
703 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old"
704 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/vlm"
705 mkdir -p "$(top_builddir)/vlc-${VERSION}/http/old/admin"
706 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-${VERSION}/http/ ;
707 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.html ;
708 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-${VERSION}/http/ ;
709 unix2dos $(top_builddir)/vlc-${VERSION}/http/*.css ;
710 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-${VERSION}/http/js/ ;
711 unix2dos $(top_builddir)/vlc-${VERSION}/http/js/*.js ;
712 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-${VERSION}/http/dialogs/ ;
713 unix2dos $(top_builddir)/vlc-${VERSION}/http/dialogs/* ;
714 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-${VERSION}/http/ ;
715 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-${VERSION}/http/images/
716 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-${VERSION}/http/requests/ ;
717 unix2dos $(top_builddir)/vlc-${VERSION}/http/requests/*.xml ;
719 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-${VERSION}/http/old/ ;
720 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/*.html ;
721 cp $(srcdir)/share/http/old/*.ico $(top_builddir)/vlc-${VERSION}/http/old/ ;
722 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-${VERSION}/http/old/ ;
723 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-${VERSION}/http/old/ ;
724 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-${VERSION}/http/old/vlm/ ;
725 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/vlm/*.html ;
726 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-${VERSION}/http/old/admin/ ;
727 unix2dos $(top_builddir)/vlc-${VERSION}/http/old/admin/*.html ;
729 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-${VERSION}/ ;
732 mkdir -p "$(top_builddir)/vlc-${VERSION}/mozilla"
733 cp $(top_builddir)/mozilla/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/mozilla/ ;
734 $(STRIP) $(top_builddir)/vlc-${VERSION}/mozilla/*$(LIBEXT);
735 cp $(top_builddir)/mozilla/vlcintf.xpt $(top_builddir)/vlc-${VERSION}/mozilla/ ;
739 mkdir -p "$(top_builddir)/vlc-${VERSION}/activex"
740 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-${VERSION}/activex/ ;
741 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-${VERSION}/activex/ ;
742 unix2dos $(top_builddir)/vlc-${VERSION}/activex/* ;
744 cp $(top_builddir)/activex/*$(LIBEXT) $(top_builddir)/vlc-${VERSION}/activex/ ;
745 $(STRIP) $(top_builddir)/vlc-${VERSION}/activex/*$(LIBEXT);
747 # Rebase all those DLLs to speed up loading (need cygwin rebase)
748 if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
749 find $(top_builddir)/vlc-${VERSION} -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
752 package-wince-base-zip:
754 zip -r vlc-${VERSION}-wince.zip vlc-${VERSION}
756 package-wince: package-wince-base package-wince-base-zip
758 rm -Rf $(top_builddir)/vlc-${VERSION}
762 # Check that tmp isn't in the way
763 @if test -e $(srcdir)/tmp; then \
764 echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
767 echo "OK." ; mkdir $(srcdir)/tmp ; \
770 # Copy relevant files
771 mkdir -p $(srcdir)/tmp/vlc ;
772 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \
773 THANKS NEWS tmp/vlc/ ;
775 # Create debug package
776 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
777 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
778 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
779 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS-debug.zip vlc-${VERSION} )
780 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS-debug.zip $(srcdir)/ ;
781 mv $(srcdir)/tmp/vlc-${VERSION} $(srcdir)/tmp/vlc ;
783 # Create normal package
784 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;
785 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \
786 --strip-debug --strip-unneeded "{}" \; ;
787 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;
788 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;
789 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-${VERSION} ;
790 (cd $(srcdir)/tmp ; zip -9 -r vlc-${VERSION}-BeOS.zip vlc-${VERSION} )
791 mv $(srcdir)/tmp/vlc-${VERSION}-BeOS.zip $(srcdir)/ ;
794 rm -Rf $(srcdir)/tmp ;
797 # Check that the temporary location isn't in the way
798 @if test -e "$(top_builddir)/vlc-${VERSION}/"; then \
799 rm -Rf "$(top_builddir)/vlc-${VERSION}/" ; \
802 echo "Create package directory: vlc-${VERSION}/";
803 mkdir -p "$(top_builddir)/vlc-${VERSION}/";
805 # Copy relevant files
806 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-${VERSION}/VLC.app"
807 cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS $(top_builddir)/vlc-${VERSION}/ && cp -R extras/MacOSX/Delete_Preferences.app $(top_builddir)/vlc-${VERSION}/
810 echo "Creating disk image" ;
811 rm -f "$(top_builddir)/vlc-${VERSION}.dmg" ;
812 hdiutil create -srcfolder "$(top_builddir)/vlc-${VERSION}" \
813 "$(top_builddir)/vlc-${VERSION}.dmg" -format UDZO -quiet ;
814 echo; echo "Disk image creation completed:" ;
815 ls -la "$(top_builddir)/vlc-${VERSION}.dmg" ; echo ;
818 rm -Rf "$(top_builddir)/vlc-${VERSION}" ;
820 package-translations:
821 @if test -e "$(srcdir)/vlc-translations-${VERSION}"; then \
822 echo "Error: please remove $(srcdir)/vlc-translations-${VERSION}, it is in the way"; \
825 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-${VERSION}"; \
828 for i in $(ALL_LINGUAS); do \
829 cp "$(srcdir)/po/$${i}.po" \
830 "$(srcdir)/vlc-translations-${VERSION}/$${i}.po" \
833 cp "$(srcdir)/doc/translations.txt" \
834 "$(srcdir)/vlc-translations-${VERSION}/README.txt"
836 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
837 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
838 echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
839 echo " echo \"Usage: convert-po.sh <.po file>\"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
840 echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
841 echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
842 echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
843 echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
845 $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
846 | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
848 ###############################################################################
849 # PO translation files update
850 ###############################################################################
854 rm -f $(top_srcdir)/po/POTFILES.in
857 echo "# automatically created by make update-po" ; \
859 echo "# main sources" ; \
860 find include src -name '*.[chm]' -o -name '*.[ch]pp' \
861 | grep -v '\(vlc_symbols\|misc/modules_\|src/misc/version.c\)' \
865 find modules -name '*.[chm]' -o -name '*.[ch]pp' \
866 | grep -v '\(\.moc\.\|gui/gtk2/\)' \
868 } > $(top_srcdir)/po/POTFILES.in
869 rm -f $(top_srcdir)/po/vlc.pot
870 cd po && $(MAKE) POTFILES vlc.pot update-po
872 #cd po && $(MAKE) update-po
874 ###############################################################################
876 ###############################################################################
878 @for dep in "" `$(VLC_CONFIG) --target builtin`; do \
879 if test "$${dep}" -nt "$(top_builddir)/vlc$(EXEEXT)"; then \
884 @if test ! -f $@; then printf "" > $@; fi
886 ###############################################################################
887 # Enforce Mac OS X deployment target environment variable
888 ###############################################################################
889 macosx-sdk: Makefile.in $(HEADERS_include) vlc-config vlc-api.pl
890 export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)
892 ###############################################################################
894 ###############################################################################