Add TEST_DEPENDS support
Differential Revision: https://reviews.freebsd.org/D18398 Approved by: portmgr (mat)