Installing dependencies on FreeBSD

The following instructions are for FreeBSD 11.1 x86_64.

Basic requirements to run commands:


Graphical interface dependencies:

Install dependencies.

sudo pkg install autoconf automake bash bzip2 cmake flac fontconfig freetype2 fribidi git gcc lzma m4 gmake patch gtar harfbuzz jansson libass libiconv libogg libsamplerate libtheora libtool libvorbis libx264 libxml2 nasm opus pkgconf python speex yasm

Build and install the lame source port.

sudo portsnap fetch
bash -c 'if [[ ! -e /usr/ports ]]; then sudo portsnap extract; fi'
sudo portsnap update
cd /usr/ports/audio/lame
sudo make install

To build the GTK GUI, install the graphical interface dependencies.

sudo pkg install atk cairo dbus dbus-glib desktop-file-utils gdk-pixbuf2 gettext glib gnome3 gstreamer1-plugins-gdkpixbuf gtk3 intltool libdvdcss libnotify libvpx pango

FreeBSD is now prepared to build HandBrake. See Building HandBrake for BSD for further instructions.