%bcond_without sdl # don't build SDL video output plugin
%bcond_without stk # don't build stk video output plugin
%bcond_with xvid # build xvid decode plugin [disabled in sources at the moment]
+%bcond_with gcc4 # build with gcc4 fixes
#
%ifnarch %{ix86}
%undefine with_dxr3
Patch1: %{name}-nolibs.patch
Patch2: %{name}-sparc.patch
Patch3: %{name}-win32-path.patch
+Patch4: %{name}-gcc4.patch
URL: http://xine.sourceforge.net/
%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.9}
%{?with_opengl:BuildRequires: OpenGL-devel}
%patch2 -p1
%endif
%patch3 -p1
+%if %{with gcc4}
+%patch4 -p1
+%endif
%build
%{__libtoolize}