A tool for updating your ports.
portmaster -G -a
In cases where the dependecies needs fixing, as in they are installed, but the ports database needs to know they are there, you can have portmaster upgrade the datbase:
portmaster -y --check-depends
This checks for any ports that the database says are installed, but are not.
portmaster -y --check-port-dbdir