]> git.pld-linux.org Git - packages/crossmingw32-SDL_image.git/blame - crossmingw32-SDL_image.spec
do not require pkgconfig deps either
[packages/crossmingw32-SDL_image.git] / crossmingw32-SDL_image.spec
CommitLineData
2b9321d8 1%define realname SDL_image
11374edc
JB
2Summary: Simple DirectMedia Layer - Sample Image Loading Library - MinGW32 cross version
3Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków - wersja skrośna dla MinGW32
2b9321d8 4Name: crossmingw32-%{realname}
b4114a6f 5Version: 1.2.12
4063b14e 6Release: 3
2c5f2605 7License: Zlib-like
2b9321d8 8Group: Libraries
9Source0: http://www.libsdl.org/projects/SDL_image/release/%{realname}-%{version}.tar.gz
b4114a6f 10# Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb
2b9321d8 11URL: http://www.libsdl.org/projects/SDL_image/
12BuildRequires: autoconf
13BuildRequires: automake
d18c8144 14BuildRequires: crossmingw32-SDL >= 1.2.10
2b9321d8 15BuildRequires: crossmingw32-gcc
f34a67a9 16BuildRequires: crossmingw32-libjpeg >= 7
b4114a6f 17BuildRequires: crossmingw32-libpng >= 1.5.0
2c5f2605 18BuildRequires: crossmingw32-libtiff >= 4
b4114a6f 19BuildRequires: crossmingw32-libwebp >= 0.1.3
2b9321d8 20BuildRequires: crossmingw32-w32api
f34a67a9
JB
21BuildRequires: libtool >= 2:2.0
22BuildRequires: pkgconfig >= 1:0.9.0
d18c8144 23Requires: crossmingw32-SDL >= 1.2.10
37e61a0a 24Requires: crossmingw32-runtime
2b9321d8 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%define no_install_post_strip 1
28
d18c8144
JB
29%define target i386-mingw32
30%define target_platform i386-pc-mingw32
2b9321d8 31
d18c8144
JB
32%define _sysprefix /usr
33%define _prefix %{_sysprefix}/%{target}
c8701c7c 34%define _libdir %{_prefix}/lib
f34a67a9 35%define _pkgconfigdir %{_prefix}/lib/pkgconfig
d18c8144
JB
36%define _dlldir /usr/share/wine/windows/system
37%define __cc %{target}-gcc
38%define __cxx %{target}-g++
d9427a69 39%define __pkgconfig_provides %{nil}
4063b14e 40%define __pkgconfig_requires %{nil}
2b9321d8 41
f34a67a9
JB
42%ifnarch %{ix86}
43# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
dcf46c3e 44%define optflags -O2
45%endif
f34a67a9
JB
46# -z options are invalid for mingw linker
47%define filterout_ld -Wl,-z,.*
dcf46c3e 48
2b9321d8 49%description
50This is a simple library to load images of various formats as SDL
b4114a6f
JB
51surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
52PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
2b9321d8 53
d18c8144
JB
54This package contains the cross version for Win32.
55
359a03f1
JR
56%description -l pl.UTF-8
57Jest to prosta biblioteka służąca do ładowania różnego formatu
58obrazków jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
b4114a6f
JB
59następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
60TGA, TIFF, WebP, XCF oraz XPM.
2b9321d8 61
d18c8144
JB
62Ten pakiet zawiera wersję skrośną dla Win32.
63
64%package static
11374edc
JB
65Summary: Static SDL_image library (cross MinGW32 version)
66Summary(pl.UTF-8): Statyczna biblioteka SDL_image (wersja skrośna MinGW32)
d18c8144
JB
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
69
70%description static
11374edc 71Static SDL_image library (cross MinGW32 version).
d18c8144
JB
72
73%description static -l pl.UTF-8
11374edc 74Statyczna biblioteka SDL_image (wersja skrośna MinGW32).
d18c8144 75
2b9321d8 76%package dll
d18c8144
JB
77Summary: SDL_image - DLL library for Windows
78Summary(pl.UTF-8): SDL_image - biblioteka DLL dla Windows
2b9321d8 79Group: Applications/Emulators
d18c8144
JB
80Requires: crossmingw32-SDL-dll >= 1.2.10
81Requires: wine
2b9321d8 82
83%description dll
d18c8144 84SDL_image - DLL library for Windows.
2b9321d8 85
359a03f1 86%description dll -l pl.UTF-8
d18c8144 87SDL_image - biblioteka DLL dla Windows.
2b9321d8 88
89%prep
90%setup -q -n %{realname}-%{version}
2b9321d8 91
92%build
f34a67a9 93export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
2b9321d8 94%{__libtoolize}
95%{__aclocal}
96%{__autoconf}
97%{__automake}
98# no sdl test, because it requires configured wine to work
99%configure \
d18c8144 100 --host=%{target} \
076dc26b 101 --target=%{target} \
d18c8144 102 --with-sdl-prefix=%{_prefix} \
f34a67a9 103 --disable-sdltest
2b9321d8 104
d18c8144
JB
105# LIBS hack for libtool not detecting libraries without .la files
106%{__make} \
107 LIBS="$(%{_bindir}/sdl-config --libs | sed -e 's/\(-lmingw32\|-lSDLmain\)/-Wl,\1/g')"
2b9321d8 108
d18c8144
JB
109%install
110rm -rf $RPM_BUILD_ROOT
2b9321d8 111
d18c8144
JB
112%{__make} install \
113 DESTDIR=$RPM_BUILD_ROOT
114
115install -d $RPM_BUILD_ROOT%{_dlldir}
116mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
2b9321d8 117
118%if 0%{!?debug:1}
d18c8144
JB
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
2b9321d8 121%endif
122
2b9321d8 123%clean
124rm -rf $RPM_BUILD_ROOT
125
126%files
127%defattr(644,root,root,755)
d18c8144
JB
128%doc CHANGES README
129%{_libdir}/libSDL_image.dll.a
130%{_libdir}/libSDL_image.la
131%{_includedir}/SDL/SDL_image.h
f34a67a9 132%{_pkgconfigdir}/SDL_image.pc
d18c8144
JB
133
134%files static
135%defattr(644,root,root,755)
136%{_libdir}/libSDL_image.a
2b9321d8 137
138%files dll
139%defattr(644,root,root,755)
d18c8144 140%{_dlldir}/libSDL_image-*.dll
This page took 1.555653 seconds and 4 git commands to generate.