3 # _without_alsa - without ALSA support
4 # _without_esound - without esound support
5 # _without_arts - without arts support
6 # _with_svga - with svgalib support
7 # _with_aalib - with aalib support
8 # _with_ggi - with GGI support
11 %define _without_arts 1
14 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
15 Summary(es): Simple DirectMedia Layer
16 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
17 Summary(pt_BR): Simple DirectMedia Layer
23 Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
24 Patch0: %{name}-byteorder.patch
25 Patch1: %{name}-fixlibs.patch
26 Patch2: %{name}-amfix.patch
27 Patch3: %{name}-lpthread.patch
28 URL: http://www.libsdl.org/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 %{!?_without_esound:BuildRequires: esound-devel}
32 %{!?_without_arts:BuildRequires: arts-devel}
33 BuildRequires: gtk+-devel >= 1.2.1
34 BuildRequires: XFree86-devel >= 4.0.2
35 BuildRequires: OpenGL-devel
36 BuildRequires: perl-modules
38 %ifnarch sparc sparc64
39 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
41 %{?_with_svgalib:BuildRequires: svgalib-devel}
42 %{?_with_aalib:BuildRequires: aalib-devel}
43 %{?_with_ggi:BuildRequires: libggi-devel}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _prefix /usr/X11R6
47 %define _mandir %{_prefix}/man
50 SDL (Simple DirectMedia Layer) is a library that allows you portable,
51 low level access to a video framebuffer, audio output, mouse, and
52 keyboard. It can support both windowed and DGA modes of XFree86, and
53 it is designed to be portable - applications linked with SDL can also
54 be built on Win32 and BeOS.
57 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
58 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
59 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
60 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
61 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
64 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
65 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
67 Essa biblioteca é usada por alguns jogos.
70 Summary: SDL - Header files
71 Summary(pl): SDL - Pliki nag³ówkowe
72 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
74 Requires: %{name} = %{version}
75 %ifnarch sparc sparc64
76 %{!?_without_alsa:Requires: alsa-lib-devel}
78 %{!?_without_esound:Requires: esound-devel}
79 %{!?_without_arts:Requires: arts-devel}
80 Requires: XFree86-devel >= 4.0.2
85 %description -l pl devel
86 SDL - Pliki nag³ówkowe.
88 %description -l pt_BR devel
89 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
90 recursos para o desenvolvimento de aplicativos com SDL.
93 Summary: SDL - static libraries
94 Summary(pl): SDL - biblioteki statyczne
95 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
97 Requires: %{name}-devel = %{version}
100 SDL - static libraries.
102 %description -l pl static
103 SDL - biblioteki statyczne.
105 %description -l pt_BR static
106 Biblioteca estática para desenvolvimento de aplicações com a SDL.
117 libtoolize --copy --force
121 cp src/hermes/Makefile.in Makefile.in.ok
122 automake -a -c --foreign
123 cp Makefile.in.ok src/hermes/Makefile.in
125 %ifnarch sparc sparc64
126 %{!?_without_alsa:--enable-alsa} \
130 --enable-pthread-sem \
132 --enable-video-x11-vm \
133 --enable-video-x11-dga \
134 --enable-video-x11-mtrr \
135 --enable-video-x11-dgamouse \
136 --enable-video-opengl \
137 %{!?_without_esound:--enable-esd} \
138 %{!?_without_arts:--enable-arts} \
139 %{?_with_svga:--enable-video-svga} \
140 %{?_with_aalib:--enable-video-aalib} \
141 %{?_with_ggi:--enable-video-ggi}
144 rm -rf $RPM_BUILD_ROOT
147 DESTDIR=$RPM_BUILD_ROOT \
148 m4datadir=%{_aclocaldir}
150 rm -rf docs/man3 docs/Makefile* docs/html/Makefile*
152 gzip -9nf BUGS CREDITS README TODO WhatsNew
154 %post -p /sbin/ldconfig
155 %postun -p /sbin/ldconfig
158 rm -rf $RPM_BUILD_ROOT
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/lib*.so.*.*
165 %defattr(644,root,root,755)
166 %doc {BUGS,CREDITS,README,TODO,WhatsNew}.gz docs.html docs
167 %attr(755,root,root) %{_bindir}/sdl-config
168 %attr(755,root,root) %{_libdir}/lib*.so
169 %attr(755,root,root) %{_libdir}/lib*.la
170 %{_libdir}/libSDLmain.a
176 %defattr(644,root,root,755)