I managed to do this using the following code:
export TMPDIR=~/tmp-ffmpeg mkdir $TMPDIR ./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" make make install rm -rf $TMPDIR export TMPDIR=
Hope this helps someone else -)
source share