First I cloned
https://github.com/macosforge/darwinbuild/
because otherwise darwinbuild-legacy was not installable on Leopard/ppc (10.5.8)
https://trac.macports.org/ticket/64830#comment:3
I switched branch
git branch -r
git checkout -b darwin_9 origin/Darwin9
then patched build like...