Makefile.am
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:48k
源码类别:

midi

开发平台:

Unix_Linux

  1. ###############################################################################
  2. # Automake targets and declarations
  3. ###############################################################################
  4. # SUBDIRS stores the directories where a "make" is required when building
  5. # something. DIST_SUBDIRS stores the directories where nothing is built but
  6. # which have makefiles with distribution information.
  7. #  - src (libvlc) is nedeed by modules, mozilla and bindings
  8. #  - libs/* are needed by modules
  9. BASE_SUBDIRS = po compat src bin modules share doc test
  10. EXTRA_SUBDIRS = m4 extras/package/ipkg 
  11. libs/loader libs/srtp libs/unzip 
  12. projects/mozilla projects/activex
  13. DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
  14. SUBDIRS = po compat src
  15. if LOADER
  16. SUBDIRS += libs/loader
  17. endif
  18. if HAVE_LIBGCRYPT
  19. SUBDIRS += libs/srtp
  20. endif
  21. if HAVE_ZLIB
  22. if !HAVE_MINIZIP
  23. SUBDIRS += libs/unzip
  24. endif
  25. endif
  26. if BUILD_VLC
  27. SUBDIRS += bin
  28. endif
  29. SUBDIRS += modules share doc test
  30. if BUILD_MOZILLA
  31. SUBDIRS += projects/mozilla
  32. endif
  33. if BUILD_ACTIVEX
  34. SUBDIRS += projects/activex
  35. endif
  36. EXTRA_DIST = 
  37. HACKING 
  38. INSTALL.win32 
  39. INSTALL.wince 
  40. extras/package/win32/vlc.exe.manifest 
  41. extras/package/win32/libvlc.dll.manifest 
  42. MAINTAINERS 
  43. extras/package/macosx/README.MacOSX.rtf 
  44. vlc-config.in.in 
  45. extras/package/rpm/vlc.fedora.spec 
  46. extras/package/rpm/vlc.altlinux.spec 
  47. extras/package/win32/vlc.win32.nsi.in 
  48. extras/package/win32/languages/bengali.nsh 
  49. extras/package/win32/languages/brazilian_portuguese.nsh 
  50. extras/package/win32/languages/bulgarian.nsh 
  51. extras/package/win32/languages/catalan.nsh 
  52. extras/package/win32/languages/declaration.nsh 
  53. extras/package/win32/languages/dutch.nsh 
  54. extras/package/win32/languages/english.nsh 
  55. extras/package/win32/languages/finnish.nsh 
  56. extras/package/win32/languages/french.nsh 
  57. extras/package/win32/languages/german.nsh 
  58. extras/package/win32/languages/hungarian.nsh 
  59. extras/package/win32/languages/italian.nsh 
  60. extras/package/win32/languages/occitan.nsh 
  61. extras/package/win32/languages/polish.nsh 
  62. extras/package/win32/languages/punjabi.nsh 
  63. extras/package/win32/languages/romanian.nsh 
  64. extras/package/win32/languages/schinese.nsh 
  65. extras/package/win32/languages/slovak.nsh 
  66. extras/package/win32/languages/slovenian.nsh 
  67. extras/package/win32/languages/sorani.nsh 
  68. extras/package/win32/languages/spanish.nsh
  69. dist_noinst_SCRIPTS = bootstrap toolbox
  70. nodist_noinst_SCRIPTS = compile
  71. BUILT_SOURCES_distclean = vlc-config extras/package/win32/vlc.win32.nsi
  72. if HAVE_DARWIN
  73. BUILT_SOURCES_clean = macosx-sdk
  74. else
  75. BUILT_SOURCES_clean =
  76. endif
  77. BUILT_SOURCES = $(BUILT_SOURCES_distclean) $(BUILT_SOURCES_clean)
  78. SUFFIXES = 
  79. DISTCHECK_CONFIGURE_FLAGS = 
  80. --enable-fast-install 
  81. --disable-dbus 
  82. --disable-dvd --disable-mad --disable-libmpeg2 
  83. --disable-ffmpeg --disable-faad --disable-skins2 
  84. --disable-live555 
  85. --disable-fribidi --disable-glx
  86. ACLOCAL_AMFLAGS = -I m4
  87. AUTOMAKE_OPTIONS = 
  88. 1.9 
  89. -Wall 
  90. check-news 
  91. dist-bzip2 
  92. no-dist-gzip
  93. # std-options
  94. ChangeLog: Makefile.am
  95. rm -f -- "$@"
  96. cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
  97. ln -sf doc/ChangeLog-2009 "$@"
  98. ###############################################################################
  99. # MacOS X project
  100. ###############################################################################
  101. EXTRA_DIST += 
  102. extras/package/macosx/Resources/English.lproj/MainMenu.nib/classes.nib 
  103. extras/package/macosx/Resources/English.lproj/MainMenu.nib/info.nib 
  104. extras/package/macosx/Resources/English.lproj/MainMenu.nib/keyedobjects.nib 
  105. extras/package/macosx/Resources/English.lproj/MediaInfo.nib/classes.nib 
  106. extras/package/macosx/Resources/English.lproj/MediaInfo.nib/info.nib 
  107. extras/package/macosx/Resources/English.lproj/MediaInfo.nib/keyedobjects.nib 
  108. extras/package/macosx/Resources/English.lproj/About.nib/classes.nib 
  109. extras/package/macosx/Resources/English.lproj/About.nib/info.nib 
  110. extras/package/macosx/Resources/English.lproj/About.nib/keyedobjects.nib 
  111. extras/package/macosx/Resources/English.lproj/Open.nib/classes.nib 
  112. extras/package/macosx/Resources/English.lproj/Open.nib/info.nib 
  113. extras/package/macosx/Resources/English.lproj/Open.nib/keyedobjects.nib 
  114. extras/package/macosx/Resources/English.lproj/Preferences.nib/classes.nib 
  115. extras/package/macosx/Resources/English.lproj/Preferences.nib/info.nib 
  116. extras/package/macosx/Resources/English.lproj/Preferences.nib/keyedobjects.nib 
  117. extras/package/macosx/Resources/English.lproj/Wizard.nib/classes.nib 
  118. extras/package/macosx/Resources/English.lproj/Wizard.nib/info.nib 
  119. extras/package/macosx/Resources/English.lproj/Wizard.nib/keyedobjects.nib 
  120. extras/package/macosx/Resources/English.lproj/Bookmarks.nib/classes.nib 
  121. extras/package/macosx/Resources/English.lproj/Bookmarks.nib/info.nib 
  122. extras/package/macosx/Resources/English.lproj/Bookmarks.nib/keyedobjects.nib 
  123. extras/package/macosx/Resources/English.lproj/Extended.nib/classes.nib 
  124. extras/package/macosx/Resources/English.lproj/Extended.nib/info.nib 
  125. extras/package/macosx/Resources/English.lproj/Extended.nib/keyedobjects.nib 
  126. extras/package/macosx/Resources/English.lproj/Update.nib/classes.nib 
  127. extras/package/macosx/Resources/English.lproj/Update.nib/info.nib 
  128. extras/package/macosx/Resources/English.lproj/Update.nib/keyedobjects.nib 
  129. extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/classes.nib 
  130. extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/info.nib 
  131. extras/package/macosx/Resources/English.lproj/CoreDialogs.nib/keyedobjects.nib 
  132. extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/classes.nib 
  133. extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/info.nib 
  134. extras/package/macosx/Resources/English.lproj/ErrorPanel.nib/keyedobjects.nib 
  135. extras/package/macosx/Resources/English.lproj/InfoPlist.strings.in 
  136. extras/package/macosx/Resources/aiff.icns 
  137. extras/package/macosx/Resources/audio.icns 
  138. extras/package/macosx/Resources/avi.icns 
  139. extras/package/macosx/Resources/flv.icns 
  140. extras/package/macosx/Resources/generic.icns 
  141. extras/package/macosx/Resources/m4a.icns 
  142. extras/package/macosx/Resources/m4v.icns 
  143. extras/package/macosx/Resources/mkv.icns 
  144. extras/package/macosx/Resources/mov.icns 
  145. extras/package/macosx/Resources/movie.icns 
  146. extras/package/macosx/Resources/mp3.icns 
  147. extras/package/macosx/Resources/mpeg.icns 
  148. extras/package/macosx/Resources/ogg.icns 
  149. extras/package/macosx/Resources/playlist.icns 
  150. extras/package/macosx/Resources/rm.icns 
  151. extras/package/macosx/Resources/subtitle.icns 
  152. extras/package/macosx/Resources/vob.icns 
  153. extras/package/macosx/Resources/wav.icns 
  154. extras/package/macosx/Resources/vlc.icns 
  155. extras/package/macosx/Resources/wma.icns 
  156. extras/package/macosx/Resources/wmv.icns 
  157. extras/package/macosx/Resources/pause.png 
  158. extras/package/macosx/Resources/pause_blue.png 
  159. extras/package/macosx/Resources/play.png 
  160. extras/package/macosx/Resources/play_blue.png 
  161. extras/package/macosx/Resources/stop.png 
  162. extras/package/macosx/Resources/stop_blue.png 
  163. extras/package/macosx/Resources/display_left.png 
  164. extras/package/macosx/Resources/display_middle.png 
  165. extras/package/macosx/Resources/display_right.png 
  166. extras/package/macosx/Resources/display_slider.png 
  167. extras/package/macosx/Resources/display_track.png 
  168. extras/package/macosx/Resources/equalizerdrawer_active.png 
  169. extras/package/macosx/Resources/equalizerdrawer_blue.png 
  170. extras/package/macosx/Resources/fullscreen_active.png 
  171. extras/package/macosx/Resources/fullscreen_blue.png 
  172. extras/package/macosx/Resources/next_active.png 
  173. extras/package/macosx/Resources/next_blue.png 
  174. extras/package/macosx/Resources/playlistdrawer_active.png 
  175. extras/package/macosx/Resources/playlistdrawer_blue.png 
  176. extras/package/macosx/Resources/previous_active.png 
  177. extras/package/macosx/Resources/previous_blue.png 
  178. extras/package/macosx/Resources/skip_forward_active.png 
  179. extras/package/macosx/Resources/skip_forward_blue.png 
  180. extras/package/macosx/Resources/skip_previous_active.png 
  181. extras/package/macosx/Resources/skip_previous_blue.png 
  182. extras/package/macosx/Resources/volume_high.png 
  183. extras/package/macosx/Resources/volume_low.png 
  184. extras/package/macosx/Resources/volumeslider_blue.png 
  185. extras/package/macosx/Resources/volumeslider_normal.png 
  186. extras/package/macosx/Resources/volumetrack.png 
  187. extras/package/macosx/Resources/about_bg.png 
  188. extras/package/macosx/Resources/skip_forward_active_embedded.png 
  189. extras/package/macosx/Resources/play_embedded.png 
  190. extras/package/macosx/Resources/pause_embedded.png 
  191. extras/package/macosx/Resources/skip_previous_active_embedded.png 
  192. extras/package/macosx/Resources/pause_embedded_blue.png 
  193. extras/package/macosx/Resources/play_embedded_blue.png 
  194. extras/package/macosx/Resources/skip_forward_embedded_blue.png 
  195. extras/package/macosx/Resources/skip_previous_embedded_blue.png 
  196. extras/package/macosx/Resources/vlc.scriptSuite 
  197. extras/package/macosx/Resources/vlc.scriptTerminology 
  198. extras/package/macosx/Resources/README 
  199. extras/package/macosx/Resources/add_embedded.png 
  200. extras/package/macosx/Resources/add_embedded_blue.png 
  201. extras/package/macosx/Resources/repeat_embedded.png 
  202. extras/package/macosx/Resources/repeat_embedded_blue.png 
  203. extras/package/macosx/Resources/repeat_single_embedded_blue.png 
  204. extras/package/macosx/Resources/shuffle_embedded.png 
  205. extras/package/macosx/Resources/shuffle_embedded_blue.png 
  206. extras/package/macosx/Resources/fs_volume_slider_knob_highlight.png 
  207. extras/package/macosx/Resources/fs_volume_slider_knob.png 
  208. extras/package/macosx/Resources/fs_volume_slider_bar.png 
  209. extras/package/macosx/Resources/fs_volume_mute_highlight.png 
  210. extras/package/macosx/Resources/fs_volume_mute.png 
  211. extras/package/macosx/Resources/fs_volume_max_highlight.png 
  212. extras/package/macosx/Resources/fs_volume_max.png 
  213. extras/package/macosx/Resources/fs_time_slider_knob_highlight.png 
  214. extras/package/macosx/Resources/fs_time_slider_knob.png 
  215. extras/package/macosx/Resources/fs_time_slider.png 
  216. extras/package/macosx/Resources/fs_stop_highlight.png 
  217. extras/package/macosx/Resources/fs_stop.png 
  218. extras/package/macosx/Resources/fs_skip_previous_highlight.png 
  219. extras/package/macosx/Resources/fs_skip_previous.png 
  220. extras/package/macosx/Resources/fs_skip_next_highlight.png 
  221. extras/package/macosx/Resources/fs_skip_next.png 
  222. extras/package/macosx/Resources/fs_rewind_highlight.png 
  223. extras/package/macosx/Resources/fs_rewind.png 
  224. extras/package/macosx/Resources/fs_play_highlight.png 
  225. extras/package/macosx/Resources/fs_play.png 
  226. extras/package/macosx/Resources/fs_pause_highlight.png 
  227. extras/package/macosx/Resources/fs_pause.png 
  228. extras/package/macosx/Resources/fs_forward_highlight.png 
  229. extras/package/macosx/Resources/fs_forward.png 
  230. extras/package/macosx/Resources/fs_exit_fullscreen_highlight.png 
  231. extras/package/macosx/Resources/fs_exit_fullscreen.png 
  232. extras/package/macosx/Resources/fs_background.png 
  233. extras/package/macosx/Resources/add_embedded_graphite.png 
  234. extras/package/macosx/Resources/equalizerdrawer_graphite.png 
  235. extras/package/macosx/Resources/fullscreen_graphite.png 
  236. extras/package/macosx/Resources/next_graphite.png 
  237. extras/package/macosx/Resources/pause_embedded_graphite.png 
  238. extras/package/macosx/Resources/pause_graphite.png 
  239. extras/package/macosx/Resources/play_embedded_graphite.png 
  240. extras/package/macosx/Resources/play_graphite.png 
  241. extras/package/macosx/Resources/playlistdrawer_graphite.png 
  242. extras/package/macosx/Resources/previous_graphite.png 
  243. extras/package/macosx/Resources/repeat_embedded_graphite.png 
  244. extras/package/macosx/Resources/repeat_single_embedded_graphite.png 
  245. extras/package/macosx/Resources/shuffle_embedded_graphite.png 
  246. extras/package/macosx/Resources/skip_forward_embedded_graphite.png 
  247. extras/package/macosx/Resources/skip_forward_graphite.png 
  248. extras/package/macosx/Resources/skip_previous_embedded_graphite.png 
  249. extras/package/macosx/Resources/skip_previous_graphite.png 
  250. extras/package/macosx/Resources/stop_graphite.png 
  251. extras/package/macosx/Resources/volumeslider_graphite.png 
  252. extras/package/macosx/Resources/noart.png 
  253. extras/package/macosx/Resources/spref_cone_Audio_64.png 
  254. extras/package/macosx/Resources/spref_cone_Hotkeys_64.png 
  255. extras/package/macosx/Resources/spref_cone_Input_64.png 
  256. extras/package/macosx/Resources/spref_cone_Interface_64.png 
  257. extras/package/macosx/Resources/spref_cone_Subtitles_64.png 
  258. extras/package/macosx/Resources/spref_cone_Video_64.png 
  259. extras/package/macosx/fullscreen_panel.svg 
  260. extras/package/macosx/ub.sh 
  261. extras/package/macosx/vlc.xcodeproj/project.pbxproj 
  262. extras/package/macosx/Delete_Preferences.app/Contents/Info.plist 
  263. extras/package/macosx/Delete_Preferences.app/Contents/PkgInfo 
  264. extras/package/macosx/Delete_Preferences.app/Contents/MacOS/applet 
  265. extras/package/macosx/Delete_Preferences.app/Contents/Resources/description.rtfd/TXT.rtf 
  266. extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.icns 
  267. extras/package/macosx/Delete_Preferences.app/Contents/Resources/applet.rsrc 
  268. extras/package/macosx/Delete_Preferences.app/Contents/Resources/Scripts/main.scpt 
  269. extras/package/macosx/plugin/Info.plist.in 
  270. extras/package/macosx/plugin/InstallerInfo.plist.in 
  271. extras/package/macosx/plugin/InstallerDescription.plist 
  272. extras/package/macosx/plugin/pbdevelopment.plist 
  273. extras/package/macosx/eyetvplugin/EyeTVPluginDefs.h 
  274. extras/package/macosx/eyetvplugin/Info.plist 
  275. extras/package/macosx/eyetvplugin/eyetvplugin.c 
  276. extras/package/macosx/eyetvplugin/eyetvplugin.h 
  277. extras/package/macosx/eyetvplugin/English.lproj/InfoPlist.strings 
  278. extras/package/macosx/eyetvplugin/eyetvplugin.xcodeproj/project.pbxproj 
  279. extras/package/macosx/README.MacOSX.rtf 
  280. extras/package/macosx/Info.plist.in
  281. ###############################################################################
  282. # Various utilities ( editor syntax files, D-Bus controller ... )
  283. ##############################################################################
  284. EXTRA_DIST += 
  285. extras/analyser/zsh_completion.sh 
  286. extras/analyser/zsh.cpp 
  287. extras/analyser/emacs.init 
  288. extras/analyser/vlc.vim 
  289. extras/analyser/valgrind.suppressions 
  290. extras/buildsystem/make.pl 
  291. extras/misc/mpris.py 
  292. extras/misc/mpris.glade
  293. dist-hook:
  294. distdir=$(distdir) srcdir=$(srcdir) $(SHELL) $(srcdir)/toolbox --dist-contrib
  295. ###############################################################################
  296. # Building libvlc
  297. ###############################################################################
  298. noinst_SCRIPTS = vlc-config
  299. vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
  300. $(SHELL) ./config.status --file=$@
  301. chmod 0755 $@
  302. touch $@
  303. vlc-config.in: vlc-config.in.in
  304. ./config.status --recheck
  305. touch $@
  306. CLEANFILES = $(BUILT_SOURCES_clean)
  307. DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
  308. MAINTAINERCLEANFILES = ChangeLog
  309. # Shortcut for developers to rebuild the core (libvlc + vlc)
  310. # Don't use it if you don't know what it is about.
  311. # Don't complain if it doesn't work. -- Courmisch
  312. libvlc:
  313. cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
  314. core: libvlc
  315. cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT)
  316. doc:
  317. cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
  318. .PHONY: libvlc core doc
  319. #To get some nice output
  320. nice:
  321. $(top_builddir)/compile
  322. if HAVE_BEOS
  323. noinst_DATA = vlc-bundle
  324. vlc-bundle: vlc
  325. rm -Rf $(top_builddir)/vlc-bundle ; mkdir -p $(top_builddir)/vlc-bundle
  326. cp $(top_builddir)/vlc $(top_builddir)/vlc-bundle/
  327. xres -o $(top_builddir)/vlc-bundle/vlc $(srcdir)/share/vlc_beos.rsrc
  328. for i in "" `$(VLC_CONFIG) --target plugin` ; do 
  329.   if test -n "$$i" ; then 
  330.     mkdir -p $(top_builddir)/vlc-bundle/plugins ; 
  331.     cp "$$i$(LIBEXT)" $(top_builddir)/vlc-bundle/plugins/ ; 
  332.   fi ; 
  333. done
  334. if test -d $(top_builddir)/extras/contrib/vlc-lib ; then 
  335.   mkdir -p $(top_builddir)/vlc-bundle/lib ; 
  336.   for i in $(top_builddir)/extras/contrib/vlc-lib/*.so ; do 
  337.     cp $$i $(top_builddir)/vlc-bundle/lib/ ; 
  338.   done ; 
  339. fi
  340. cat $(top_srcdir)/po/LINGUAS | while read i; do 
  341.   mkdir -p "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES" ; 
  342.   cp "$(top_builddir)/po/$$i.gmo" 
  343.     "$(top_builddir)/vlc-bundle/share/locale/$$i/LC_MESSAGES/vlc.mo" || true ; 
  344. done
  345. find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" ;
  346. endif
  347. ###############################################################################
  348. # Building aliases
  349. ###############################################################################
  350. ALL_ALIASES = cvlc rvlc svlc qvlc nvlc mvlc
  351. bin_SCRIPTS = $(ALIASES)
  352. CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
  353. EXTRA_SCRIPTS = $(ALL_ALIASES)
  354. dist_noinst_SCRIPTS += make-alias
  355. MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
  356. cvlc: make-alias Makefile
  357. $(MKALIAS) dummy
  358. rvlc: make-alias Makefile
  359. $(MKALIAS) rc
  360. svlc: make-alias Makefile
  361. $(MKALIAS) skins2
  362. qvlc: make-alias Makefile
  363. $(MKALIAS) qt4
  364. nvlc: make-alias Makefile
  365. $(MKALIAS) ncurses
  366. mvlc: make-alias Makefile
  367. $(MKALIAS) maemo
  368. if BUILD_VLC
  369. noinst_SCRIPTS += vlc$(EXEEXT)
  370. endif
  371. vlc$(EXEEXT):
  372. ln -sf bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
  373. if HAVE_DARWIN
  374. if BUILD_VLC
  375. # Create the MacOS X app
  376. noinst_DATA = VLC.app
  377. endif
  378. endif
  379. # VLC-release.app for packaging and giving it to your friends
  380. # use package-macosx to get a nice dmg
  381. VLC-release.app: vlc
  382. ( cd src && make install )
  383. rm -Rf "$(top_builddir)/tmp"
  384. mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
  385. rm -Rf $(top_builddir)/VLC-release.app
  386. for i in vlc.xcodeproj Resources README.MacOSX.rtf ; do 
  387.   cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; 
  388. done
  389. REVISION=`git describe --always` && 
  390. cat $(top_builddir)/extras/package/macosx/Info.plist | 
  391. sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
  392. cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
  393. for i in AUTHORS COPYING THANKS; do 
  394.   cp "$(srcdir)/$$i" $(top_builddir)/tmp; 
  395. done
  396. mkdir -p $(top_builddir)/tmp/modules/audio_output
  397. mkdir -p $(top_builddir)/tmp/modules/gui/macosx
  398. for i in 
  399.     AppleRemote.h 
  400.     AppleRemote.m 
  401.     about.h 
  402.     about.m 
  403.     applescript.h 
  404.     applescript.m 
  405.     controls.h 
  406.     controls.m 
  407.     equalizer.h 
  408.     equalizer.m 
  409.     intf.h 
  410.     intf.m 
  411.     macosx.m 
  412.     misc.h 
  413.     misc.m 
  414.     open.h 
  415.     open.m 
  416.     output.h 
  417.     output.m 
  418.     playlist.h 
  419.     playlist.m 
  420.     playlistinfo.h 
  421.     playlistinfo.m 
  422.     prefs_widgets.h 
  423.     prefs_widgets.m 
  424.     prefs.h 
  425.     prefs.m 
  426.     simple_prefs.h 
  427.     simple_prefs.m 
  428.     vout.h 
  429.     voutgl.m 
  430.     wizard.h 
  431.     wizard.m 
  432.     extended.h 
  433.     extended.m 
  434.     bookmarks.h 
  435.     bookmarks.m 
  436.     update.h 
  437.     update.m 
  438.     coredialogs.h 
  439.     coredialogs.m 
  440.     embeddedwindow.h 
  441.     embeddedwindow.m 
  442.     fspanel.h 
  443.     fspanel.m 
  444.     vout.m; do 
  445.   cp "$(srcdir)/modules/gui/macosx/$$i" 
  446.              $(top_builddir)/tmp/modules/gui/macosx; 
  447. done
  448. cd $(top_builddir)/tmp/extras/package/macosx && xcodebuild -target vlc | grep -v '^([ t]|$$)' && 
  449.     cd ../../../../ && 
  450.     cp -R $(top_builddir)/tmp/extras/package/macosx/build/Default/VLC.bundle 
  451.           $(top_builddir)/VLC-release.app; 
  452. rm -Rf $(top_builddir)/tmp
  453. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS
  454. PRODUCT="VLC-release.app" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
  455. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua
  456. for i in $(srcdir)/share/lua/*.* ; do 
  457.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/`basename $${i}` ; 
  458. done ; 
  459. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist
  460. for i in $(srcdir)/share/lua/playlist/*.* ; do 
  461.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/playlist/`basename $${i}` ; 
  462. done ; 
  463. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta
  464. for i in $(srcdir)/share/lua/meta/*.* ; do 
  465.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/meta/`basename $${i}` ; 
  466. done ; 
  467. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf
  468. for i in $(srcdir)/share/lua/intf/*.* ; do 
  469.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/`basename $${i}` ; 
  470. done ; 
  471. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules
  472. for i in $(srcdir)/share/lua/intf/modules/*.* ; do 
  473.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/intf/modules/`basename $${i}` ; 
  474. done ; 
  475. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs
  476. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js
  477. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images
  478. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests
  479. $(INSTALL) -m 644 $(srcdir)/share/lua/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/.hosts
  480. for i in $(srcdir)/share/lua/http/*.* ; do 
  481.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/`basename $${i}` ; 
  482. done
  483. for i in $(srcdir)/share/lua/http/dialogs/* ; do 
  484.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/dialogs/`basename $${i}` ; 
  485. done
  486. for i in $(srcdir)/share/lua/http/js/*.* ; do 
  487.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/js/`basename $${i}` ; 
  488. done
  489. for i in $(srcdir)/share/lua/http/images/*.* ; do 
  490.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/images/`basename $${i}` ; 
  491. done
  492. for i in $(srcdir)/share/lua/http/requests/*.* ; do 
  493.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/`basename $${i}` ; 
  494. done
  495. $(INSTALL) -m 644 $(srcdir)/share/lua/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/lua/http/requests/readme.txt
  496. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs
  497. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js
  498. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images
  499. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests
  500. $(INSTALL) -m 644 $(srcdir)/share/http/.hosts $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/.hosts
  501. for i in $(srcdir)/share/http/*.* ; do 
  502.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/`basename $${i}` ; 
  503. done
  504. for i in $(srcdir)/share/http/dialogs/* ; do 
  505.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/dialogs/`basename $${i}` ; 
  506. done
  507. for i in $(srcdir)/share/http/js/*.* ; do 
  508.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/js/`basename $${i}` ; 
  509. done
  510. for i in $(srcdir)/share/http/images/*.* ; do 
  511.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/images/`basename $${i}` ; 
  512. done
  513. for i in $(srcdir)/share/http/requests/*.* ; do 
  514.   $(INSTALL) -m 644 $${i} $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/`basename $${i}` ; 
  515. done
  516. $(INSTALL) -m 644 $(srcdir)/share/http/requests/readme $(top_builddir)/VLC-release.app/Contents/MacOS/share/http/requests/readme.txt
  517. $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale
  518. cat $(top_srcdir)/po/LINGUAS | while read i; do 
  519.   $(INSTALL) -d $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; 
  520.   $(INSTALL) $(srcdir)/po/$${i}.gmo $(top_builddir)/VLC-release.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; 
  521.   mkdir -p $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; 
  522.   ln -sf ../English.lproj/InfoPlist.strings 
  523.       $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; 
  524.   ln -sf ../English.lproj/MainMenu.nib 
  525.       $(top_builddir)/VLC-release.app/Contents/Resources/$${i}.lproj ; 
  526. done
  527. printf "APPLVLC#" >| $(top_builddir)/VLC-release.app/Contents/PkgInfo
  528. find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name classes.nib -delete;
  529. find $(top_builddir)/VLC-release.app/Contents/Resources/English.lproj -name info.nib -delete;
  530. find $(top_builddir)/VLC-release.app -type d -exec chmod ugo+rx '{}' ;
  531. find $(top_builddir)/VLC-release.app -type f -exec chmod ugo+r '{}' ;
  532. # This is just for development purposes. 
  533. # The resulting VLC.app will only run in this tree.
  534. VLC.app: vlc $(top_builddir)/src/.libs/libvlccore.dylib $(top_builddir)/src/.libs/libvlc.dylib
  535. (cd src && make install)
  536. rm -Rf $(top_builddir)/tmp
  537. mkdir -p "$(top_builddir)/tmp/extras/package/macosx"
  538. rm -Rf $(top_builddir)/VLC.app
  539. for i in vlc.xcodeproj Resources README.MacOSX.rtf; do 
  540.   cp -R $(srcdir)/extras/package/macosx/$$i $(top_builddir)/tmp/extras/package/macosx/; 
  541. done
  542. REVISION=`git describe --always` && 
  543. cat $(top_builddir)/extras/package/macosx/Info.plist | 
  544. sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
  545. cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
  546. for i in AUTHORS COPYING THANKS; do 
  547.   cp "$(srcdir)/$$i" $(top_builddir)/tmp; 
  548. done
  549. mkdir -p $(top_builddir)/tmp/modules/audio_output
  550. mkdir -p $(top_builddir)/tmp/modules/gui/macosx
  551. for i in 
  552.     AppleRemote.h 
  553.     AppleRemote.m 
  554.     about.h 
  555.     about.m 
  556.     applescript.h 
  557.     applescript.m 
  558.     controls.h 
  559.     controls.m 
  560.     equalizer.h 
  561.     equalizer.m 
  562.     intf.h 
  563.     intf.m 
  564.     macosx.m 
  565.     misc.h 
  566.     misc.m 
  567.     open.h 
  568.     open.m 
  569.     output.h 
  570.     output.m 
  571.     playlist.h 
  572.     playlist.m 
  573.     playlistinfo.h 
  574.     playlistinfo.m 
  575.     prefs_widgets.h 
  576.     prefs_widgets.m 
  577.     prefs.h 
  578.     prefs.m 
  579.     simple_prefs.h 
  580.     simple_prefs.m 
  581.     vout.h 
  582.     voutgl.m 
  583.     wizard.h 
  584.     wizard.m 
  585.     extended.h 
  586.     extended.m 
  587.     bookmarks.h 
  588.     bookmarks.m 
  589.     update.h 
  590.     update.m 
  591.     coredialogs.h 
  592.     coredialogs.m 
  593.     embeddedwindow.h 
  594.     embeddedwindow.m 
  595.     fspanel.h 
  596.     fspanel.m 
  597.     vout.m; do 
  598.   cp "$(srcdir)/modules/gui/macosx/$$i" 
  599.              $(top_builddir)/tmp/modules/gui/macosx; 
  600. done
  601. cd $(top_builddir)/tmp/extras/package/macosx && xcodebuild -target vlc | grep -v '^([ t]|$$)' && 
  602.     cd ../../../../ && 
  603.     cp -R $(top_builddir)/tmp/extras/package/macosx/build/Default/VLC.bundle 
  604.           $(top_builddir)/VLC.app
  605. $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
  606. touch $(top_builddir)/VLC.app/Contents/MacOS/VLC
  607. chmod +x $(top_builddir)/VLC.app/Contents/MacOS/VLC
  608. $(INSTALL) $(top_builddir)/bin/.libs/vlc $(top_builddir)/VLC.app/Contents/MacOS/VLC
  609. ln -sf ../../../modules $(top_builddir)/VLC.app/Contents/MacOS/modules
  610. install -d $(top_builddir)/VLC.app/Contents/MacOS/share
  611. for i in `ls $(srcdir)/share`; do 
  612.    ln -sf `pwd`/$(srcdir)/share/$$i $(top_builddir)/VLC.app/Contents/MacOS/share/; 
  613. done
  614. $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/share/locale
  615. cat $(top_srcdir)/po/LINGUAS | while read i; do 
  616.   mkdir -p $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES ; 
  617.   ln -sfn `pwd`/$(srcdir)/po/$${i}.gmo $(top_builddir)/VLC.app/Contents/MacOS/share/locale/$${i}/LC_MESSAGES/vlc.mo || true ; 
  618.   mkdir -p $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; 
  619.   ln -sf ../English.lproj/InfoPlist.strings 
  620.       $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; 
  621.   ln -sf ../English.lproj/MainMenu.nib 
  622.       $(top_builddir)/VLC.app/Contents/Resources/$${i}.lproj ; 
  623. done
  624. printf "APPLVLC#" >| $(top_builddir)/VLC.app/Contents/PkgInfo
  625. ###############################################################################
  626. # Building architecture-specific binary packages
  627. ###############################################################################
  628. # XXX: this rule is probably only useful to you if you have exactly
  629. # the same setup as the maintaner(s).
  630. #
  631. ############################################################################
  632. ## Win                                                                    ##
  633. ############################################################################
  634. win32_destdir=$(top_builddir)/vlc-$(VERSION)
  635. win32_debugdir=$(top_builddir)/symbols-$(VERSION)
  636. npvlc=vlc-$(VERSION)/mozilla/npvlc$(LIBEXT)
  637. axvlc=vlc-$(VERSION)/activex/axvlc$(LIBEXT)
  638. win32_lua_destdir=$(win32_destdir)/lua
  639. win32_http_destdir=$(win32_destdir)/http
  640. #Win-common if for win32 and wince
  641. package-win-common:
  642. # Check that tmp isn't in the way
  643. @if test -e "$(win32_destdir)"; then 
  644.   echo "Error: please remove $(win32_destdir), it is in the way"; 
  645.   false; 
  646. else 
  647.   echo "OK."; mkdir -p "$(win32_destdir)"; 
  648. fi
  649. # Copy relevant files
  650. # Copy executables and libs
  651. cp "$(top_builddir)/bin/.libs/vlc$(EXEEXT)" "$(win32_destdir)/"
  652. cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(win32_destdir)/"
  653. cp "$(top_srcdir)/extras/package/win32/libvlc.dll.manifest" "$(win32_destdir)/"
  654. cp "$(top_builddir)/src/.libs/libvlccore$(LIBEXT)" "$(win32_destdir)/"
  655. cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "$(win32_destdir)/"
  656. # Copy Text files
  657. for file in AUTHORS MAINTAINERS THANKS ; 
  658.   do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(win32_destdir)/$${file}.txt" ; done;
  659. for file in NEWS COPYING README; 
  660.   do cp "$(srcdir)/$$file" "$(win32_destdir)/$${file}.txt"; done
  661. unix2dos "$(win32_destdir)/"*.txt || echo "WARNING: this shouldn't happen"
  662. # Necessary icons
  663. cp $(srcdir)/share/vlc.ico $(win32_destdir)/
  664. # Copy the locales
  665. mkdir -p $(win32_destdir)/locale
  666. cat $(top_srcdir)/po/LINGUAS | while read i; do 
  667.   mkdir -p "$(win32_destdir)/locale/$${i}/LC_MESSAGES" ; 
  668.   cp "$(srcdir)/po/$${i}.gmo" 
  669.     "$(win32_destdir)/locale/$${i}/LC_MESSAGES/vlc.mo" 
  670.             || true ; 
  671. done
  672. mkdir -p $(win32_destdir)/locale/qt4/
  673. cp $(QT4LOCALEDIR)/*.qm $(win32_destdir)/locale/qt4/ || true
  674. #  Mozilla plugin
  675. if BUILD_MOZILLA
  676. mkdir -p "$(win32_destdir)/mozilla"
  677. cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(win32_destdir)/mozilla/
  678. cp $(top_srcdir)/projects/mozilla/npvlc.dll.manifest $(win32_destdir)/mozilla/
  679. endif
  680. # ActiveX plugin
  681. if BUILD_ACTIVEX
  682. mkdir -p "$(win32_destdir)/activex"
  683. cp $(srcdir)/projects/activex/README.TXT  $(win32_destdir)/activex/
  684. cp $(srcdir)/projects/activex/test.html  $(win32_destdir)/activex/
  685. unix2dos $(win32_destdir)/activex/*
  686. cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(win32_destdir)/activex/
  687. cp $(top_srcdir)/projects/activex/axvlc.dll.manifest $(win32_destdir)/activex/
  688. endif
  689. # Rebase all those DLLs to speed up loading (need cygwin rebase)
  690. if rebase -b 0x42 /dev/null >/dev/null 2>&1; then 
  691. find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; 
  692. fi
  693. package-win32-base-debug: package-win-common
  694. # Copy relevant files
  695. # Script installer
  696. cp "$(top_builddir)/extras/package/win32/vlc.win32.nsi" "$(win32_destdir)/"
  697. mkdir "$(win32_destdir)/languages"
  698. cp $(srcdir)/extras/package/win32/languages/*.nsh "$(win32_destdir)/languages/"
  699. # Plugins
  700. mkdir -p "$(win32_destdir)/plugins"
  701. find modules/ -name '*_plugin$(LIBEXT)' | while read i; do 
  702.   if test -n "$$i" ; then 
  703.     $(INSTALL) "$$i" "vlc-$(VERSION)/plugins/" ; 
  704.   fi ; done
  705. # Contrib *.dll's
  706. cp $(srcdir)/extras/contrib/lib/*.dll "vlc-$(VERSION)/" || true
  707. # Copy the lua scripts (HTTP)
  708. if BUILD_LUA
  709. mkdir -p "$(win32_lua_destdir)/http/images"
  710. mkdir -p "$(win32_lua_destdir)/http/requests"
  711. mkdir -p "$(win32_lua_destdir)/http/js"
  712. mkdir -p "$(win32_lua_destdir)/http/dialogs"
  713. cp $(srcdir)/share/lua/http/*.html $(win32_lua_destdir)/http/
  714. unix2dos $(win32_lua_destdir)/http/*.html
  715. cp $(srcdir)/share/lua/http/.hosts $(win32_lua_destdir)/http/
  716. unix2dos $(win32_lua_destdir)/http/.hosts
  717. cp $(srcdir)/share/lua/http/*.css $(win32_lua_destdir)/http/
  718. unix2dos $(win32_lua_destdir)/http/*.css
  719. cp $(srcdir)/share/lua/http/js/*.js $(win32_lua_destdir)/http/js/
  720. unix2dos $(win32_lua_destdir)/http/js/*.js
  721. cp $(srcdir)/share/lua/http/dialogs/* $(win32_lua_destdir)/http/dialogs/
  722. unix2dos $(win32_lua_destdir)/http/dialogs/*
  723. cp $(srcdir)/share/lua/http/dialogs/.hosts $(win32_lua_destdir)/http/dialogs/
  724. unix2dos $(win32_lua_destdir)/http/dialogs/.hosts
  725. cp $(srcdir)/share/lua/http/*.ico $(win32_lua_destdir)/http/
  726. cp $(srcdir)/share/lua/http/images/*.png $(win32_lua_destdir)/http/images/
  727. cp $(srcdir)/share/lua/http/requests/*.xml $(win32_lua_destdir)/http/requests/
  728. unix2dos $(win32_lua_destdir)/http/requests/*.xml
  729. cp $(srcdir)/share/lua/http/requests/readme $(win32_lua_destdir)/http/requests/readme.txt
  730. unix2dos $(win32_lua_destdir)/http/requests/readme.txt
  731. endif
  732. if BUILD_LUA
  733. #Lua Scripts
  734. $(INSTALL) -d $(win32_lua_destdir)
  735. for i in $(srcdir)/share/lua/*.* ; do 
  736.   $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/`basename $${i}` ; 
  737. done
  738. $(INSTALL) -d $(win32_lua_destdir)/playlist
  739. for i in $(srcdir)/share/lua/playlist/*.* ; do 
  740.   $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/playlist/`basename $${i}` ; 
  741. done
  742. $(INSTALL) -d $(win32_lua_destdir)/meta
  743. for i in $(srcdir)/share/lua/meta/*.* ; do 
  744.   $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/meta/`basename $${i}` ; 
  745. done
  746. $(INSTALL) -d $(win32_lua_destdir)/intf
  747. for i in $(srcdir)/share/lua/intf/*.* ; do 
  748.   $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/`basename $${i}` ; 
  749. done
  750. $(INSTALL) -d $(win32_lua_destdir)/intf/modules
  751. for i in $(srcdir)/share/lua/intf/modules/*.* ; do 
  752.   $(INSTALL) -m 644 -- "$${i}" $(win32_lua_destdir)/intf/modules/`basename $${i}` ; 
  753. done
  754. endif
  755. # Copy the http files
  756. if BUILD_HTTPD
  757. mkdir -p "$(win32_http_destdir)/images"
  758. mkdir -p "$(win32_http_destdir)/requests"
  759. mkdir -p "$(win32_http_destdir)/js"
  760. mkdir -p "$(win32_http_destdir)/dialogs"
  761. cp $(srcdir)/share/http/*.html $(win32_http_destdir)/
  762. unix2dos $(win32_http_destdir)/*.html
  763. cp $(srcdir)/share/http/.hosts $(win32_http_destdir)/
  764. unix2dos $(win32_http_destdir)/.hosts
  765. cp $(srcdir)/share/http/*.css $(win32_http_destdir)/
  766. unix2dos $(win32_http_destdir)/*.css
  767. cp $(srcdir)/share/http/js/*.js $(win32_http_destdir)/js/
  768. unix2dos $(win32_http_destdir)/js/*.js
  769. cp $(srcdir)/share/http/dialogs/* $(win32_http_destdir)/dialogs/
  770. unix2dos $(win32_http_destdir)/dialogs/*
  771. cp $(srcdir)/share/http/dialogs/.hosts $(win32_http_destdir)/dialogs/
  772. unix2dos $(win32_http_destdir)/dialogs/.hosts
  773. cp $(srcdir)/share/http/*.ico $(win32_http_destdir)/
  774. cp $(srcdir)/share/http/images/*.png $(win32_http_destdir)/images/
  775. cp $(srcdir)/share/http/requests/*.xml $(win32_http_destdir)/requests/
  776. unix2dos $(win32_http_destdir)/requests/*.xml
  777. cp $(srcdir)/share/http/requests/readme $(win32_http_destdir)/requests/readme.txt
  778. unix2dos $(win32_http_destdir)/requests/readme.txt
  779. endif
  780. if BUILD_SKINS
  781. # Skins
  782. mkdir -p $(win32_destdir)/skins/fonts
  783. for i in $(srcdir)/share/skins2/fonts/*.*; do 
  784.   cp -- "$$i" $(win32_destdir)/skins/fonts/ || true ; 
  785. done
  786. for i in $(top_builddir)/share/skins2/*.*; do 
  787.   cp -- "$$i" $(win32_destdir)/skins/ || true ; 
  788. done
  789. cp -- $(srcdir)/share/skins2/skin.catalog $(win32_destdir)/skins/ || true ;
  790. cp -- $(srcdir)/share/skins2/skin.dtd $(win32_destdir)/skins/ || true ;
  791. endif
  792. if BUILD_OSDMENU
  793. #OSD Menu
  794. mkdir -p "$(win32_destdir)/osdmenu"
  795. cp $(srcdir)/share/osdmenu/*.* "$(win32_destdir)/osdmenu"
  796. for dir in default default/selected default/selection default/volume ;do 
  797. mkdir -p "$(win32_destdir)/osdmenu/$$dir"; 
  798. for file in $(srcdir)/share/osdmenu/$${dir}/*.png;do 
  799.  cp -- "$$file" "$(win32_destdir)/osdmenu/$$dir"; 
  800. done; 
  801. done
  802. unix2dos $(win32_destdir)/osdmenu/*.cfg;
  803. for file in $(win32_destdir)/osdmenu/*.cfg; do 
  804. sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; 
  805. sed 's%/%\%g' "$$file.tmp" > "$$file" || exit$$? ; 
  806. rm -f -- "$$file.tmp"; 
  807. done
  808. endif
  809. # SDK
  810. mkdir -p "$(win32_destdir)/sdk.tmp"
  811. mkdir -p "$(win32_destdir)/sdk"
  812. d=$$(pwd) && 
  813. cd src && 
  814. make install DESTDIR="$$d/vlc-$(VERSION)/sdk.tmp"
  815. cd vlc-$(VERSION) && mv sdk.tmp/$(prefix)/* sdk/
  816. find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir
  817. rm -Rf vlc-$(VERSION)/sdk/bin
  818. # Strip DLLs
  819. package-win-common-strip: package-win32-base-debug
  820. @if test -e "$(win32_debugdir)"; then 
  821.   echo "Error: please remove $(win32_debugdir), it is in the way"; 
  822.   false; 
  823. else 
  824.   echo "OK."; mkdir -p "$(win32_debugdir)"; 
  825. fi
  826. for i in "" $(win32_destdir)/*$(LIBEXT) 
  827.             $(win32_destdir)/plugins/*$(LIBEXT) 
  828. ; do 
  829.   if test -n "$$i" ; then 
  830.     $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; 
  831.     $(OBJCOPY) --strip-all "$$i" ; 
  832.     $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; 
  833.     mv "$$i.dbg" "$(win32_debugdir)"; 
  834.   fi ; 
  835. done
  836. package-win32-base: package-win-common-strip
  837. package-win32-base-exe: package-win32-base
  838. # Create package
  839. rm -Rf $(win32_destdir)/sdk
  840. if makensis -VERSION >/dev/null 2>&1; then 
  841.     MAKENSIS="makensis"; 
  842. elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then 
  843.     MAKENSIS="/cygdrive/c/Program Files/NSIS/makensis"; 
  844. elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then 
  845.     MAKENSIS="$(PROGRAMFILES)/NSIS/makensis"; 
  846. elif wine --version >/dev/null 2>&1; then 
  847.     MAKENSIS="wine C:/Program Files/NSIS/makensis.exe"; 
  848. else 
  849.     echo 'Error: cannot locate makensis tool'; exit 1; 
  850. fi; 
  851. eval "$$MAKENSIS $(win32_destdir)/vlc.win32.nsi"
  852. package-win32-base-zip: package-win32-base
  853. # Create package 
  854. rm -f -- vlc-$(VERSION)-win32.zip
  855. zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION)
  856. package-win32-base-debug-zip: package-win32-base-debug
  857. # Create package
  858. rm -f -- vlc-$(VERSION)-win32-debug.zip
  859. zip -r -9 vlc-$(VERSION)-win32-debug.zip vlc-$(VERSION)
  860. package-win32-base-7zip: package-win32-base
  861. # Create package 
  862. 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION)
  863. package-win32-base-debug-7zip: package-win32-base-debug
  864. # Create package
  865. 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32-debug.7z vlc-$(VERSION)
  866. package-win32-exe: package-win32-base package-win32-base-exe
  867. # Clean up
  868. rm -Rf $(win32_destdir)
  869. package-win32-zip: package-win32-base-zip
  870. # Clean up
  871. rm -Rf $(win32_destdir)
  872. package-win32-debug-zip: package-win32-base-debug-zip
  873. # Clean up
  874. rm -Rf $(win32_destdir)
  875. package-win32-7zip: package-win32-base-7zip
  876. # Clean up
  877. rm -Rf $(win32_destdir)
  878. package-win32-debug-7zip: package-win32-base-debug-7zip
  879. # Clean up
  880. rm -Rf $(win32_destdir)
  881. package-win32-no-clean: package-win32-base-zip package-win32-base-7zip package-win32-base-exe 
  882. package-win32: package-win32-no-clean
  883. # Clean up
  884. rm -Rf $(win32_destdir)
  885. package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip
  886. # Clean up
  887. rm -Rf $(win32_destdir)
  888. package-wince-base: package-win-common-strip
  889. package-wince-base-zip: package-wince-base
  890. # Create package 
  891. rm -f -- vlc-$(VERSION)-wince.zip
  892. zip -r -9 vlc-$(VERSION)-wince.zip vlc-$(VERSION)
  893. package-wince: package-wince-base-zip
  894. # Clean up
  895. rm -Rf $(win32_destdir)
  896. #####################################################################
  897. ##   BeOS                                                          ##
  898. #####################################################################
  899. package-beos:
  900. # Check that tmp isn't in the way
  901. @if test -e $(srcdir)/tmp; then 
  902.   echo "Error: please remove $(srcdir)/tmp, it is in the way"; 
  903.   false ; 
  904. else 
  905.   echo "OK." ; mkdir $(srcdir)/tmp ; 
  906. fi
  907. # Copy relevant files
  908. mkdir -p $(srcdir)/tmp/vlc
  909. cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README 
  910.   THANKS NEWS tmp/vlc/
  911. # Create debug package
  912. xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
  913. find $(srcdir)/tmp/vlc -exec mimeset -f {} ;
  914. mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
  915. (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) )
  916. mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/
  917. mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc
  918. # Create normal package
  919. $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc
  920. find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) 
  921.   --strip-debug --strip-unneeded "{}" ;
  922. xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc
  923. find $(srcdir)/tmp/vlc -exec mimeset -f {} ;
  924. mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION)
  925. (cd $(srcdir)/tmp &&  zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) )
  926. mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/
  927. # Clean up
  928. rm -Rf $(srcdir)/tmp
  929. #########################################################################
  930. ## MacOS X                                                             ##
  931. #########################################################################
  932. package-macosx: VLC-release.app ChangeLog
  933. # Check that the temporary location isn't in the way
  934. @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then 
  935.   rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; 
  936. fi
  937. echo "Create package directory: vlc-$(VERSION)/";
  938. mkdir -p "$(top_builddir)/vlc-$(VERSION)/";
  939. # Copy relevant files 
  940. @if test -e "$(top_builddir)/VLC-release.app/"; then 
  941.   cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; 
  942. else 
  943.   cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; 
  944. fi
  945. mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && 
  946.           mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && 
  947.           cp $(srcdir)/AUTHORS $(srcdir)/COPYING $(srcdir)/README $(srcdir)/THANKS $(srcdir)/NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && 
  948.           cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete VLC Preferences.app && 
  949.   cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read Me.rtf && 
  950.   cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
  951. cp -L $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
  952. # Place a link to the application folder
  953. ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications
  954. # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs)
  955. echo "Creating disk image"
  956. rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
  957. hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" 
  958.   "$(top_builddir)/vlc-$(VERSION).dmg" -scrub
  959. echo "Disk image creation completed:"
  960. ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
  961. # Create disk image 
  962. # echo "Creating disk image"
  963. # rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
  964. # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" 
  965. #   "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW 
  966. #   -scrub -imagekey zlib-level=9 -attach
  967. # Make sure the root window of the dmg will pop up when the dmg is mounted.
  968. # Note: We dont mount in /Volumes to be sure we won't collide with an other
  969. # finder mounted dmg with the same name.
  970. # echo "Make sure the root window of the dmg will pop up when the dmg is mounted"
  971. # mkdir -p $(top_builddir)/vlcmnt
  972. # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
  973. # bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
  974. # sleep 1 # Make sure operation completes
  975. # cd "$(srcdir)"
  976. # Unmount the image now
  977. # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)"
  978. # rm -R $(top_builddir)/vlcmnt
  979. # Make sure the image is not writable
  980. # Note: We can't directly create a read only dmg as we do the bless stuff
  981. echo "Make the disk image read-only"
  982. mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
  983. hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDBZ -o "$(top_builddir)/vlc-$(VERSION).dmg"
  984. rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
  985. # We are done
  986. echo "Disk image creation completed:"
  987. ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo
  988. # Clean up
  989. rm -Rf "$(top_builddir)/vlc-$(VERSION)"
  990. package-macosx-zip: VLC-release.app
  991. rm -Rf $(top_builddir)/vlc-$(VERSION)
  992. mkdir -p $(top_builddir)/vlc-$(VERSION)
  993. cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app
  994. mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
  995. for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do 
  996.   cp $(srcdir)/$$i $(top_builddir)/vlc-$(VERSION)/Goodies; 
  997. done
  998. cp -R  $(srcdir)/extras/package/macosx/Delete_Preferences.app 
  999.      $(top_builddir)/vlc-$(VERSION)/Goodies
  1000. cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf 
  1001.    $(top_builddir)/vlc-$(VERSION)/Read Me.rtf
  1002. zip -r $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
  1003. rm -Rf $(top_builddir)/vlc-$(VERSION)
  1004. package-macosx-framework-zip:
  1005. rm -Rf $(top_builddir)/vlckit-$(VERSION)
  1006. mkdir -p $(top_builddir)/vlckit-$(VERSION)
  1007. cp -R $(srcdir)/projects/macosx/framework/build/Debug/VLCKit.framework 
  1008.   $(top_builddir)/vlckit-$(VERSION)/VLCKit.framework
  1009. mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies
  1010. for i in AUTHORS COPYING ChangeLog README THANKS NEWS; do 
  1011.   cp $(srcdir)/$$i $(top_builddir)/vlckit-$(VERSION)/Goodies; 
  1012. done
  1013. zip -r $(top_builddir)/vlckit-$(VERSION).zip $(top_builddir)/vlckit-$(VERSION)
  1014. rm -Rf $(top_builddir)/vlc-$(VERSION)
  1015. package-macosx-plugin:
  1016. if BUILD_MOZILLA
  1017. # Create Installer
  1018. rm -rf "$(top_builddir)/macosx-plugin-instdata/"; true
  1019. mkdir -p "$(top_builddir)/macosx-plugin-instdata"
  1020. rm -f "$(top_builddir)/projects/mozilla/VLC Plugin.plugin/Contents/MacOS/modules/libmacosx_plugin.dylib" 
  1021. cp -R "$(top_builddir)/projects/mozilla/VLC Plugin.plugin" "$(top_builddir)/macosx-plugin-instdata"
  1022. rm -rf "$(top_builddir)/VLC Internet Plug-In.pkg"
  1023. export PACKAGEMAKER=
  1024. if test -x /Developer/Tools/packagemaker; then 
  1025.    export PACKAGEMAKER=/Developer/Tools/packagemaker; 
  1026. fi; 
  1027. if test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then 
  1028.    export PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; 
  1029. fi; 
  1030. $${PACKAGEMAKER} -build -ds -p "$(top_builddir)/VLC Internet Plug-In.pkg" 
  1031. -f "$(top_builddir)/macosx-plugin-instdata" 
  1032. -i "$(top_builddir)/extras/package/macosx/plugin/InstallerInfo.plist" 
  1033. -d "$(top_srcdir)/extras/package/macosx/plugin/InstallerDescription.plist"; true
  1034. rm -rf "$(top_builddir)/macosx-plugin-instdata/"
  1035. # Create disk image 
  1036. rm -f "$(top_builddir)/vlc-plugin-$(VERSION).dmg"; true
  1037. rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)/"; true
  1038. mkdir -p "$(top_builddir)/vlc-plugin-$(VERSION)/"
  1039. mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$(VERSION)/"
  1040. hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" 
  1041.   "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDBZ 
  1042.   -scrub -imagekey zlib-level=9
  1043. echo "Disk image creation completed:"
  1044. rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)"
  1045. endif
  1046. package-translations:
  1047. @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then 
  1048.   echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; 
  1049.   false; 
  1050. else 
  1051.   echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; 
  1052. fi
  1053. # Copy translations
  1054. cat $(top_srcdir)/po/LINGUAS | while read i; do 
  1055.   cp "$(srcdir)/po/$${i}.po" 
  1056.     "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" 
  1057.     || true ; 
  1058. done
  1059. cp "$(srcdir)/doc/translations.txt" 
  1060.   "$(srcdir)/vlc-translations-$(VERSION)/README.txt"
  1061. echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1062. echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1063. echo 'if test $$# != 1; then' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1064. echo " echo "Usage: convert-po.sh <.po file>"" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1065. echo " exit 1" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1066. echo "fi" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1067. echo "" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1068. echo 'msgfmt --statistics -o vlc.mo $$1' >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
  1069. $(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) 
  1070.   | GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
  1071. ###############################################################################
  1072. # PO translation files update
  1073. ###############################################################################
  1074. .PHONY: update-po
  1075. update-po:
  1076. cd po && $(MAKE) POTFILES vlc.pot update-po
  1077. ###############################################################################
  1078. # Enforce Mac OS X deployment target environment variable
  1079. ###############################################################################
  1080. macosx-sdk: Makefile.in $(HEADERS_include) vlc-config
  1081. export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET)