]> git.pld-linux.org Git - packages/crossmingw32-SDL.git/blame - crossmingw32-SDL.spec
- fixed build in current environment, release 3
[packages/crossmingw32-SDL.git] / crossmingw32-SDL.spec
CommitLineData
9e7e30d2 1%define realname SDL
f29e2a06
JB
2Summary: SDL (Simple DirectMedia Layer) - Game/Multimedia Library - MinGW32 cross version
3Summary(pl.UTF-8): SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów - wersja skrośna dla MinGW32
9e7e30d2 4Name: crossmingw32-%{realname}
acf5bdea 5Version: 1.2.15
d79fa10c 6Release: 3
e608a184 7License: LGPL v2.1+
cfa7fe44 8Group: Libraries
b53f7a3a 9Source0: http://www.libsdl.org/release/%{realname}-%{version}.tar.gz
acf5bdea
JB
10# Source0-md5: 9d96df8417572a2afb781a7c4c811a85
11Patch0: %{realname}-acfix.patch
9e7e30d2 12URL: http://www.libsdl.org/
acf5bdea 13BuildRequires: autoconf >= 2.59-9
9e7e30d2 14BuildRequires: automake
15BuildRequires: crossmingw32-gcc
d79fa10c 16BuildRequires: crossmingw32-gcc-c++
e34dc44c 17BuildRequires: crossmingw32-runtime
ee573ed1 18BuildRequires: crossmingw32-w32api
8b1b6f3a 19BuildRequires: crossmingw32-w32api-dx
6b62e051 20BuildRequires: libtool >= 2:2.0
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++
9e60ba3f 39%define __pkgconfig_provides %{nil}
9e7e30d2 40
6b62e051
JB
41%ifnarch %{ix86}
42# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
24a16a4a
JB
43%define optflags -O2
44%endif
d79fa10c 45# -z options are invalid for mingw linker, most of -f options are Linux-specific
6b62e051 46%define filterout_ld -Wl,-z,.*
d79fa10c
JB
47%define filterout_c -f[-a-z0-9=]*
48%define filterout_cxx -f[-a-z0-9=]*
24a16a4a 49
9e7e30d2 50%description
51SDL (Simple DirectMedia Layer) is a library that allows you portable,
52low level access to a video framebuffer, audio output, mouse, and
53keyboard. It can support both windowed and DGA modes of XFree86, and
54it is designed to be portable - applications linked with SDL can also
55be built on Win32 and BeOS.
56
7cc0fac6
JB
57This package contains the cross version for Win32.
58
1b084377
JR
59%description -l pl.UTF-8
60SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
61przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
62myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
63jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
64konsolidowane z SDL można również budować w systemach Win32 i BeOS.
9e7e30d2 65
7cc0fac6
JB
66Ten pakiet zawiera wersję skrośną dla Win32.
67
1b084377
JR
68%description -l pt_BR.UTF-8
69Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
70baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
9e7e30d2 71
1b084377 72Essa biblioteca é usada por alguns jogos.
9e7e30d2 73
7cc0fac6 74%package static
f29e2a06
JB
75Summary: Static SDL library (cross MinGW32 version)
76Summary(pl.UTF-8): Statyczna biblioteka SDL (wersja skrośna MinGW32)
7cc0fac6
JB
77Group: Development/Libraries
78Requires: %{name} = %{version}-%{release}
79
80%description static
f29e2a06 81Static SDL library (cross MinGW32 version).
7cc0fac6
JB
82
83%description static -l pl.UTF-8
f29e2a06 84Statyczna biblioteka SDL (wersja skrośna MinGW32).
7cc0fac6 85
8b1b6f3a 86%package dll
87Summary: SDL - DLL library for Windows
d736829d 88Summary(pl.UTF-8): SDL - biblioteka DLL dla Windows
8b1b6f3a 89Group: Applications/Emulators
90
91%description dll
92SDL - DLL library for Windows.
93
1b084377 94%description dll -l pl.UTF-8
8b1b6f3a 95SDL - biblioteka DLL dla Windows.
9e7e30d2 96
97%prep
b53f7a3a 98%setup -q -n %{realname}-%{version}
9e7e30d2 99%patch0 -p1
9e7e30d2 100
00c1e1dc
JR
101: > acinclude.m4
102echo 'AC_DEFUN([AM_PATH_ESD],[$3])' >> acinclude.m4
103
9e7e30d2 104%build
7cc0fac6
JB
105%{__libtoolize}
106%{__aclocal}
107%{__autoconf}
9e7e30d2 108%configure \
109 --target=%{target} \
110 --host=%{target} \
9e7e30d2 111 --enable-nasm \
8b1b6f3a 112 --disable-stdio-redirect
9e7e30d2 113
114%{__make}
115
9e7e30d2 116%install
117rm -rf $RPM_BUILD_ROOT
9e7e30d2 118
7cc0fac6
JB
119%{__make} install \
120 DESTDIR=$RPM_BUILD_ROOT
9e7e30d2 121
7cc0fac6 122install -d $RPM_BUILD_ROOT{%{_dlldir},%{_sysprefix}/bin}
d79fa10c 123%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
7cc0fac6
JB
124ln -s %{_bindir}/sdl-config $RPM_BUILD_ROOT%{_sysprefix}/bin/%{target}-sdl-config
125
126%if 0%{!?debug:1}
127%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
128%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
129%endif
130
d79fa10c 131%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,man}
9e7e30d2 132
133%clean
134rm -rf $RPM_BUILD_ROOT
135
136%files
137%defattr(644,root,root,755)
7cc0fac6
JB
138%doc BUGS CREDITS README README-SDL.txt TODO WhatsNew
139%attr(755,root,root) %{_sysprefix}/bin/%{target}-sdl-config
140%attr(755,root,root) %{_bindir}/sdl-config
141%{_libdir}/libSDL.dll.a
142%{_libdir}/libSDL.la
143%{_libdir}/libSDLmain.a
d79fa10c 144%{_libdir}/libSDLmain.la
7cc0fac6
JB
145%{_includedir}/SDL
146%{_pkgconfigdir}/sdl.pc
147
148%files static
149%defattr(644,root,root,755)
150%{_libdir}/libSDL.a
8b1b6f3a 151
152%files dll
153%defattr(644,root,root,755)
4e42d656 154%{_dlldir}/libSDL-1-2-0.dll
This page took 0.144432 seconds and 4 git commands to generate.