Normally, you should have the ports collection installed in /usr/ports if you choose to install the ports collection at installation time... Are you really sure you choose to install the ports collection during the installation ?
Anyway, here is what you can do to install the ports collection now your FreeBSD system has already been installed:
rm -rf /usr/ports && svnlite checkout https://svn.freebsd.org/ports/head /usr/ports
or, as explained in the FreeBSD handbook:
pkg install --yes subversion && rm -rf /usr/ports && svn checkout https://svn.freebsd.org/ports/head /usr/ports
Reference:
https://www.freebsd.org/doc/handbook/ports-using.html. Please note that svnlite is available by default in the FreeBSD base system while svn is provided by the port
devel/subversion which must be installed before using svn, as stated in the handbook.
You may then update your ports collection with:
svnlite update /usr/ports
or
svn update /usr/ports
respectively.
Personally, I would not use Pouriere at first. I would rather do, similarly to
ShelLuser and
jrm@ (as root):
cd /usr/ports/multimedia/ffmpeg
LIST=$(make build-depends-list run-depends-list | sort -u | sed 's/\/usr\/ports\///')
When making a single port, you may end up making all the build dependencies and run dependencies which is often time-consuming. The previous hint is to make the list of dependencies and install these dependencies through the package management system to avoid having to build them:
pkg install --yes $LIST
Then, you configure the port to select your options (select the option "XCB" for x11 grabbing), you possibly deinstall it (it could have been installed earlier through the package management system) and you reinstall it:
make config deinstall reinstall
During a global upgrade (
pkg upgrade
), the port
multimedia/ffmpeg may be upgraded and the options may be reset to default. You may then have to repeat the previous procedure to rebuild
multimedia/ffmpeg with your specific options. From what I understand, this is why you may want to use Poudriere, in a second time.