FreeBSD 11.1 compile and install ffmpeg3.4.2
1. FreeBSD 11.1 does not install gcc by default, install gcc first:
pkg install gcc
2. Download the latest stable version of ffmpeg and unzip it:
http://ffmpeg.org/releases/ffmpeg-3.4.2.tar.xz
tar xf ffmpeg-3.4.2.tar.xz
cd ffmpeg-3.4.2
3. Install ffmpeg:
Since FreeBSD's make is different from Linux's make, use gmake (GNU make) to compile and install:
gmake -j8
gmake install
4. FreeBSD can also be installed without source code, but with its own package:
pkg -y install ffmpeg