%bcond_without alsa # without ALSA audio support
%bcond_without arts # without aRts audio support
%bcond_without esd # without EsounD audio support
%bcond_without alsa # without ALSA audio support
%bcond_without arts # without aRts audio support
%bcond_without esd # without EsounD audio support
Patch0: %{name}-byteorder.patch
Patch1: %{name}-amfix.patch
Patch2: %{name}-lpthread.patch
Patch3: %{name}-no_rpath_in_sdl-config.patch
Patch4: %{name}-mmx-constraints.patch
Patch5: %{name}-caca.patch
Patch0: %{name}-byteorder.patch
Patch1: %{name}-amfix.patch
Patch2: %{name}-lpthread.patch
Patch3: %{name}-no_rpath_in_sdl-config.patch
Patch4: %{name}-mmx-constraints.patch
Patch5: %{name}-caca.patch
URL: http://www.libsdl.org/
%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
BuildRequires: OpenGL-devel
URL: http://www.libsdl.org/
%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
BuildRequires: OpenGL-devel
%{?with_aalib:BuildRequires: aalib-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
%{?with_arts:BuildRequires: artsc-devel >= 1.1}
%{?with_aalib:BuildRequires: aalib-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
%{?with_arts:BuildRequires: artsc-devel >= 1.1}
%{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{?with_svgalib:BuildRequires: svgalib-devel >= 1.4.0}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
%{?with_alsa:Requires: alsa-lib-devel}
%{?with_caca:Requires: libcaca-devel}
%{?with_nas:Requires: nas-devel}
%{?with_alsa:Requires: alsa-lib-devel}
%{?with_caca:Requires: libcaca-devel}
%{?with_nas:Requires: nas-devel}
# get COPY_ARCH_SRC, remove the rest
head -n 20 acinclude.m4 > acinclude.tmp
# get COPY_ARCH_SRC, remove the rest
head -n 20 acinclude.m4 > acinclude.tmp