I am not an expert on the builds process by *any* means, but I have recently warped a Makefile to build on my laptop's Yosemite. I started with Peter Molfese's 'Cogneurostats' blog advice, and tried to hack my way through many errors that came up.
I use Homebrew now as my package manager, but I did have to do a couple things with Macports as well.-- I think in particular that library error you're getting is openmotif-related, if I'm not mistaken, and I believe that I used Macports to do that one.
If you want, I can send the Makefile I'm using via PM.
--pt