abinfo "Explicitly require building with GCC ..."
export BUILDCC=gcc

abinfo "Adding samba-4.0 to compiler include paths ..."
export CFLAGS="${CFLAGS} -I/usr/include/samba-4.0 "
export CPPFLAGS="${CPPFLAGS} -I/usr/include/samba-4.0 "

abinfo "Adding Qt 5 to compiler include paths ..."
export QT_SELECT=5
export CXXFLAGS="${CXXFLAGS} -I/usr/include/qt5 "

# FIXME:
#
# With FFmpeg >= 5.0, the libavcodec => libva interface is no longer available.
# Using newer FFmpeg would cause higher CPU usage unless the user specifies
# VDPAU as the video decoding backend.
#
# Use bundled FFmpeg (4.4) for now.
#
# Ref: https://www.debian.org/releases/stable/amd64/release-notes/ch-information.en.html#vlc-ffmpeg-5
abinfo "Building vendored FFmpeg 4.4 ..."
mkdir -pv "$SRCDIR"/contrib/native
cd "$SRCDIR"/contrib/native
bash "$SRCDIR"/contrib/bootstrap
make PKGS=ffmpeg
