#
# Conditional build:
%bcond_with amr # AMR-NB and AMR-WB (floating-point) support
+%bcond_without directfb # DirectFB support
%bcond_without faad # AAC decoding support
%bcond_without ffmpeg # ffmpeg support
%bcond_without freetype # freetype support
Patch7: %{name}-apps.patch
Patch8: %{name}-export.patch
URL: http://gpac.sourceforge.net/
-BuildRequires: DirectFB-devel
+%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL-devel
BuildRequires: a52dec-libs-devel
%{!?with_xvid:--use-xvid=no} \
--xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
+%{!?with_directfb: sed -i 's/CONFIG_DIRECTFB.*/CONFIG_DIRECTFB=no/' config.mak}
+
%{__make} -j1
%install