2 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library
3 Summary(es): Simple DirectMedia Layer
4 Summary(pl): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
5 Summary(pt_BR): Simple DirectMedia Layer
6 Summary(ru): Simple DirectMedia Layer
7 Summary(uk): Simple DirectMedia Layer
8 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
9 Name: crossmingw32-%{realname}
14 Source0: http://www.libsdl.org/release/%{realname}-%{version}.tar.gz
15 # Source0-md5: 9011f147f23ec535515291d0c9c6904c
16 Patch0: %{realname}-byteorder.patch
17 Patch1: %{realname}-fixlibs.patch
18 Patch2: %{realname}-amfix.patch
19 Patch3: %{realname}-lpthread.patch
20 Patch4: %{realname}-ac25x.patch
21 Patch5: %{realname}-no_rpath_in_sdl-config.patch
22 Patch6: %{realname}-noobjc.patch
23 Patch7: %{realname}-am17.patch
24 Patch8: %{realname}-lt15.patch
25 URL: http://www.libsdl.org/
26 BuildRequires: OpenGL-devel
27 BuildRequires: XFree86-devel >= 4.0.2
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: crossmingw32-gcc
31 BuildRequires: crossmingw32-dx70
32 BuildRequires: libtool >= 2:1.4d
36 BuildRequires: perl-modules
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define no_install_post_strip 1
41 %define target i386-mingw32
42 %define target_platform i386-pc-mingw32
43 %define arch %{_prefix}/%{target}
44 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
45 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
47 %define __cc %{target}-gcc
48 %define __cxx %{target}-g++
51 SDL (Simple DirectMedia Layer) is a library that allows you portable,
52 low level access to a video framebuffer, audio output, mouse, and
53 keyboard. It can support both windowed and DGA modes of XFree86, and
54 it is designed to be portable - applications linked with SDL can also
55 be built on Win32 and BeOS.
58 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
59 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
60 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
61 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
62 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
65 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
66 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
68 Essa biblioteca é usada por alguns jogos.
71 Summary: SDL - Header files
72 Summary(pl): SDL - Pliki nag³ówkowe
73 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
74 Summary(ru): æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
75 Summary(uk): æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
76 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
77 Group: X11/Development/Libraries
78 Requires: %{name} = %{version}
79 Requires: XFree86-devel >= 4.0.2
80 %ifnarch sparc sparc64
81 %{!?_without_alsa:Requires: alsa-lib-devel}
83 %{!?_without_arts:Requires: arts-devel}
84 %{!?_without_esound:Requires: esound-devel}
85 %{?_with_nas:Requires: nas-devel}
90 %description devel -l pl
91 SDL - Pliki nag³ówkowe.
93 %description devel -l pt_BR
94 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
95 recursos para o desenvolvimento de aplicativos com SDL.
97 %description devel -l ru
98 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
101 %description devel -l uk
102 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
106 Summary: SDL - static libraries
107 Summary(pl): SDL - biblioteki statyczne
108 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
109 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
110 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
111 Group: X11/Development/Libraries
112 Requires: %{name}-devel = %{version}
115 SDL - static libraries.
117 %description static -l pl
118 SDL - biblioteki statyczne.
120 %description static -l pt_BR
121 Biblioteca estática para desenvolvimento de aplicações com a SDL.
123 %description static -l ru
124 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
127 %description static -l uk
128 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
132 Summary: SDL - example programs
133 Summary(pl): SDL - programy przyk³adowe
134 Group: X11/Development/Libraries
135 Requires: %{name}-devel = %{version}
137 %description examples
138 SDL - example programs.
140 %description examples -l pl
141 SDL - przyk³adowe programy.
144 %setup -q -n %{realname}-%{version}
155 # get COPY_ARCH_SRC, remove the rest
156 head -n 16 acinclude.m4 > acinclude.tmp
157 mv -f acinclude.tmp acinclude.m4
159 find . -type d -name CVS -print | xargs rm -rf {} \;
164 CC=%{target}-gcc ; export CC
165 CXX=%{target}-g++ ; export CXX
166 LD=%{target}-ld ; export LD
167 AR=%{target}-ar ; export AR
168 AS=%{target}-as ; export AS
169 CROSS_COMPILE=1 ; export CROSS_COMPILE
170 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
171 RANLIB=%{target}-ranlib ; export RANLIB
172 LDSHARED="%{target}-gcc -shared" ; export LDSHARED
173 TARGET="%{target}" ; export TARGET
175 rm -f missing libtool
193 cat sdl-config | sed -e 's@-I/usr/include/SDL@-I/%{arch}/include/SDL@' > sdl.new
194 mv -f sdl.new sdl-config
197 rm -rf $RPM_BUILD_ROOT
198 install -d $RPM_BUILD_ROOT%{arch}/{bin,include/SDL,lib}
199 install -d $RPM_BUILD_ROOT%{_bindir}
201 install include/*.h $RPM_BUILD_ROOT%{arch}/include/SDL
202 install sdl-config $RPM_BUILD_ROOT%{arch}/bin/sdl-config
203 install src/.libs/libSDL.a src/main/libSDLmain.a $RPM_BUILD_ROOT%{arch}/lib
205 ln -s %{arch}/bin/sdl-config $RPM_BUILD_ROOT%{_bindir}/%{target}-sdl-config
208 rm -rf $RPM_BUILD_ROOT
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_bindir}/*
213 %attr(755,root,root) %{arch}/bin/*