]> git.pld-linux.org Git - packages/SDL.git/blame - SDL.spec
- cleanup acinclude.m4, else libtool fails
[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
26405dc3 26Version: 1.2.13
1268d685 27Release: 2
fb451341 28License: LGPL v2.1+
7b1c9d40 29Group: Libraries
123781fa 30Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
26405dc3 31# Source0-md5: c6660feea2a6834de10bc71b2f8e4d88
123781fa
JB
32Patch0: %{name}-mmx-constraints.patch
33Patch1: %{name}-acfix.patch
34Patch2: %{name}-caca.patch
1268d685 35Patch3: %{name}-libdir.patch
edc688e6 36URL: http://www.libsdl.org/
fdb0e5c9 37%{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
c080b1ae 38BuildRequires: OpenGL-GLU-devel
fdb0e5c9 39%{?with_aalib:BuildRequires: aalib-devel}
fdb0e5c9 40%{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
99ece653 41%{?with_arts:BuildRequires: artsc-devel >= 1.1}
123781fa 42BuildRequires: autoconf >= 2.59-9
56098bb7 43BuildRequires: automake
16f25dd2 44%{?with_esd:BuildRequires: esound-devel >= 0.2.8}
53b1a977 45BuildRequires: gcc >= 5:4.0
ecfe5ee2 46%{?with_caca:BuildRequires: libcaca-devel}
fdb0e5c9 47%{?with_ggi:BuildRequires: libggi-devel}
7063d372 48BuildRequires: libtool >= 2:1.4d
fdb0e5c9 49%{?with_nas:BuildRequires: nas-devel}
6a8871ba 50%ifarch %{ix86}
c4094cdf 51BuildRequires: nasm
6a8871ba 52%endif
ef907b8e 53BuildRequires: perl-modules
6fb16461 54%{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
fb451341 55BuildRequires: pulseaudio-devel >= 0.9
5a610d3e 56%{?with_svga:BuildRequires: svgalib-devel >= 1.4.0}
4b876257 57BuildRequires: tslib-devel
123781fa 58BuildRequires: xorg-lib-libX11-devel
10fab296 59BuildRequires: xorg-lib-libXext-devel
123781fa
JB
60BuildRequires: xorg-lib-libXrandr-devel
61BuildRequires: xorg-lib-libXrender-devel
62BuildRequires: xorg-proto-xextproto-devel
b2dddb33 63BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5249f883 64
5e739514 65%define specflags_ppc -maltivec
66
5249f883 67%description
ba42f390 68SDL (Simple DirectMedia Layer) is a library that allows you portable,
69low level access to a video framebuffer, audio output, mouse, and
70keyboard. It can support both windowed and DGA modes of XFree86, and
71it is designed to be portable - applications linked with SDL can also
72be built on Win32 and BeOS.
cee13441 73
ff50bd69
JR
74%description -l pl.UTF-8
75SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
76przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
77myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
78jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
79konsolidowane z SDL można również budować w systemach Win32 i BeOS.
e46b33b9 80
ff50bd69
JR
81%description -l pt_BR.UTF-8
82Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
83baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
f3665afb 84
ff50bd69 85Essa biblioteca é usada por alguns jogos.
f3665afb 86
ff50bd69
JR
87%description -l ru.UTF-8
88SDL (Simple DirectMedia Layer) это набор функций, предоставляющий
89низкоуровневый доступ к звуку, клавиатуре, манипулятору мышь и к
90буферу экрана на множестве различных платформ.
80c61973 91
cee13441 92%package devel
b1002eee 93Summary: SDL - Header files
6251189d
ER
94Summary(pl.UTF-8): SDL - Pliki nagłówkowe
95Summary(pt_BR.UTF-8): Bibliotecas e arquivos de cabeçalho para aplicações SDL
96Summary(ru.UTF-8): Файлы, необходимые для разработки программ, использующих SDL
97Summary(uk.UTF-8): Файли, необхідні для розробки програм, що використовують SDL
98Summary(zh_CN.UTF-8): SDL (Simple DirectMedia Layer) 开发库
7b1c9d40 99Group: Development/Libraries
c8088f36 100Requires: %{name} = %{version}-%{release}
84c8e794 101Suggests: OpenGL-GLU-devel
123781fa
JB
102%{?with_directfb:Requires: DirectFB-devel >= 0.9.15}
103%{?with_aa:Requires: aalib-devel}
ecfe5ee2 104%{?with_caca:Requires: libcaca-devel}
123781fa 105%{?with_ggi:Requires: libggi-devel}
fdb0e5c9 106%{?with_nas:Requires: nas-devel}
123781fa 107%{?with_svga:Requires: svgalib-devel >= 1.4.0}
4b876257 108Requires: tslib-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 171#%patch2 -p1 # needs rewrite
1268d685 172%patch3 -p1
123781fa 173
d4348e02 174: > acinclude.m4
7186edde 175%{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
31d1406a 176%{!?with_esd:echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4}
f3708463 177
7063d372 178%build
98894b54 179%{__libtoolize}
ef907b8e 180%{__aclocal}
a960bb5d 181%{__autoconf}
8ae8ff19 182%configure \
4e352645 183%ifarch %{ix86}
184 --enable-nasm \
185%else
79a52426 186 --disable-nasm \
4e352645 187%endif
123781fa
JB
188 --disable-rpath \
189 %{!?with_alsa:--disable-alsa} \
190 %{!?with_arts:--disable-arts} \
191 --enable-dga \
192 %{!?with_esd:--disable-esd} \
193 %{!?with_nas:--disable-nas} \
8ae8ff19 194 --enable-pthreads \
03c04e2a 195 --enable-pthread-sem \
fdb0e5c9 196 %{?with_aalib:--enable-video-aalib} \
6e5d899e 197 %{?with_caca:--enable-video-caca} \
123781fa 198 %{!?with_directfb:--disable-video-directfb} \
4e352645 199 --enable-video-dga \
fdb0e5c9
JB
200 --enable-video-fbcon \
201 %{?with_ggi:--enable-video-ggi} \
202 --enable-video-opengl \
123781fa 203 %{!?with_svga:--disable-video-svga} \
2a1e13a3 204 --enable-video-x11-dgamouse \
4e352645 205 --enable-video-x11-vm \
123781fa
JB
206 --enable-video-x11-xinerama \
207 --enable-video-x11-xme \
208 --enable-video-x11-xrandr \
4e352645 209 --enable-video-x11-xv \
44f396f8 210 --with-x \
211 %{!?with_static_libs:--disable-static}
cee13441 212
123781fa 213%{__make}
a960bb5d 214
5249f883 215%install
cee13441 216rm -rf $RPM_BUILD_ROOT
07254893 217install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
c1a764ca 218
693a2990 219%{__make} install \
ee831bf0 220 DESTDIR=$RPM_BUILD_ROOT \
b2dddb33 221 m4datadir=%{_aclocaldir}
c1a764ca 222
fb451341 223rm -rf test/autom4te.cache
6a8871ba 224install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
225
123781fa 226rm -rf docs/man3
8ae8ff19 227
5249f883 228%clean
229rm -rf $RPM_BUILD_ROOT
230
423adad9 231%post -p /sbin/ldconfig
ef907b8e
JB
232%postun -p /sbin/ldconfig
233
5249f883 234%files
cee13441 235%defattr(644,root,root,755)
0ad2c887 236%doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
7200fdaf
JB
237%attr(755,root,root) %{_libdir}/libSDL-1.2.so.*.*.*
238%attr(755,root,root) %ghost %{_libdir}/libSDL-1.2.so.0
5249f883 239
240%files devel
cee13441 241%defattr(644,root,root,755)
fdb0e5c9 242%doc docs.html docs
8ae8ff19 243%attr(755,root,root) %{_bindir}/sdl-config
123781fa
JB
244%attr(755,root,root) %{_libdir}/libSDL.so
245%{_libdir}/libSDL.la
3975d0d9 246%{_libdir}/libSDLmain.a
9dac0b07 247%{_includedir}/SDL
123781fa 248%{_aclocaldir}/sdl.m4
b27448c3 249%{_pkgconfigdir}/sdl.pc
7200fdaf 250%{_mandir}/man3/SDL*.3*
5249f883 251
44f396f8 252%if %{with static_libs}
cee13441 253%files static
1b424fce 254%defattr(644,root,root,755)
95c00871 255%{_libdir}/libSDL.a
44f396f8 256%endif
123781fa
JB
257
258%files examples
259%defattr(644,root,root,755)
260%{_examplesdir}/%{name}-%{version}
This page took 0.116955 seconds and 4 git commands to generate.