depends: fix shasum on osx < 10.9

Shasum verification from stdin doesn't work there, so we write to a file
instead.

Formatted a bit too.
build: add funcs.mk to the list of meta-depends

If anything in funcs.mk changes, everything must rebuild
Merge pull request #4709

e42363d build: add funcs.mk to the list of meta-depends (Cory Fields)
1910910 depends: fix shasum on osx < 10.9 (Cory Fields)