There is no documentation that tells user how to set ports dir for portmaster. It should be mentioned in portmaster(8) man page or /usr/local/etc/portmaster.rc.sample.
I'll update the documentation with regard to PORTSDIR and commit this documentation change together with the next functional change.
A line describing the default value of the PORTSDIR environment variable has been added to the man-page in commit 524230.