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