tce-load -i coreutils yasm gtk2-dev gnutls-dev samba-dev libmng-dev giflib-dev pulseaudio-dev sdl-dev openal-dev libbluray-dev libdvdnav-dev libcdio-paranoia-dev fribidi-dev lzo-dev libmad-dev speex-dev libtheora-dev mpg123-dev liba52-dev libmpeg2-dev libdca-dev faac-dev faad-dev opus-dev libdv-dev xvid-dev x264-dev libvpx-dev lame-dev ffmpeg-dev jasper-dev

[coreutils required for basename]

cd MPlayer-1.2.1

CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --confdir=/usr/local/etc/mplayer --enable-dynamic-plugins --enable-menu --enable-gui --enable-runtime-cpudetection

[-flto fails]

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;
edit config.mak to remove non-Os flags

make
sudo make install

sudo tar -xf  ../Clearlooks-1.7.tar.bz2 -C  /usr/local/share/mplayer/skins
cd /usr/local/share/mplayer/skins
sudo ln  -sfn Clearlooks default

Config files successfully generated by ./configure --prefix=/usr/local --confdir=/usr/local/etc/mplayer --enable-dynamic-plugins --enable-menu --enable-gui --enable-runtime-cpudetection --disable-ffmpeg_a !

  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 cddb cdda dvdread bluray vcd dvb smb networking 
    Codecs: x264 xvid libdv ffmpeg real xanim libopus faad2 faac libdca libmpeg2 liba52 mpg123 libtheora speex libvorbis libmad liblzo gif 
    Audio output: alsa openal pulse oss v4l2 sdl mpegpes(dvb) 
    Video output: v4l2 matrixview opengl sdl gif89a 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 
    Codecs: libvpx libschroedinger libdirac crystalhd libopencore_amrwb libopencore_amrnb qtx win32 ilbc musepack libgsm toolame twolame OpenJPEG 
    Audio output: sndio sun jack nas esd arts ivtv dxr2 
    Video output: zr zr2 ivtv dxr3 dxr2 vesa svga caca aa ggi winvidix 3dfx xmga xvmc directfb dfbmga bl xvr100 tdfx_vid wii s3fb tdfxfb mga