An alternative to screen is tmuxFor terminal session, I am always (many years) using sysutils/screen. Very convenient. Screen lets you to disconnect from one terminal session and reconnect from another. You can try building your ports under screen. After starting build, you can disconnect terminal.
See - screen(1)
For me screen is a must-have on any FreeBSD installation from VM-s, servers to desktop. Wonder why it is not included in base...
View attachment 11263