-# TODO: libilbc, libfdk-aac, flite
+# TODO: libilbc (requires webrtc.org version), flite (some additional voices required)
#
# How to deal with ffmpeg/opencv checken-egg problem:
# 1. make-request -r --without opencv ffmpeg.spec
# Conditional build:
%bcond_with nonfree # non free options of package (currently: faac)
%bcond_with aacplus # AAC+ encoding via libaacplus (requires nonfree)
+%bcond_with fdk_aac # AAC encoding via libfdk_aac (requires nonfree)
%bcond_without autoreqdep # don't care about package name deps generated by rpm
%bcond_without caca # textual display using libcaca
%bcond_with flite # flite voice synthesis support [ffmpeg expects more voices]
%bcond_without frei0r # build without frei0r video filtering
+%bcond_with ilbc # iLBC de/encoding via libilbc
%bcond_without openal # build without OpenAL 1.1 capture support
%bcond_without opencv # build without opencv video filtering
%bcond_without pulseaudio # build without PulseAudio input support
BuildRequires: bzip2-devel
BuildRequires: celt-devel >= 0.11.0
%{?with_nonfree:BuildRequires: faac-devel}
+%{?with_fdk_aac:BuildRequires: fdk-aac-devel}
%{?with_flite:BuildRequires: flite-devel}
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: libdc1394-devel >= 2
BuildRequires: libgsm-devel
BuildRequires: libiec61883-devel
+%{?with_ilbc:BuildRequires: libilbc-devel}
BuildRequires: libmodplug-devel
BuildRequires: libnut-devel
BuildRequires: libraw1394-devel >= 2
Requires: bzip2-devel
Requires: celt-devel >= 0.11.0
%{?with_nonfree:Requires: faac-devel}
+%{?with_fdk_aac:Requires: fdk-aac-devel}
Requires: fontconfig-devel
Requires: freetype-devel
Requires: jack-audio-connection-kit-devel
Requires: libdc1394-devel >= 2
Requires: libgsm-devel
Requires: libiec61883-devel
+%{?with_ilbc:Requires: libilbc-devel}
Requires: libmodplug-devel
Requires: libnut-devel
Requires: libraw1394-devel >= 2
--enable-libcelt \
--enable-libcdio \
--enable-libdc1394 \
+ %{?with_fdk_aac:--enable-libfdk-aac} \
%{?with_flite:--enable-libflite} \
--enable-libfreetype \
--enable-libgsm \
--enable-libiec61883 \
+ %{?with_ilbc:--enable-libilbc} \
--enable-libmodplug \
--enable-libmp3lame \
--enable-libnut \