Use the --build-from-source option to Homebrew.