]> git.pld-linux.org Git - packages/crossmingw32-SDL.git/blame - crossmingw32-SDL.spec
- up to 1.2.14
[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}
4e42d656 5Version: 1.2.14
5ea84172 6Release: 1
e608a184 7License: LGPL v2.1+
cfa7fe44 8Group: Libraries
b53f7a3a 9Source0: http://www.libsdl.org/release/%{realname}-%{version}.tar.gz
4e42d656 10# Source0-md5: e52086d1b508fa0b76c52ee30b55bec4
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}
36f6a32f 34%define _libdir %{_prefix}/lib
86d3f3b6 35%define _pkgconfigdir %{_prefix}/lib/pkgconfig
7cc0fac6
JB
36%define _dlldir /usr/share/wine/windows/system
37%define __cc %{target}-gcc
38%define __cxx %{target}-g++
9e7e30d2 39
24a16a4a
JB
40%ifarch alpha sparc sparc64 sparcv9
41# alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
42%define optflags -O2
43%endif
44
9e7e30d2 45%description
46SDL (Simple DirectMedia Layer) is a library that allows you portable,
47low level access to a video framebuffer, audio output, mouse, and
48keyboard. It can support both windowed and DGA modes of XFree86, and
49it is designed to be portable - applications linked with SDL can also
50be built on Win32 and BeOS.
51
7cc0fac6
JB
52This package contains the cross version for Win32.
53
1b084377
JR
54%description -l pl.UTF-8
55SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
56przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
57myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
58jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
59konsolidowane z SDL można również budować w systemach Win32 i BeOS.
9e7e30d2 60
7cc0fac6
JB
61Ten pakiet zawiera wersję skrośną dla Win32.
62
1b084377
JR
63%description -l pt_BR.UTF-8
64Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
65baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
9e7e30d2 66
1b084377 67Essa biblioteca é usada por alguns jogos.
9e7e30d2 68
7cc0fac6
JB
69%package static
70Summary: Static SDL library (cross mingw32 version)
71Summary(pl.UTF-8): Statyczna biblioteka SDL (wersja skrośna mingw32)
72Group: Development/Libraries
73Requires: %{name} = %{version}-%{release}
74
75%description static
76Static SDL library (cross mingw32 version).
77
78%description static -l pl.UTF-8
79Statyczna biblioteka SDL (wersja skrośna mingw32).
80
8b1b6f3a 81%package dll
82Summary: SDL - DLL library for Windows
d736829d 83Summary(pl.UTF-8): SDL - biblioteka DLL dla Windows
8b1b6f3a 84Group: Applications/Emulators
85
86%description dll
87SDL - DLL library for Windows.
88
1b084377 89%description dll -l pl.UTF-8
8b1b6f3a 90SDL - biblioteka DLL dla Windows.
9e7e30d2 91
92%prep
b53f7a3a 93%setup -q -n %{realname}-%{version}
9e7e30d2 94%patch0 -p1
cfa7fe44 95%patch1 -p1
9e7e30d2 96
97%build
7cc0fac6
JB
98%{__libtoolize}
99%{__aclocal}
100%{__autoconf}
9e7e30d2 101%configure \
102 --target=%{target} \
103 --host=%{target} \
9e7e30d2 104 --enable-nasm \
8b1b6f3a 105 --disable-stdio-redirect
9e7e30d2 106
107%{__make}
108
9e7e30d2 109%install
110rm -rf $RPM_BUILD_ROOT
9e7e30d2 111
7cc0fac6
JB
112%{__make} install \
113 DESTDIR=$RPM_BUILD_ROOT
9e7e30d2 114
7cc0fac6
JB
115install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysprefix}/bin}
116mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
117ln -s %{_bindir}/sdl-config $RPM_BUILD_ROOT%{_sysprefix}/bin/%{target}-sdl-config
118
119%if 0%{!?debug:1}
120%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
121%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
122%endif
123
124rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,man}
9e7e30d2 125
126%clean
127rm -rf $RPM_BUILD_ROOT
128
129%files
130%defattr(644,root,root,755)
7cc0fac6
JB
131%doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
132%attr(755,root,root) %{_sysprefix}/bin/%{target}-sdl-config
133%attr(755,root,root) %{_bindir}/sdl-config
134%{_libdir}/libSDL.dll.a
135%{_libdir}/libSDL.la
136%{_libdir}/libSDLmain.a
137%{_includedir}/SDL
138%{_pkgconfigdir}/sdl.pc
139
140%files static
141%defattr(644,root,root,755)
142%{_libdir}/libSDL.a
8b1b6f3a 143
144%files dll
145%defattr(644,root,root,755)
4e42d656 146%{_dlldir}/libSDL-1-2-0.dll
This page took 0.120959 seconds and 4 git commands to generate.