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