%bcond_with swfdec # swfdec FLASH video provider [not ready for swfdec >= 0.6]
%bcond_without xine # Xine video provider
%bcond_without xine_vdpau # Xine/VDPAU video provider
+%bcond_with drmkms # DRM/KMS support
#
%ifarch sh4
%define with_sh772x 1
Summary(pl.UTF-8): DirectFB - Wspomaganie grafiki
Name: DirectFB
Version: 1.7.7
-Release: 1
+Release: 6
Epoch: 1
License: LGPL v2+
Group: Libraries
Patch11: %{name}-format.patch
Patch12: x32-asm.patch
Patch13: ffmpeg3.patch
+Patch14: %{name}-tslib.patch
+Patch15: %{name}-libtimidity.patch
+Patch16: ffmpeg4.patch
+Patch17: vnc-pc.patch
+Patch18: imlib2-pc.patch
URL: http://www.directfb.net/
-BuildRequires: Mesa-libEGL-devel
-BuildRequires: Mesa-libGLES-devel
+BuildRequires: EGL-devel
BuildRequires: Mesa-libgbm-devel
+BuildRequires: OpenGLESv2-devel
BuildRequires: OpenGL-devel
BuildRequires: OpenGL-GLX-devel
BuildRequires: SDL-devel
BuildRequires: freetype-devel >= 2.0.2
%{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5}
%{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 1.0}
-BuildRequires: imlib2-devel
+BuildRequires: imlib2-devel >= 1.1.0
BuildRequires: jasper-devel
BuildRequires: libcddb-devel >= 1.0.0
BuildRequires: libdrm-devel
BuildRequires: libstdc++-devel
BuildRequires: libsvg-cairo-devel >= 0.1.6
BuildRequires: libtiff-devel >= 4
-BuildRequires: libtimidity-devel >= 0.1.0
+BuildRequires: libtimidity-devel >= 0.2.0
BuildRequires: libtool
BuildRequires: libvdpau-devel >= 0.3
-BuildRequires: libvncserver-devel
+BuildRequires: libvncserver-devel >= 0.9.8
BuildRequires: libvorbis-devel >= 1:1.0.0
BuildRequires: libwebp-devel >= 0.2.1
%{?with_multi:BuildRequires: linux-fusion-devel >= 9.0.1}
%{?with_one:BuildRequires: linux-one-devel >= 9.0.1}
%{?with_quicktime:BuildRequires: openquicktime-devel}
BuildRequires: pkgconfig
+BuildRequires: pkgconfig(egl)
+BuildRequires: pkgconfig(gl)
+BuildRequires: pkgconfig(glesv2)
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: sed >= 4.0
%{?with_swfdec:BuildRequires: swfdec-devel >= 0.5.0}
%{?with_swfdec:BuildRequires: swfdec-devel < 0.6.0}
BuildRequires: tar >= 1:1.22
BuildRequires: tslib-devel >= 1.0
%{?with_xine:BuildRequires: xine-lib-devel >= 2:1.2.3}
-%{?with_xine_vdpau:BuildRequires: /usr/include/xine/video_out_vdpau.h}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-proto-xproto-devel
Group: Libraries
URL: http://www.directfb.org/index.php?path=Platform/FusionSound
Requires: FusionSound = %{epoch}:%{version}-%{release}
+Requires: libtimidity >= 0.2.0
%description -n FusionSound-musicprovider-timidity
MIDI libtimidity music provider module for FusionSound.
%patch11 -p1
%patch12 -p1
%patch13 -p1
+%patch14 -p1
+%patch15 -p1
+%patch16 -p1
+%patch17 -p1
+%patch18 -p1
# video drivers
%{__sed} -i -e 's/checkfor_\(cle266\|cyber5k\|radeon\|savage\|unichrome\|vmware\)=no/checkfor_\1=yes/' configure.in
--disable-silent-rules \
%{?with_avifile:--enable-avifile} \
--enable-divine \
+ %{__enable_disable drmkms} \
--enable-fast-install \
%{?with_ffmpeg:--enable-ffmpeg} \
%{?with_flash:--enable-flash} \
%doc docs/html/*.{html,png}
%{_examplesdir}/%{name}-%{version}
+%if %{with drmkms}
%files core-drmkms
%defattr(644,root,root,755)
%attr(755,root,root) %{dfbdir}/systems/libdirectfb_drmkms_system.so
+%endif
%files core-mesa
%defattr(644,root,root,755)