cd /tmpgit clone https://github.com/macosforge/darwinbuild.git darwinbuildcd darwinbuildsudo xcodebuild install DSTROOT=/cd /tmpgit clone -b Darwin9 https://github.com/macosforge/darwinbuild.git darwinbuildcd darwinbuildmakesudo make installcd /tmpgit clone -b Darwin8 https://github.com/macosforge/darwinbuild.git darwinbuildcd darwinbuildmakesudo make installIf you already use MacPorts for other software, you might find it easier to install Darwinbuild from there.
sudo port install darwinbuild +universalsudo port install darwinbuild-legacyIf you had the darwinbuild port installed on Darwin 8 or 9, then sudo port upgrade darwinbuild should trigger the replacement process to give you darwinbuild-legacy.