]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- added bcond for SDL-new_gamma_ramp_support.patch, which causes crashes
[packages/SDL.git] / SDL.spec
CommitLineData
f3708463
JB
1#
2# Conditional build:
700b9139
JB
3%bcond_with aalib # aalib graphics support
4%bcond_with caca # caca graphics support
5%bcond_with directfb # DirectFB graphics support
6%bcond_with ggi # GGI graphics support
7%bcond_with nas # NAS audio support
8%bcond_with svga # svgalib graphics support
9%bcond_without alsa # ALSA audio support
10%bcond_with arts # aRts audio support
11%bcond_with esd # EsounD audio support
5475e1b9 12%bcond_without new_gamma_ramp # causes crashes on nvidia drivers
44f396f8 13%bcond_without static_libs # don't build static libraries
a53b8e1b 14#
123781fa 15# NOTE: the following libraries are dlopened by soname detected at build time:
700b9139
JB
16# libartsc.so.? [if with arts]
17# libasound.so.2 [if with alsa]
18# libaudio.so.2 [if with nas]
19# libesd.so.0 [if with esd]
fb451341 20# libpulse-simple.so.0
123781fa
JB
21# libX11.so.6
22# libXext.so.6
23# libXrender.so.1
24# libXrandr.so.2
cee13441 25Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
6251189d
ER
26Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
27Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) Generic APIs - 游戏/多媒体库
cee13441 28Name: SDL
1fc23728 29Version: 1.2.14
5664f73b 30Release: 4
fb451341 31License: LGPL v2.1+
7b1c9d40 32Group: Libraries
123781fa 33Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
1fc23728 34# Source0-md5: e52086d1b508fa0b76c52ee30b55bec4
123781fa
JB
35Patch0: %{name}-mmx-constraints.patch
36Patch1: %{name}-acfix.patch
478f7d7b 37Patch2: %{name}-new_gamma_ramp_support.patch
5664f73b 38Patch3: fix-mouse-click.patch
edc688e6 39URL: http://www.libsdl.org/
fdb0e5c9 40%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
c080b1ae 41BuildRequires: OpenGL-GLU-devel
fdb0e5c9 42%{?with_aalib:BuildRequires: aalib-devel}
fdb0e5c9 43%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
99ece653 44%{?with_arts:BuildRequires: artsc-devel >= 1.1}
123781fa 45BuildRequires: autoconf >= 2.59-9
56098bb7 46BuildRequires: automake
16f25dd2 47%{?with_esd:BuildRequires: esound-devel >= 0.2.8}
53b1a977 48BuildRequires: gcc >= 5:4.0
ecfe5ee2 49%{?with_caca:BuildRequires: libcaca-devel}
fdb0e5c9 50%{?with_ggi:BuildRequires: libggi-devel}
700b9139 51BuildRequires: libtool >= 2:2.0
fdb0e5c9 52%{?with_nas:BuildRequires: nas-devel}
6a8871ba 53%ifarch %{ix86}
c4094cdf 54BuildRequires: nasm
6a8871ba 55%endif
ef907b8e 56BuildRequires: perl-modules
7fc318ed 57BuildRequires: pkgconfig >= 1:0.7
fb451341 58BuildRequires: pulseaudio-devel >= 0.9
5a610d3e 59%{?with_svga:BuildRequires: svgalib-devel >= 1.4.0}
4b876257 60BuildRequires: tslib-devel
123781fa 61BuildRequires: xorg-lib-libX11-devel
10fab296 62BuildRequires: xorg-lib-libXext-devel
123781fa
JB
63BuildRequires: xorg-lib-libXrandr-devel
64BuildRequires: xorg-lib-libXrender-devel
65BuildRequires: xorg-proto-xextproto-devel
b2dddb33 66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5249f883 67
5e739514 68%define specflags_ppc -maltivec
69
5249f883 70%description
ba42f390 71SDL (Simple DirectMedia Layer) is a library that allows you portable,
72low level access to a video framebuffer, audio output, mouse, and
73keyboard. It can support both windowed and DGA modes of XFree86, and
74it is designed to be portable - applications linked with SDL can also
75be built on Win32 and BeOS.
cee13441 76
ff50bd69
JR
77%description -l pl.UTF-8
78SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
79przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
80myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
81jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
82konsolidowane z SDL można również budować w systemach Win32 i BeOS.
e46b33b9 83
ff50bd69
JR
84%description -l pt_BR.UTF-8
85Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
86baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
f3665afb 87
ff50bd69 88Essa biblioteca é usada por alguns jogos.
f3665afb 89
ff50bd69
JR
90%description -l ru.UTF-8
91SDL (Simple DirectMedia Layer) это набор функций, предоставляющий
92низкоуровневый доступ к звуку, клавиатуре, манипулятору мышь и к
93буферу экрана на множестве различных платформ.
80c61973 94
cee13441 95%package devel
b1002eee 96Summary: SDL - Header files
6251189d
ER
97Summary(pl.UTF-8): SDL - Pliki nagłówkowe
98Summary(pt_BR.UTF-8): Bibliotecas e arquivos de cabeçalho para aplicações SDL
99Summary(ru.UTF-8): Файлы, необходимые для разработки программ, использующих SDL
100Summary(uk.UTF-8): Файли, необхідні для розробки програм, що використовують SDL
101Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) 开发库
7b1c9d40 102Group: Development/Libraries
c8088f36 103Requires: %{name} = %{version}-%{release}
123781fa
JB
104%{?with_directfb:Requires: DirectFB-devel >= 0.9.15}
105%{?with_aa:Requires: aalib-devel}
ecfe5ee2 106%{?with_caca:Requires: libcaca-devel}
123781fa 107%{?with_ggi:Requires: libggi-devel}
123781fa 108%{?with_svga:Requires: svgalib-devel >= 1.4.0}
4b876257 109Requires: tslib-devel
a6a6063f 110Requires: xorg-lib-libX11-devel
fdee41b8 111Suggests: OpenGL-GLU-devel
5249f883 112
113%description devel
b1002eee 114SDL - Header files.
115
ff50bd69
JR
116%description devel -l pl.UTF-8
117SDL - Pliki nagłówkowe.
edc688e6 118
ff50bd69
JR
119%description devel -l pt_BR.UTF-8
120Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
9870d18a 121recursos para o desenvolvimento de aplicativos com SDL.
f3665afb 122
ff50bd69
JR
123%description devel -l ru.UTF-8
124Этот пакет содержит файлы, необходимые для разработки программ,
125использующих SDL.
07254893 126
ff50bd69
JR
127%description devel -l uk.UTF-8
128Цей пакет містить файли, необхідні для розробки програм, що
129використовують SDL.
07254893 130
b1002eee 131%package static
b1002eee 132Summary: SDL - static libraries
6251189d
ER
133Summary(pl.UTF-8): SDL - biblioteki statyczne
134Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento de aplicações com a SDL
135Summary(ru.UTF-8): Статические библиотеки для разработки с использованием SDL
136Summary(uk.UTF-8): Статичні бібліотеки для розробки з використанням SDL
7b1c9d40 137Group: Development/Libraries
c8088f36 138Requires: %{name}-devel = %{version}-%{release}
b1002eee 139
140%description static
141SDL - static libraries.
5249f883 142
ff50bd69 143%description static -l pl.UTF-8
edc688e6
AM
144SDL - biblioteki statyczne.
145
ff50bd69
JR
146%description static -l pt_BR.UTF-8
147Biblioteca estática para desenvolvimento de aplicações com a SDL.
f3665afb 148
ff50bd69
JR
149%description static -l ru.UTF-8
150Этот пакет содержит статические библиотеки для разработки программ,
151использующих SDL.
07254893 152
ff50bd69
JR
153%description static -l uk.UTF-8
154Цей пакет містить статичні бібліотеки для розробки програм, що
155використовують SDL.
07254893 156
6a8871ba 157%package examples
95c00871 158Summary: SDL - example programs
6251189d 159Summary(pl.UTF-8): SDL - programy przykładowe
fb451341 160License: Public Domain
7b1c9d40 161Group: Development/Libraries
c8088f36 162Requires: %{name}-devel = %{version}-%{release}
6a8871ba 163
164%description examples
165SDL - example programs.
166
ff50bd69
JR
167%description examples -l pl.UTF-8
168SDL - przykładowe programy.
6a8871ba 169
5249f883 170%prep
123781fa 171%setup -q
abea0376 172%patch0 -p1
56098bb7 173%patch1 -p1
5475e1b9 174%{?with_new_gamma_ramp:%patch2 -p1}
5664f73b 175%patch3 -p1
123781fa 176
d4348e02 177: > acinclude.m4
7186edde 178%{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
31d1406a 179%{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
f3708463 180
7063d372 181%build
98894b54 182%{__libtoolize}
ef907b8e 183%{__aclocal}
a960bb5d 184%{__autoconf}
8ae8ff19 185%configure \
4e352645 186%ifarch %{ix86}
187 --enable-nasm \
188%else
79a52426 189 --disable-nasm \
4e352645 190%endif
123781fa
JB
191 --disable-rpath \
192 %{!?with_alsa:--disable-alsa} \
193 %{!?with_arts:--disable-arts} \
194 --enable-dga \
195 %{!?with_esd:--disable-esd} \
196 %{!?with_nas:--disable-nas} \
8ae8ff19 197 --enable-pthreads \
03c04e2a 198 --enable-pthread-sem \
fdb0e5c9 199 %{?with_aalib:--enable-video-aalib} \
6e5d899e 200 %{?with_caca:--enable-video-caca} \
123781fa 201 %{!?with_directfb:--disable-video-directfb} \
4e352645 202 --enable-video-dga \
fdb0e5c9
JB
203 --enable-video-fbcon \
204 %{?with_ggi:--enable-video-ggi} \
205 --enable-video-opengl \
123781fa 206 %{!?with_svga:--disable-video-svga} \
2a1e13a3 207 --enable-video-x11-dgamouse \
4e352645 208 --enable-video-x11-vm \
123781fa
JB
209 --enable-video-x11-xinerama \
210 --enable-video-x11-xme \
211 --enable-video-x11-xrandr \
4e352645 212 --enable-video-x11-xv \
44f396f8 213 --with-x \
214 %{!?with_static_libs:--disable-static}
cee13441 215
123781fa 216%{__make}
a960bb5d 217
5249f883 218%install
cee13441 219rm -rf $RPM_BUILD_ROOT
07254893 220install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
c1a764ca 221
693a2990 222%{__make} install \
ee831bf0 223 DESTDIR=$RPM_BUILD_ROOT \
b2dddb33 224 m4datadir=%{_aclocaldir}
c1a764ca 225
fb451341 226rm -rf test/autom4te.cache
6a8871ba 227install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
228
123781fa 229rm -rf docs/man3
8ae8ff19 230
5249f883 231%clean
232rm -rf $RPM_BUILD_ROOT
233
423adad9 234%post -p /sbin/ldconfig
ef907b8e
JB
235%postun -p /sbin/ldconfig
236
5249f883 237%files
cee13441 238%defattr(644,root,root,755)
0ad2c887 239%doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
7200fdaf
JB
240%attr(755,root,root) %{_libdir}/libSDL-1.2.so.*.*.*
241%attr(755,root,root) %ghost %{_libdir}/libSDL-1.2.so.0
5249f883 242
243%files devel
cee13441 244%defattr(644,root,root,755)
fdb0e5c9 245%doc docs.html docs
8ae8ff19 246%attr(755,root,root) %{_bindir}/sdl-config
123781fa
JB
247%attr(755,root,root) %{_libdir}/libSDL.so
248%{_libdir}/libSDL.la
3975d0d9 249%{_libdir}/libSDLmain.a
9dac0b07 250%{_includedir}/SDL
123781fa 251%{_aclocaldir}/sdl.m4
b27448c3 252%{_pkgconfigdir}/sdl.pc
7200fdaf 253%{_mandir}/man3/SDL*.3*
5249f883 254
44f396f8 255%if %{with static_libs}
cee13441 256%files static
1b424fce 257%defattr(644,root,root,755)
95c00871 258%{_libdir}/libSDL.a
44f396f8 259%endif
123781fa
JB
260
261%files examples
262%defattr(644,root,root,755)
263%{_examplesdir}/%{name}-%{version}
This page took 0.775567 seconds and 4 git commands to generate.