[MPlayer-dev-eng] [PATCH] Mac OS X Application Bundle Support

Chris Roccati roccati at pobox.com
Thu Nov 11 00:25:13 CET 2004


This patch moves the default directory for configuration data and 
library files inside the appwrapper.

Here I am, with a new and revised patch.
The following files were modified:

configure
added a switch --enable-macosx-bundle/--disable-macosx-bundle by the 
default the patch is connected to --enable-macosx-finder-support 
(you're going to build a bundle if you set that option anyway)...

osdep/Makefile
added macosx_resource_path.c (depending on the configure switch)

osdep/macosx_resource_path.c
a function get_resource_path() that prepends the Resource directory 
inside the appwrapper for the current application to the path given as 
parameter.

the patch, basically changes the macros MPLAYER_CONFDIR, 
MPLAYER_DATADIR and MPLAYER_LIBDIR into macros taking a single 
parameter. So MPLAYER_CONFDIR "/codecs.conf" becomes 
MPLAYER_CONFDIR("/codecs.conf"), so the enable-macosx-bundle, can make 
the macros to expand as get_resource_path("/codecs.conf").

In the following files:
Gui/interface.c
input/input.c
libmpcodecs/dec_audio.c
libmpcodecs/dec_video.c
libvo/font_load.c
libvo/font_load_ft.c
libvo/vosub_vidix.c
mencoder.c
mplayer.c

the change is simply from <MACRO "string"> to <MACRO("string")>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: macosx_bundle.patch
Type: application/text
Size: 12405 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041111/662ad42f/attachment.bin>


More information about the MPlayer-dev-eng mailing list