]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- dropped (breaks static linking)
[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_caca:BuildRequires:     libcaca-devel}
48 %{?with_ggi:BuildRequires:      libggi-devel}
49 BuildRequires:  libtool >= 2:1.4d
50 %{?with_nas:BuildRequires:      nas-devel}
51 %ifarch %{ix86}
52 BuildRequires:  nasm
53 %endif
54 BuildRequires:  perl-modules
55 %{?with_directfb:BuildRequires: pkgconfig >= 0.7}
56 %{?with_svgalib:BuildRequires:  svgalib-devel >= 1.4.0}
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 SDL (Simple DirectMedia Layer) is a library that allows you portable,
61 low level access to a video framebuffer, audio output, mouse, and
62 keyboard. It can support both windowed and DGA modes of XFree86, and
63 it is designed to be portable - applications linked with SDL can also
64 be built on Win32 and BeOS.
65
66 %description -l pl
67 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
68 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
69 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
70 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
71 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
72
73 %description -l pt_BR
74 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
75 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
76
77 Essa biblioteca é usada por alguns jogos.
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}
88 Requires:       XFree86-devel >= 4.0.2
89 %{?with_alsa:Requires:  alsa-lib-devel}
90 %{?with_caca:Requires:  libcaca-devel}
91 %{?with_nas:Requires:   nas-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}
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}
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
151 %patch0 -p1
152 %patch1 -p1
153 %patch2 -p1
154 %patch3 -p1
155 %patch4 -p1
156 %patch5 -p1
157 %patch6 -p1
158 %patch7 -p1
159 %patch8 -p1
160 %patch9 -p1
161
162 # get COPY_ARCH_SRC, remove the rest
163 head -n 16 acinclude.m4 > acinclude.tmp
164 mv -f acinclude.tmp acinclude.m4
165
166 find . -type d -name CVS -print | xargs rm -rf {} \;
167
168 %build
169 %{__libtoolize}
170 %{__aclocal}
171 %{__automake}
172 %{__autoconf}
173 CPPFLAGS="-DALSA_PCM_OLD_HW_PARAMS_API"
174 %configure \
175 %ifarch %{ix86}
176         --enable-nasm \
177 %else
178         --disable-nasm \
179 %endif
180         --enable-pthreads \
181         --enable-pthread-sem \
182         --with-x \
183         --enable-dga \
184         %{?with_aalib:--enable-video-aalib} \
185         %{?with_caca:--enable-video-caca} \
186         --enable-video-dga \
187         %{?with_directfb:--enable-video-directfb} \
188         --enable-video-fbcon \
189         %{?with_ggi:--enable-video-ggi} \
190         --enable-video-opengl \
191         %{?with_svga:--enable-video-svga} \
192         --enable-video-x11-dgamouse \
193         --enable-video-x11-vm \
194         --enable-video-x11-xv \
195         %{!?with_alsa:--disable-alsa} \
196         %{!?with_arts:--disable-arts} \
197         %{!?with_esd:--disable-esd} \
198         %{!?with_nas:--disable-nas}
199
200 # automake chooses to use CXXLINK because of seen unused C++ sources
201 # (which are for BeOS and MacOS+QTopia, not Linux)
202 %{__make} \
203         CXXLINK="\$(LINK)"
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
208
209 %{__make} install \
210         DESTDIR=$RPM_BUILD_ROOT \
211         m4datadir=%{_aclocaldir}
212
213 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
214
215 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
216
217 %clean
218 rm -rf $RPM_BUILD_ROOT
219
220 %post   -p /sbin/ldconfig
221 %postun -p /sbin/ldconfig
222
223 %files
224 %defattr(644,root,root,755)
225 %doc BUGS CREDITS README TODO WhatsNew
226 %attr(755,root,root) %{_libdir}/lib*.so.*.*
227
228 %files devel
229 %defattr(644,root,root,755)
230 %doc docs.html docs
231 %attr(755,root,root) %{_bindir}/sdl-config
232 %attr(755,root,root) %{_libdir}/lib*.so
233 %{_libdir}/lib*.la
234 %{_libdir}/libSDLmain.a
235 %{_includedir}/SDL
236 %{_aclocaldir}/*
237 %{_mandir}/man3/*
238
239 %files examples
240 %defattr(644,root,root,755)
241 %{_examplesdir}/%{name}-%{version}
242
243 %files static
244 %defattr(644,root,root,755)
245 %{_libdir}/libSDL.a
This page took 1.023034 seconds and 3 git commands to generate.