%bcond_without caca # build without caca support
%bcond_without daap # DAAP plugin
%bcond_without dirac # dirac plugin
+%bcond_without directfb # directfb plugin
%bcond_without dv # build without dv support
%bcond_without esound # don't build esound plugin
%bcond_without ggi # don't build ggi plugin
Patch6: %{name}-osdmenu_path.patch
Patch7: %{name}-cdparanoia.patch
Patch8: %{name}-dirac.patch
+Patch9: %{name}-directfb.patch
URL: http://www.videolan.org/vlc/
+%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: OpenGL-devel
BuildRequires: SDL_image-devel >= 1.2
BuildRequires: a52dec-libs-devel
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
%build
cp -f /usr/share/automake/config.* .
--enable-cddax \
%{!?with_daap:--disable-daap} \
%{?with_dirac:--enable-dirac} \
+ %{?with_directfb:--enable-directfb} \
--enable-dsp \
--enable-dummy \
--%{?with_dv:en}%{!?with_dv:dis}able-dv \
%attr(755,root,root) %{_libdir}/vlc/video_filter/libwall_plugin.so
%dir %{_libdir}/vlc/video_output
%{?with_svgalib:%attr(755,root,root) %{_libdir}/vlc/video_output/libsvgalib_plugin.so}
+%{?with_directfb:%attr(755,root,root) %{_libdir}/vlc/video_output/libdirectfb_plugin.so}
%dir %{_libdir}/vlc/visualization
%attr(755,root,root) %{_libdir}/vlc/visualization/libvisual_plugin.so
%dir %{_datadir}/%{name}