Commit a196c3d1 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add SDL2 to freedesktop platform

parent 77c58857
......@@ -37,6 +37,7 @@ PACKAGES = \
libXfixes libXext libXft libXi libXinerama libICE libSM libXpm libXrandr libXtst libXt libXScrnSaver libXpm \
libXv libXvMC libXxf86vm libXdamage libXcursor libXcomposite libxkbfile libxshmfence \
xkeyboard-config libxkbcommon \
SDL2 \
dbus cairo dbus-glib \
libpciaccess libdrm llvm mesa libepoxy wayland \
pulseaudio \
Name: SDL2
Version: 2.0.3
Release: 1%{?dist}
Summary: A cross-platform multimedia library
Group: System Environment/Libraries
License: zlib and MIT
BuildRequires: freedesktop-sdk-base
BuildRequires: dbus-dev
BuildRequires: libX11-dev
BuildRequires: libXScrnSaver-dev
BuildRequires: libXcursor-dev
BuildRequires: libXext-dev
BuildRequires: libXi-dev
BuildRequires: libXinerama-dev
BuildRequires: libXrandr-dev
BuildRequires: libXrender-dev
BuildRequires: libwayland-client-dev
BuildRequires: libwayland-cursor-dev
BuildRequires: mesa-libwayland-egl-dev
BuildRequires: libxkbcommon-dev
BuildRequires: mesa-libEGL-dev
BuildRequires: mesa-libGL-dev
BuildRequires: pulseaudio-libs-dev
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
to provide fast access to the graphics frame buffer and audio device.
%package dev
Summary: Files needed to develop Simple DirectMedia Layer applications
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: mesa-libGL-dev
#Requires: mesa-libGLU-dev
Requires: mesa-libEGL-dev
Requires: libX11-dev
Requires: libXi-dev
Requires: libXext-dev
Requires: libXrandr-dev
Requires: libXrender-dev
Requires: libXScrnSaver-dev
Requires: libXinerama-dev
Requires: libXcursor-dev
# Wayland
Requires: libwayland-client-dev
Requires: mesa-libwayland-egl-dev
Requires: libwayland-cursor-dev
Requires: libxkbcommon-dev
%description dev
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
to provide fast access to the graphics frame buffer and audio device. This
package provides the libraries, include files, and other resources needed for
developing SDL applications.
%setup -q
# Compilation without ESD
sed -i -e 's/.*AM_PATH_ESD.*//'
sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt
%configure \
--enable-sdl-dlopen \
--disable-arts \
--disable-esd \
--disable-nas \
--enable-pulseaudio \
--disable-alsa \
--disable-oss \
--disable-sndio \
--disable-libudev \
--enable-video-wayland \
make %{?_smp_mflags}
# remove libtool .la file
rm -f %{buildroot}%{_libdir}/*.la
# remove static .a file
rm -f %{buildroot}%{_libdir}/*.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files dev
%doc README.txt TODO.txt WhatsNew.txt
* Thu Feb 12 2015 Alexander Larsson <> - 2.0.3-1
- Initial version
......@@ -25,6 +25,7 @@ BuildRequires: mesa-libGL
BuildRequires: pulseaudio-libs-dev
BuildRequires: xkeyboard-config-dev
BuildRequires: gobject-introspection
BuildRequires: SDL2
Requires: freedesktop-platform-base
......@@ -82,6 +83,7 @@ Requires: pulseaudio-libs
Requires: pulseaudio-libs-glib2
Requires: shared-mime-info
Requires: xkeyboard-config
Requires: SDL2
Meta package for Freedesktop platform dependencies
......@@ -61,6 +61,7 @@ Requires: pixman-dev
Requires: pulseaudio-libs-dev
Requires: xkeyboard-config-dev
Requires: xorg-x11-util-macros
Requires: SDL2-dev
Meta package for Gnome SDK dependencies
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment