2 Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library - Mingw32 cross version
3 Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów - wersja skrośna dla Mingw32
4 Name: crossmingw32-%{realname}
9 Source0: http://www.libsdl.org/release/%{realname}-%{version}.tar.gz
10 # Source0-md5: 544b4554986e51eed6d34435cf9c5f3f
11 Patch0: %{realname}-mmx-constraints.patch
12 Patch1: %{realname}-acfix.patch
13 URL: http://www.libsdl.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: crossmingw32-gcc
17 BuildRequires: crossmingw32-runtime
18 BuildRequires: crossmingw32-w32api
19 BuildRequires: crossmingw32-w32api-dx
20 BuildRequires: libtool >= 2:1.4d
22 BuildRequires: perl-modules
23 BuildConflicts: crossmingw32-dx70
24 Requires: crossmingw32-runtime
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define no_install_post_strip 1
29 %define target i386-mingw32
30 %define target_platform i386-pc-mingw32
32 %define _sysprefix /usr
33 %define _prefix %{_sysprefix}/%{target}
34 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
35 %define _dlldir /usr/share/wine/windows/system
36 %define __cc %{target}-gcc
37 %define __cxx %{target}-g++
39 %ifarch alpha sparc sparc64 sparcv9
40 # alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
45 SDL (Simple DirectMedia Layer) is a library that allows you portable,
46 low level access to a video framebuffer, audio output, mouse, and
47 keyboard. It can support both windowed and DGA modes of XFree86, and
48 it is designed to be portable - applications linked with SDL can also
49 be built on Win32 and BeOS.
51 This package contains the cross version for Win32.
53 %description -l pl.UTF-8
54 SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
55 przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
56 myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
57 jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
58 konsolidowane z SDL można również budować w systemach Win32 i BeOS.
60 Ten pakiet zawiera wersję skrośną dla Win32.
62 %description -l pt_BR.UTF-8
63 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
64 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
66 Essa biblioteca é usada por alguns jogos.
69 Summary: Static SDL library (cross mingw32 version)
70 Summary(pl.UTF-8): Statyczna biblioteka SDL (wersja skrośna mingw32)
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
75 Static SDL library (cross mingw32 version).
77 %description static -l pl.UTF-8
78 Statyczna biblioteka SDL (wersja skrośna mingw32).
81 Summary: SDL - DLL library for Windows
82 Summary(pl.UTF-8): SDL - biblioteka DLL dla Windows
83 Group: Applications/Emulators
86 SDL - DLL library for Windows.
88 %description dll -l pl.UTF-8
89 SDL - biblioteka DLL dla Windows.
92 %setup -q -n %{realname}-%{version}
104 --disable-stdio-redirect
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysprefix}/bin}
115 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
116 ln -s %{_bindir}/sdl-config $RPM_BUILD_ROOT%{_sysprefix}/bin/%{target}-sdl-config
119 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
120 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
123 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,man}
126 rm -rf $RPM_BUILD_ROOT
129 %defattr(644,root,root,755)
130 %doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
131 %attr(755,root,root) %{_sysprefix}/bin/%{target}-sdl-config
132 %attr(755,root,root) %{_bindir}/sdl-config
133 %{_libdir}/libSDL.dll.a
135 %{_libdir}/libSDLmain.a
137 %{_pkgconfigdir}/sdl.pc
140 %defattr(644,root,root,755)
144 %defattr(644,root,root,755)