[MPlayer-dev-eng] [PATCH] Mac OS X Application Bundle Support
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:
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)...
added macosx_resource_path.c (depending on the configure switch)
a function get_resource_path() that prepends the Resource directory
inside the appwrapper for the current application to the path given as
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:
the change is simply from <MACRO "string"> to <MACRO("string")>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12405 bytes
Desc: not available
More information about the MPlayer-dev-eng