Getting mplayer to work on OS X Snow Leopard
The post below is based off a post to the mplayer-users group by Reimar Döffinger.
To get mplayer on Snow Leopard, first checkout the latest code off subversion (as of writing, the snapshot offered for download is for September 1, 2009 and isn’t a working version):
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Change into the mplayer directory that gets created, and run
./configure --target=x86_64-Darwin
I’m not sure if the ./configure script errors if you don’t have the libs you need installed – I had them installed via macports.
Once that’s run, edit config.h and change #define HAVE_EBX_AVAILABLE 1 to #define HAVE_EBX_AVAILABLE 0. Then run make.
If you had the dependent libraries that mplayer needs installed under Leopard through macports, ld will complain about some dylibs being compiled for the wrong architecture (You can tell that the libs were originally installed via macports because the path to the lib is /opt/local/lib).
The solution is simple; for each dylib that it ld reports on (in my case libjpeg.dylib libpng.dylib, libfreetype.dylib, and libmad.dylib) run sudo port install <library name> +universal
Then run make again, then sudo make install.
Mplayer is now installed; test it by running mplayer on one of your videos.
04:19 PM on Saturday, 05/09/2009

Brilliant. Thanks a lot!
bjoern @ 11:40 PM on Tuesday, 08/09/2009