The FreeBSD ports tree has a tool to address such things-- pkgdb -Ftends to sort 'em out quickly. Is there a MacPorts equivalent to this?