tce-load -i compiletc svn coreutils yasm libmng-dev giflib7-dev libdvdnav-dev libbluray-dev lzo-dev libmad-dev mpg123-dev liba52-dev libmpeg2-dev libdca-dev faac-dev faad-dev libdv-dev ffmpeg7-dev jasper2-dev sdl_image-dev libcdio-paranoia-dev

[coreutils required for basename]

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

cd mplayer

CC="gcc -mtune=generic -Os -pipe -Wno-incompatible-pointer-types -Wno-int-conversion" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --confdir=/usr/local/etc/mplayer --enable-dynamic-plugins --enable-runtime-cpudetection --enable-menu --disable-ffmpeg_a --disable-sdl --yasm=''

[-flto fails]

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;
find . -name config.mak -type f -exec sed -i 's/-O3//g' {} \;
find . -name config.mak -type f -exec sed -i 's/-O4//g' {} \;

make [1m 23.42s]

[mplayer-1.5 fails with]
/usr/local/bin/ld: libmpcodecs/ad_ffmpeg.o: in function `init':
ad_ffmpeg.c:(.text+0x6a8): undefined reference to `av_get_default_channel_layout'

sudo make install

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: Runtime CPU-Detection enabled

  Languages:
    Messages/GUI: en
    Manual pages: en
    Documentation: en

  Enabled optional drivers:
    Input: dvdnav ftp pvr tv-v4l2 tv dvdread bluray vcd dvb networking 
    Codecs: x264 libdv ffmpeg real xanim libopus faad2 faac libdca libmpeg2 liba52 mpg123 libtheora speex libvorbis libmad liblzo 
    Audio output: alsa pulse oss v4l2 sdl mpegpes(dvb) 
    Video output: v4l2 matrixview opengl sdl pnm jpeg mng mpegpes(dvb) fbdev xvidix cvidix dga vdpau xv x11 xover yuv4mpeg md5sum tga 

  Disabled optional drivers:
    Input: vstream radio tv-v4l1 tv-dshow librtmp live555 nemesi cddb cdda smb 
    Codecs: libaom libdav1d libvpx xvid crystalhd libopencore_amrwb libopencore_amrnb qtx win32 ilbc musepack libgsm toolame twolame gif OpenJPEG 
    Audio output: sndio sun openal jack nas esd arts dxr2 
    Video output: zr zr2 dxr3 dxr2 vesa gif89a svga caca aa ggi winvidix 3dfx xmga xvmc directfb dfbmga bl xvr100 tdfx_vid wii s3fb tdfxfb mga 

'config.h' and 'config.mak' contain your configuration options.
