%bcond_without opengl # OpenGL (GLX) support
%bcond_without gles # OpenGL ES (EGL) support
%bcond_with kms # KMS/DRM graphics support
%bcond_without opengl # OpenGL (GLX) support
%bcond_without gles # OpenGL ES (EGL) support
%bcond_with kms # KMS/DRM graphics support
%bcond_without vulkan # Vulkan graphics support
%bcond_without wayland # Wayland graphics support
%bcond_without fcitx # Fcitx IM support
%bcond_without vulkan # Vulkan graphics support
%bcond_without wayland # Wayland graphics support
%bcond_without fcitx # Fcitx IM support
%bcond_without static_libs # don't build static libraries
%bcond_with mmx # MMX instructions
%bcond_with sse # SSE instructions
%bcond_without static_libs # don't build static libraries
%bcond_with mmx # MMX instructions
%bcond_with sse # SSE instructions
# libfusionsound-*.so --needs patch (-release not supported by configure)
# libgbm.so.1 [if with kms]
# libjack.so.0 [if with jack]
# libfusionsound-*.so --needs patch (-release not supported by configure)
# libgbm.so.1 [if with kms]
# libjack.so.0 [if with jack]
Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
Name: SDL2
Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
Name: SDL2
Patch0: %{name}-config.patch
URL: http://www.libsdl.org/
%{?with_kms:BuildRequires: Mesa-libgbm-devel >= 11.1.0}
Patch0: %{name}-config.patch
URL: http://www.libsdl.org/
%{?with_kms:BuildRequires: Mesa-libgbm-devel >= 11.1.0}
%{?with_gles:BuildRequires: OpenGLES-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel >= 1.0.11}
%{?with_arts:BuildRequires: artsc-devel >= 1.1}
%{?with_gles:BuildRequires: OpenGLES-devel}
%{?with_alsa:BuildRequires: alsa-lib-devel >= 1.0.11}
%{?with_arts:BuildRequires: artsc-devel >= 1.1}
BuildRequires: automake
BuildRequires: dbus-devel
%{?with_esd:BuildRequires: esound-devel >= 0.2.8}
%{?with_fcitx:BuildRequires: fcitx-devel}
BuildRequires: gcc >= 5:4.0
BuildRequires: hidapi-devel
BuildRequires: automake
BuildRequires: dbus-devel
%{?with_esd:BuildRequires: esound-devel >= 0.2.8}
%{?with_fcitx:BuildRequires: fcitx-devel}
BuildRequires: gcc >= 5:4.0
BuildRequires: hidapi-devel
%{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.125}
%{?with_kms:BuildRequires: libdrm-devel >= 1.4.82}
BuildRequires: libsamplerate-devel
BuildRequires: libtool >= 2:2.0
%{?with_nas:BuildRequires: nas-devel}
BuildRequires: perl-modules
%{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.125}
%{?with_kms:BuildRequires: libdrm-devel >= 1.4.82}
BuildRequires: libsamplerate-devel
BuildRequires: libtool >= 2:2.0
%{?with_nas:BuildRequires: nas-devel}
BuildRequires: perl-modules
BuildRequires: udev-devel
# wayland-client, wayland-cursor
BuildRequires: udev-devel
# wayland-client, wayland-cursor
%{?with_wayland:BuildRequires: wayland-egl-devel}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXScrnSaver-devel
BuildRequires: xorg-lib-libXcursor-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXi-devel
%{?with_wayland:BuildRequires: wayland-egl-devel}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXScrnSaver-devel
BuildRequires: xorg-lib-libXcursor-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXi-devel
%{!?with_arts:--disable-arts} \
%{!?with_esd:--disable-esd} \
%{!?with_fcitx:--disable-fcitx} \
%{!?with_arts:--disable-arts} \
%{!?with_esd:--disable-esd} \
%{!?with_fcitx:--disable-fcitx} \
%{!?with_jack:--disable-jack} \
%{!?with_mmx:--disable-mmx} \
%{!?with_nas:--disable-nas} \
%{!?with_jack:--disable-jack} \
%{!?with_mmx:--disable-mmx} \
%{!?with_nas:--disable-nas} \