I have found a bug that might or might not be related to my setup, when building matplotlib from svn:
When building I get the following error:
In file included from src/ft2font.h:13,
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
I can solve this problem by making a soft link from /usr/local/include/freetype2/freetype to /usr/local/include/. It doesnt seem to know that there is a freetype2 directory and then a freetype directory.
I hope that helps