I found the magic:
cd /path/to/port
make -dA 2>&1 | less
Thus I found “/etc/make.conf”, which says the version of Perl to use. I thought that
use.perl port
just said “ln -s /usr/{,local/}bin/perl”, but apparently it updates other things, too. /etc