depends: add shared dependency builder

See the README's in depends for documentation
Merge pull request #4592

1dec09b depends: add shared dependency builder (Cory Fields)