When you are using Freebsd and you are compiling packages from source (using ports collection) then one of the most important things is the /etc/make.conf file. The make.conf file tells your system how it should build things. You can of course build ports using an empty make.conf file but if you do so you will not get the advantages that might come with customizing things a bit further.
Below is my /etc/make.conf, which I used when I was putting my Freebsd box together. Note that my /etc/make.conf removes some non-free parts like libdvdcss2 from Vlc and also makes the system a bit more bare bones. Before using the file, read it through and check that the choices work for you. You might also want to tune MAKE_JOBS_NUMBER variable to match your computer. Tip. If you are unsure about it then just comment it out with # .
#Jobs per cpu
OPTIONS_UNSET= DOCS EXAMPLES NLS
#If parole then