What about using Homebrew?
Once installed it should be as easy as writing in the terminal
brew install mplayer