How to make ffmpeg use correct libfreetype version? I have a PHP application that uses ffmpeg with libfreetype.  I installed both ffmpeg and libfreetype from macports.  But I keep getting this error:

2013-08-30 14:44:21 - Generate poster - Create thumbnail using ffmpeg.
2013-08-30 14:44:21 - Generate poster - FFMpeg lib found.
dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
  Referenced from: /opt/local/bin/ffmpeg
  Reason: Incompatible library version: ffmpeg requires version 17.0.0 or later, but libfreetype.6.dylib provides version 15.0.0


otool -L /opt/local/lib/libfreetype.6.dylib shows 

/opt/local/lib/libfreetype.6.dylib (compatibility version 17.0.0, current version 17.2.0)


But I also noticed another version on the system.  otool -L /usr/X11/lib/libfreetype.6.dylib shows

/usr/X11/lib/libfreetype.6.dylib (compatibility version 15.0.0, current version 15.1.0)


So I suspect maybe ffmpeg is trying to use that library.  But I'm not sure.  Any ideas how to fix this?
Try to reinstall with Homebrew instead of macports..? I have had too many dependency issues when using macports. 

brew install ffmpeg


If you have problems (you shouldn't on a clean Homebrew install) check the answer here.