]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- caca support
[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(es):    Simple DirectMedia Layer
15 Summary(pl):    SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
16 Summary(pt_BR): Simple DirectMedia Layer
17 Summary(ru):    Simple DirectMedia Layer
18 Summary(uk):    Simple DirectMedia Layer
19 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
20 Name:           SDL
21 Version:        1.2.6
22 Release:        4
23 License:        LGPL
24 Group:          X11/Libraries
25 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
26 # Source0-md5:  9011f147f23ec535515291d0c9c6904c
27 Patch0:         %{name}-byteorder.patch
28 Patch1:         %{name}-fixlibs.patch
29 Patch2:         %{name}-amfix.patch
30 Patch3:         %{name}-lpthread.patch
31 Patch4:         %{name}-no_rpath_in_sdl-config.patch
32 Patch5:         %{name}-lt15.patch
33 Patch6:         %{name}-dlopen-acfix.patch
34 Patch7:         %{name}-mmx-constraints.patch
35 Patch8:         %{name}-am18.patch
36 Patch9:         %{name}-caca.patch
37 URL:            http://www.libsdl.org/
38 %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.15}
39 BuildRequires:  OpenGL-devel
40 BuildRequires:  XFree86-devel >= 4.0.2
41 %{?with_aalib:BuildRequires:    aalib-devel}
42 %{?with_alsa:BuildRequires:     alsa-lib-devel >= 0.9.0}
43 %{?with_arts:BuildRequires:     artsc-devel >= 1.1}
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 %{?with_esd:BuildRequires:      esound-devel >= 0.2.8}
47 %{?with_ggi:BuildRequires:      libggi-devel}
48 BuildRequires:  libtool >= 2:1.4d
49 %{?with_nas:BuildRequires:      nas-devel}
50 %ifarch %{ix86}
51 BuildRequires:  nasm
52 %endif
53 BuildRequires:  perl-modules
54 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
55 %{?with_svgalib:BuildRequires:  svgalib-devel >= 1.4.0}
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %description
59 SDL (Simple DirectMedia Layer) is a library that allows you portable,
60 low level access to a video framebuffer, audio output, mouse, and
61 keyboard. It can support both windowed and DGA modes of XFree86, and
62 it is designed to be portable - applications linked with SDL can also
63 be built on Win32 and BeOS.
64
65 %description -l pl
66 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
67 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
68 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
69 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
70 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
71
72 %description -l pt_BR
73 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
74 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
75
76 Essa biblioteca é usada por alguns jogos.
77
78 %package devel
79 Summary:        SDL - Header files
80 Summary(pl):    SDL - Pliki nag³ówkowe
81 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
82 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
83 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
84 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
85 Group:          X11/Development/Libraries
86 Requires:       %{name} = %{version}
87 Requires:       XFree86-devel >= 4.0.2
88 %{?with_alsa:Requires:  alsa-lib-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}
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}
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 %patch8 -p1
158 %patch9 -p1
159
160 # get COPY_ARCH_SRC, remove the rest
161 head -n 16 acinclude.m4 > acinclude.tmp
162 mv -f acinclude.tmp acinclude.m4
163
164 find . -type d -name CVS -print | xargs rm -rf {} \;
165
166 %build
167 %{__libtoolize}
168 %{__aclocal}
169 %{__automake}
170 %{__autoconf}
171 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
172 %configure \
173 %ifarch %{ix86}
174         --enable-nasm \
175 %else
176         --disable-nasm \
177 %endif
178         --enable-pthreads \
179         --enable-pthread-sem \
180         --with-x \
181         --enable-dga \
182         %{?with_aalib:--enable-video-aalib} \
183         %{?with_caca:--enable-video-caca} \
184         --enable-video-dga \
185         %{?with_directfb:--enable-video-directfb} \
186         --enable-video-fbcon \
187         %{?with_ggi:--enable-video-ggi} \
188         --enable-video-opengl \
189         %{?with_svga:--enable-video-svga} \
190         --enable-video-x11-dgamouse \
191         --enable-video-x11-vm \
192         --enable-video-x11-xv \
193         %{!?with_alsa:--disable-alsa} \
194         %{!?with_arts:--disable-arts} \
195         %{!?with_esd:--disable-esd} \
196         %{!?with_nas:--disable-nas}
197
198 # automake chooses to use CXXLINK because of seen unused C++ sources
199 # (which are for BeOS and MacOS+QTopia, not Linux)
200 %{__make} \
201         CXXLINK="\$(LINK)"
202
203 %install
204 rm -rf $RPM_BUILD_ROOT
205 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
206
207 %{__make} install \
208         DESTDIR=$RPM_BUILD_ROOT \
209         m4datadir=%{_aclocaldir}
210
211 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
212
213 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
214
215 %clean
216 rm -rf $RPM_BUILD_ROOT
217
218 %post   -p /sbin/ldconfig
219 %postun -p /sbin/ldconfig
220
221 %files
222 %defattr(644,root,root,755)
223 %doc BUGS CREDITS README TODO WhatsNew
224 %attr(755,root,root) %{_libdir}/lib*.so.*.*
225
226 %files devel
227 %defattr(644,root,root,755)
228 %doc docs.html docs
229 %attr(755,root,root) %{_bindir}/sdl-config
230 %attr(755,root,root) %{_libdir}/lib*.so
231 %{_libdir}/lib*.la
232 %{_libdir}/libSDLmain.a
233 %{_includedir}/SDL
234 %{_aclocaldir}/*
235 %{_mandir}/man3/*
236
237 %files examples
238 %defattr(644,root,root,755)
239 %{_examplesdir}/%{name}-%{version}
240
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/libSDL.a
This page took 0.07165 seconds and 4 git commands to generate.