]> git.pld-linux.org Git - packages/crossmingw32-SDL.git/blame - crossmingw32-SDL.spec
- LGPL v2.1+
[packages/crossmingw32-SDL.git] / crossmingw32-SDL.spec
CommitLineData
9e7e30d2 1%define realname SDL
f23ff117 2Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library - Mingw32 cross version
d736829d 3Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów - wersja skrośna dla Mingw32
9e7e30d2 4Name: crossmingw32-%{realname}
7cc0fac6 5Version: 1.2.12
5ea84172 6Release: 1
e608a184 7License: LGPL v2.1+
cfa7fe44 8Group: Libraries
b53f7a3a 9Source0: http://www.libsdl.org/release/%{realname}-%{version}.tar.gz
7cc0fac6 10# Source0-md5: 544b4554986e51eed6d34435cf9c5f3f
cfa7fe44
JB
11Patch0: %{realname}-mmx-constraints.patch
12Patch1: %{realname}-acfix.patch
9e7e30d2 13URL: http://www.libsdl.org/
9e7e30d2 14BuildRequires: autoconf
15BuildRequires: automake
16BuildRequires: crossmingw32-gcc
e34dc44c 17BuildRequires: crossmingw32-runtime
ee573ed1 18BuildRequires: crossmingw32-w32api
8b1b6f3a 19BuildRequires: crossmingw32-w32api-dx
9e7e30d2 20BuildRequires: libtool >= 2:1.4d
9e7e30d2 21BuildRequires: nasm
9e7e30d2 22BuildRequires: perl-modules
5ea84172
JB
23BuildConflicts: crossmingw32-dx70
24Requires: crossmingw32-runtime
9e7e30d2 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%define no_install_post_strip 1
28
7cc0fac6
JB
29%define target i386-mingw32
30%define target_platform i386-pc-mingw32
9e7e30d2 31
7cc0fac6
JB
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++
9e7e30d2 38
24a16a4a
JB
39%ifarch alpha sparc sparc64 sparcv9
40# alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
41%define optflags -O2
42%endif
43
9e7e30d2 44%description
45SDL (Simple DirectMedia Layer) is a library that allows you portable,
46low level access to a video framebuffer, audio output, mouse, and
47keyboard. It can support both windowed and DGA modes of XFree86, and
48it is designed to be portable - applications linked with SDL can also
49be built on Win32 and BeOS.
50
7cc0fac6
JB
51This package contains the cross version for Win32.
52
1b084377
JR
53%description -l pl.UTF-8
54SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
55przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
56myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
57jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
58konsolidowane z SDL można również budować w systemach Win32 i BeOS.
9e7e30d2 59
7cc0fac6
JB
60Ten pakiet zawiera wersję skrośną dla Win32.
61
1b084377
JR
62%description -l pt_BR.UTF-8
63Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
64baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
9e7e30d2 65
1b084377 66Essa biblioteca é usada por alguns jogos.
9e7e30d2 67
7cc0fac6
JB
68%package static
69Summary: Static SDL library (cross mingw32 version)
70Summary(pl.UTF-8): Statyczna biblioteka SDL (wersja skrośna mingw32)
71Group: Development/Libraries
72Requires: %{name} = %{version}-%{release}
73
74%description static
75Static SDL library (cross mingw32 version).
76
77%description static -l pl.UTF-8
78Statyczna biblioteka SDL (wersja skrośna mingw32).
79
8b1b6f3a 80%package dll
81Summary: SDL - DLL library for Windows
d736829d 82Summary(pl.UTF-8): SDL - biblioteka DLL dla Windows
8b1b6f3a 83Group: Applications/Emulators
84
85%description dll
86SDL - DLL library for Windows.
87
1b084377 88%description dll -l pl.UTF-8
8b1b6f3a 89SDL - biblioteka DLL dla Windows.
9e7e30d2 90
91%prep
b53f7a3a 92%setup -q -n %{realname}-%{version}
9e7e30d2 93%patch0 -p1
cfa7fe44 94%patch1 -p1
9e7e30d2 95
96%build
7cc0fac6
JB
97%{__libtoolize}
98%{__aclocal}
99%{__autoconf}
9e7e30d2 100%configure \
101 --target=%{target} \
102 --host=%{target} \
9e7e30d2 103 --enable-nasm \
8b1b6f3a 104 --disable-stdio-redirect
9e7e30d2 105
106%{__make}
107
9e7e30d2 108%install
109rm -rf $RPM_BUILD_ROOT
9e7e30d2 110
7cc0fac6
JB
111%{__make} install \
112 DESTDIR=$RPM_BUILD_ROOT
9e7e30d2 113
7cc0fac6
JB
114install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysprefix}/bin}
115mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
116ln -s %{_bindir}/sdl-config $RPM_BUILD_ROOT%{_sysprefix}/bin/%{target}-sdl-config
117
118%if 0%{!?debug:1}
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
121%endif
122
123rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,man}
9e7e30d2 124
125%clean
126rm -rf $RPM_BUILD_ROOT
127
128%files
129%defattr(644,root,root,755)
7cc0fac6
JB
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
134%{_libdir}/libSDL.la
135%{_libdir}/libSDLmain.a
136%{_includedir}/SDL
137%{_pkgconfigdir}/sdl.pc
138
139%files static
140%defattr(644,root,root,755)
141%{_libdir}/libSDL.a
8b1b6f3a 142
143%files dll
144%defattr(644,root,root,755)
7cc0fac6 145%{_dlldir}/SDL.dll
This page took 0.089793 seconds and 4 git commands to generate.