]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- quick workaround for gcc PR21398.
[packages/SDL.git] / SDL.spec
1 #
2 # Conditional build:
3 %bcond_with     aalib           # with aalib graphics support
4 %bcond_with     caca            # with caca graphics support
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
11 %bcond_without  esd             # without EsounD audio support
12 #
13 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
14 Summary(pl):    SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
15 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
16 Name:           SDL
17 Version:        1.2.8
18 Release:        2
19 License:        LGPL
20 Group:          X11/Libraries
21 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
22 # Source0-md5:  37aaf9f069f9c2c18856022f35de9f8c
23 Patch0:         %{name}-byteorder.patch
24 Patch1:         %{name}-amfix.patch
25 Patch2:         %{name}-lpthread.patch
26 Patch3:         %{name}-no_rpath_in_sdl-config.patch
27 Patch4:         %{name}-mmx-constraints.patch
28 Patch5:         %{name}-caca.patch
29 Patch6:         %{name}-gcc4.patch
30 Patch7:         %{name}-gcc-pr21398-workaround.patch
31 URL:            http://www.libsdl.org/
32 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
33 BuildRequires:  OpenGL-devel
34 %{?with_aalib:BuildRequires:    aalib-devel}
35 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
36 %{?with_arts:BuildRequires:     artsc-devel >= 1.1}
37 BuildRequires:  autoconf
38 BuildRequires:  automake
39 %{?with_esd:BuildRequires:      esound-devel >= 0.2.8}
40 %{?with_caca:BuildRequires:     libcaca-devel}
41 %{?with_ggi:BuildRequires:      libggi-devel}
42 BuildRequires:  libtool >= 2:1.4d
43 %{?with_nas:BuildRequires:      nas-devel}
44 %ifarch %{ix86}
45 BuildRequires:  nasm
46 %endif
47 BuildRequires:  perl-modules
48 %{?with_directfb:BuildRequires: pkgconfig >= 1:0.7}
49 %{?with_svgalib:BuildRequires:  svgalib-devel >= 1.4.0}
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 SDL (Simple DirectMedia Layer) is a library that allows you portable,
54 low level access to a video framebuffer, audio output, mouse, and
55 keyboard. It can support both windowed and DGA modes of XFree86, and
56 it is designed to be portable - applications linked with SDL can also
57 be built on Win32 and BeOS.
58
59 %description -l pl
60 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
61 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
62 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
63 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
64 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
65
66 %description -l pt_BR
67 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
68 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
69
70 Essa biblioteca é usada por alguns jogos.
71
72 %package devel
73 Summary:        SDL - Header files
74 Summary(pl):    SDL - Pliki nag³ówkowe
75 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
76 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
77 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
78 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
79 Group:          X11/Development/Libraries
80 Requires:       %{name} = %{version}-%{release}
81 %if %{with xlibs}
82 Requires:       libX11-devel
83 Requires:       libXext-devel
84 %else
85 Requires:       XFree86-devel >= 4.0.2
86 %endif
87 %{?with_alsa:Requires:  alsa-lib-devel}
88 %{?with_caca:Requires:  libcaca-devel}
89 %{?with_nas:Requires:   nas-devel}
90
91 %description devel
92 SDL - Header files.
93
94 %description devel -l pl
95 SDL - Pliki nag³ówkowe.
96
97 %description devel -l pt_BR
98 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
99 recursos para o desenvolvimento de aplicativos com SDL.
100
101 %description devel -l ru
102 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
103 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
104
105 %description devel -l uk
106 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
107 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
108
109 %package static
110 Summary:        SDL - static libraries
111 Summary(pl):    SDL - biblioteki statyczne
112 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
113 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
114 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
115 Group:          X11/Development/Libraries
116 Requires:       %{name}-devel = %{version}-%{release}
117
118 %description static
119 SDL - static libraries.
120
121 %description static -l pl
122 SDL - biblioteki statyczne.
123
124 %description static -l pt_BR
125 Biblioteca estática para desenvolvimento de aplicações com a SDL.
126
127 %description static -l ru
128 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
129 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
130
131 %description static -l uk
132 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
133 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
134
135 %package examples
136 Summary:        SDL - example programs
137 Summary(pl):    SDL - programy przyk³adowe
138 Group:          X11/Development/Libraries
139 Requires:       %{name}-devel = %{version}-%{release}
140
141 %description examples
142 SDL - example programs.
143
144 %description examples -l pl
145 SDL - przyk³adowe programy.
146
147 %prep
148 %setup -q
149 %patch0 -p1
150 %patch1 -p1
151 %patch2 -p1
152 %patch3 -p1
153 %patch4 -p1
154 %patch5 -p1
155 %patch6 -p1
156 %patch7 -p1
157
158 # get COPY_ARCH_SRC, remove the rest
159 head -n 20 acinclude.m4 > acinclude.tmp
160 mv -f acinclude.tmp acinclude.m4
161
162 find . -type d -name CVS -print | xargs rm -rf {} \;
163
164 %build
165 %{__libtoolize}
166 %{__aclocal}
167 %{__automake}
168 %{__autoconf}
169 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
170 %configure \
171 %ifarch %{ix86}
172         --enable-nasm \
173 %else
174         --disable-nasm \
175 %endif
176         --enable-pthreads \
177         --enable-pthread-sem \
178         --with-x \
179         --enable-dga \
180         %{?with_aalib:--enable-video-aalib} \
181         %{?with_caca:--enable-video-caca} \
182         --enable-video-dga \
183         %{?with_directfb:--enable-video-directfb} \
184         --enable-video-fbcon \
185         %{?with_ggi:--enable-video-ggi} \
186         --enable-video-opengl \
187         %{?with_svga:--enable-video-svga} \
188         --enable-video-x11-dgamouse \
189         --enable-video-x11-vm \
190         --enable-video-x11-xv \
191         %{!?with_alsa:--disable-alsa} \
192         %{!?with_arts:--disable-arts} \
193         %{!?with_esd:--disable-esd} \
194         %{!?with_nas:--disable-nas}
195
196 # automake chooses to use CXXLINK because of seen unused C++ sources
197 # (which are for BeOS and MacOS+QTopia, not Linux)
198 %{__make} \
199         CXXLINK="\$(LINK)"
200
201 %install
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
204
205 %{__make} install \
206         DESTDIR=$RPM_BUILD_ROOT \
207         m4datadir=%{_aclocaldir}
208
209 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
210
211 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
212
213 %clean
214 rm -rf $RPM_BUILD_ROOT
215
216 %post   -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
218
219 %files
220 %defattr(644,root,root,755)
221 %doc BUGS CREDITS README TODO WhatsNew
222 %attr(755,root,root) %{_libdir}/lib*.so.*.*
223
224 %files devel
225 %defattr(644,root,root,755)
226 %doc docs.html docs
227 %attr(755,root,root) %{_bindir}/sdl-config
228 %attr(755,root,root) %{_libdir}/lib*.so
229 %{_libdir}/lib*.la
230 %{_libdir}/libSDLmain.a
231 %{_includedir}/SDL
232 %{_aclocaldir}/*
233 %{_mandir}/man3/*
234
235 %files examples
236 %defattr(644,root,root,755)
237 %{_examplesdir}/%{name}-%{version}
238
239 %files static
240 %defattr(644,root,root,755)
241 %{_libdir}/libSDL.a
This page took 0.06128 seconds and 3 git commands to generate.