anchor.diff:        --disable-ossaudio
       '';
   
  -  NIX_LDFLAGS = stdenv.lib.optionalString x11Support "-lX11 -lXext";
  +  NIX_LDFLAGS = with stdenv.lib;
  +       optional  fontconfigSupport "-lfontconfig"
  +    ++ optionals x11Support [ "-lX11" "-lXext" ]
  +    ;
   
     installTargets = [ "install" ] ++ stdenv.lib.optional x11Support "install-gui";
   
     enableParallelBuilding = true;
   
  -  # Provide a reasonable standard font.  Maybe we should symlink here.
  -  postInstall =
  +  # Provide a reasonable standard font when not using fontconfig. Maybe we should symlink here.
  +  postInstall = stdenv.lib.optionalString (!fontconfigSupport)
       ''
         mkdir -p $out/share/mplayer
         cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf
  
positive.code:       ${if pulseSupport then "--enable-pulse" else "--disable-pulse"}
        ${optionalString (useUnfreeCodecs && codecs != null) "--codecsdir=${codecs}"}
        ${optionalString (stdenv.isi686 || stdenv.isx86_64) "--enable-runtime-cpudetection"}
        --enable-freetype
        --disable-xanim
        --disable-ivtv
        --disable-xvid --disable-xvid-lavc
  
negative.code: { stdenv, fetchurl, pkgconfig, freetype, yasm
  , fontconfigSupport ? true, fontconfig ? null, freefont_ttf ? null
  , x11Support ? true, libX11 ? null, libXext ? null, mesa ? null
  , xineramaSupport ? true, libXinerama ? null
  , xvSupport ? true, libXv ? null
  