diff --git a/DOCS/xml/en/ports.xml b/DOCS/xml/en/ports.xml index 739f0059f0..c57f82855f 100644 --- a/DOCS/xml/en/ports.xml +++ b/DOCS/xml/en/ports.xml @@ -555,49 +555,55 @@ since QNX has only X emulation which is VERY slow. Use SDL. Mac OS -Only Mac OS X 10.2 and up is supported by the "raw" -MPlayer source. Feel free to make support for older -Mac OS versions and send patches! +MPlayer 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, Apple's GCC 2.95.x does not support C99 syntax well. - -Apple's modified GCC 3.x is preferred for compiling -MPlayer especially when using -libavcodec as Apple's -modified GCC 2.95.x doesn't support C99 syntax well. - + +MPlayer OS X -One can get an Aqua GUI for MPlayer together with -compiled MPlayer binaries for Mac OS X from the +You can get a native GUI for MPlayer together with +precompiled MPlayer binaries for Mac OS X from the MPlayerOSX project, but be -warned: that project as it is is not active anymore. +warned: that project is not active anymore. + Fortunately, MPlayerOSX has been taken over -by MPlayer's dev team, and is now one of the -official projects supported by MPlayer. +by a member of the MPlayer team. +Preview releases are available from our +download page +and an official release should arrive soon. + -In order to build MPlayerOSX, you need -the mplayerosx module, the -main module and a copy of the -main module named +In order to build MPlayerOSX from source +yourself, you need the mplayerosx, the +main and a copy of the +main CVS module named main_noaltivec. mplayerosx is the GUI frontend, main is MPlayer and main_noaltivec is MPlayer built without AltiVec support. + -You can get the latest source from CVS: +To check out CVS modules use: + cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer login cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P mplayerosx +cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P main + + In order to build MPlayerOSX you will need to set up something like this: + MPlayer_source_directory | @@ -605,46 +611,57 @@ MPlayer_source_directory | |--->main_noaltivec (MPlayer CVS source configured with --disable-altivec) | - |--->mplayerosx (MPlayerOSX CVS source) + |--->mplayerosx (MPlayer OS X CVS source) You first need to build main and main_noaltivec. + + Next, set a global variable: -export MACOSX_DEPLOYMENT_TARGET=10.3 +export MACOSX_DEPLOYMENT_TARGET=10.3 + + + Then, configure: + -If you configure for a machine which CPU is greater than G3, do as follows: +If you configure for a G4 or later CPU with AltiVec support, do as follows: ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11 - -If you configure for a G3-powered machine, do as follows: +If you configure for a G3-powered machine without AltiVec, use: ./configure --with-termcaplib=ncurses.5 --disable-gl --disable-x11 --disable-altivec -You may need to edit config.mak and change the -mcpu and -mtune from -74XX to G3. +You may need to edit config.mak and change +-mcpu and -mtune +from 74XX to G3. + Continue with make -then go to the mplayerosx directory and and type +then go to the mplayerosx directory and type make dist -This will create a compressed .dmg archive with the binary ready to use. +This will create a compressed .dmg archive +with the ready to use binary. + -You can also use the xcode 2.1 project; the old project for xcode 1.x is -not working anymore. +You can also use the Xcode 2.1 project; +the old project for Xcode 1.x does +not work anymore. +