# HG changeset patch # User gpoirier # Date 1151449300 0 # Node ID cf45632eaef6d7af8559296aef445cfefca1e489 # Parent 70bcf587a49a22e0b26ef94ac902cc45ce6f7768 More information on how to compile MPlayer on OSX with extra features diff -r 70bcf587a49a -r cf45632eaef6 DOCS/xml/en/ports.xml --- a/DOCS/xml/en/ports.xml Tue Jun 27 21:39:48 2006 +0000 +++ b/DOCS/xml/en/ports.xml Tue Jun 27 23:01:40 2006 +0000 @@ -689,9 +689,50 @@ MPlayer does not work on Mac OS versions before 10, but should compile out-of-the-box on Mac OS X 10.2 and up. The preferred compiler is the Apple version of -GCC 3.x or later. If you have Mac OS X 10.3.9 or later and QuickTime 7 +GCC 3.x or later. +You can get the basic compilation environement by installing Apple's +Xcode. +If you have Mac OS X 10.3.9 or later and QuickTime 7 you can use the macosx video output driver. + +Unfortunately, this basic environment won't allow you to take advantage +of all the nice features of MPlayer. +For instance, in order to have OSD support compiled in, you will need +to have fontconfig and freetype libraries installed in your machine. +Contrary to other Unixes such as most Linux and BSDs, OSX doesn't have just +one packaging system that comes with the system. + + +There's at least two to choose from: +Fink and +DarwinPorts. +Both of them provide about the same service (i.e. a lot of packages to +choose from, dependencies resolution, the ability to simply add/update/remove +packages, etc...). +Fink offers both precompiled binary packages or to build everything from +source, whereas DarwinPorts only offers to build them from source. +The author of this guide chose DarwinPorts for the simple fact that its basic +setup was more lightweight. +Later examples will be based on DarwinPorts. + + +For instance, to compile MPlayer with OSD support: +sudo port install pkgconfig +This will install pkg-config, which is a system for +managing library compile/link flags. +MPlayer's configure script +uses it to properly detect libraries. +Then you can install fontconfig in a +similar way: +sudo port install fontconfig +Then you can proceed with launching MPlayer's +configure script (note the +PKG_CONFIG_PATH and PATH +environment variables so that configure find the +libraries installed with DarwinPorts): +PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/ PATH=$PATH:/opt/local/bin/ ./configure + MPlayer OS X GUI