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: e52086d1b508fa0b76c52ee30b55bec4
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:2.0
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 _libdir %{_prefix}/lib
35 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
36 %define _dlldir /usr/share/wine/windows/system
37 %define __cc %{target}-gcc
38 %define __cxx %{target}-g++
41 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
44 # -z options are invalid for mingw linker
45 %define filterout_ld -Wl,-z,.*
48 SDL (Simple DirectMedia Layer) is a library that allows you portable,
49 low level access to a video framebuffer, audio output, mouse, and
50 keyboard. It can support both windowed and DGA modes of XFree86, and
51 it is designed to be portable - applications linked with SDL can also
52 be built on Win32 and BeOS.
54 This package contains the cross version for Win32.
56 %description -l pl.UTF-8
57 SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
58 przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
59 myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
60 jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
61 konsolidowane z SDL można również budować w systemach Win32 i BeOS.
63 Ten pakiet zawiera wersję skrośną dla Win32.
65 %description -l pt_BR.UTF-8
66 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
67 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
69 Essa biblioteca é usada por alguns jogos.
72 Summary: Static SDL library (cross mingw32 version)
73 Summary(pl.UTF-8): Statyczna biblioteka SDL (wersja skrośna mingw32)
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
78 Static SDL library (cross mingw32 version).
80 %description static -l pl.UTF-8
81 Statyczna biblioteka SDL (wersja skrośna mingw32).
84 Summary: SDL - DLL library for Windows
85 Summary(pl.UTF-8): SDL - biblioteka DLL dla Windows
86 Group: Applications/Emulators
89 SDL - DLL library for Windows.
91 %description dll -l pl.UTF-8
92 SDL - biblioteka DLL dla Windows.
95 %setup -q -n %{realname}-%{version}
107 --disable-stdio-redirect
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysprefix}/bin}
118 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
119 ln -s %{_bindir}/sdl-config $RPM_BUILD_ROOT%{_sysprefix}/bin/%{target}-sdl-config
122 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
123 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
126 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,man}
129 rm -rf $RPM_BUILD_ROOT
132 %defattr(644,root,root,755)
133 %doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
134 %attr(755,root,root) %{_sysprefix}/bin/%{target}-sdl-config
135 %attr(755,root,root) %{_bindir}/sdl-config
136 %{_libdir}/libSDL.dll.a
138 %{_libdir}/libSDLmain.a
140 %{_pkgconfigdir}/sdl.pc
143 %defattr(644,root,root,755)
147 %defattr(644,root,root,755)
148 %{_dlldir}/libSDL-1-2-0.dll