If you know the name of the binary, but not what package it is in, look at the pkg-plist
file for each one:
find /usr/dports/ -maxdepth 2 -name pkg-plist -exec grep -H <execname> {} \;
If you have the binary installed, and want to know which package it belongs to:
pkg which <name>