There are lots of source code in RPM. Download the packages (zlib, rpm...) and ./configure --host=ppc-apple-bsd you have RPM.