blob: e78786fa386b2ef5a87521002a0cb1eff84d8bbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
Summary: A cross-platform multimedia library
Name: SDL
Version: 1.2.14
Release: 6
Source: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
Source1: SDL_config.h
Patch25: SDL-1.2.14-disable_yasm.patch
Patch28: SDL-1.2.14-audiodriver.patch
# submitted upstream:
# http://bugzilla.libsdl.org/show_bug.cgi?id=699
Patch30: SDL-1.2.13-rh484362.patch
Patch31: SDL-1.2.14-fix-joystick-crash.patch
URL: http://www.libsdl.org/
License: LGPLv2+
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root
#BuildRequires: arts-devel audiofile-devel
BuildRequires: libasound-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: esound-devel
BuildRequires: libxext-devel libx11-devel
BuildRequires: libGL-devel libGLU-devel
BuildRequires: libxrender-devel libxrandr-devel gettext-devel
BuildRequires: automake autoconf
%ifarch %{ix86}
BuildRequires: nasm
%endif
%description
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.
%package devel
Summary: Files needed to develop Simple DirectMedia Layer applications
Group: Development/Libraries
Requires: SDL = %{version}-%{release} alsa-lib-devel
Requires: libx11-devel
Requires: libxext-devel
Requires: libGL-devel
Requires: libGLU-devel
Requires: libxrender-devel
Requires: libxrandr-devel
Requires: pkgconfig
Requires: automake
%description devel
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.
%prep
%setup -q
%patch25 -p1 -b .disable_yasm
%patch28 -p1 -b .audiodriver
%patch30 -p1 -b .rh484362
%patch31 -p1 -b .fix-joystick-crash
%build
aclocal
autoconf
libtoolize
%configure \
--disable-static \
--disable-video-svga --disable-video-ggi --disable-video-aalib \
--disable-debug \
--enable-sdl-dlopen \
--enable-dlopen \
--enable-pulseaudio-shared \
--enable-alsa \
--disable-rpath
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
# multilib systems and install SDL_config.h wrapper
mv %{buildroot}/%{_includedir}/SDL/SDL_config.h %{buildroot}/%{_includedir}/SDL/SDL_config-%{_arch}.h
install -m644 %{SOURCE1} %{buildroot}/%{_includedir}/SDL/SDL_config.h
# remove libtool .la file
rm -f %{buildroot}%{_libdir}/*.la
# --disable-static doesn't work so we can only manually remove it, sigh...
rm -f %{buildroot}%{_libdir}/*.a
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README-SDL.txt COPYING CREDITS BUGS
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%doc README WhatsNew docs.html docs/html
%doc docs/index.html
%{_bindir}/*-config
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/sdl.pc
%{_includedir}/SDL
%{_datadir}/aclocal/*
%doc %{_mandir}/man3/SDL*.3*
|