I think it would be useful if pkg had an option for building from source in order to automate the ports tree rather than manually navigating the tree or using one of the script programs that attempts to automate it. For example:
pkg build nano
. I think there is a program called apt-build from Debian that works similarly to this, which I found useful.