Before compile, tries:

export QMAKESPEC=freebsd-g++

if u uses BASH. Otherwise, use

setenv QMAKESPEC freebsd-g++