]> git.pld-linux.org Git - packages/crossmingw32-SDL_image.git/blobdiff - crossmingw32-SDL_image.spec
do not require pkgconfig deps either
[packages/crossmingw32-SDL_image.git] / crossmingw32-SDL_image.spec
index cffcc1e102f33b58ca5cf5643a46e64538d089bc..f6475c89d5573be34d9449e6bc34504aebcdfd40 100644 (file)
@@ -1,23 +1,25 @@
 %define                realname        SDL_image
-Summary:       Simple DirectMedia Layer - Sample Image Loading Library - Mingw32 cross version
-Summary(pl.UTF-8):     Przykładowa biblioteka do ładowania obrazków - wersja skrośna dla Mingw32
+Summary:       Simple DirectMedia Layer - Sample Image Loading Library - MinGW32 cross version
+Summary(pl.UTF-8):     Przykładowa biblioteka do ładowania obrazków - wersja skrośna dla MinGW32
 Name:          crossmingw32-%{realname}
-Version:       1.2.6
-Release:       1
-License:       LGPL v2.1+
+Version:       1.2.12
+Release:       3
+License:       Zlib-like
 Group:         Libraries
 Source0:       http://www.libsdl.org/projects/SDL_image/release/%{realname}-%{version}.tar.gz
-# Source0-md5: b866dc4f647517bdaf57f6ffdefd013e
+# Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb
 URL:           http://www.libsdl.org/projects/SDL_image/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: crossmingw32-SDL >= 1.2.10
 BuildRequires: crossmingw32-gcc
-BuildRequires: crossmingw32-libjpeg >= 6b
-BuildRequires: crossmingw32-libpng >= 1.2.0
+BuildRequires: crossmingw32-libjpeg >= 7
+BuildRequires: crossmingw32-libpng >= 1.5.0
+BuildRequires: crossmingw32-libtiff >= 4
+BuildRequires: crossmingw32-libwebp >= 0.1.3
 BuildRequires: crossmingw32-w32api
-BuildRequires: crossmingw32-zlib
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2.0
+BuildRequires: pkgconfig >= 1:0.9.0
 Requires:      crossmingw32-SDL >= 1.2.10
 Requires:      crossmingw32-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,40 +31,47 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysprefix              /usr
 %define                _prefix                 %{_sysprefix}/%{target}
+%define                _libdir                 %{_prefix}/lib
+%define                _pkgconfigdir           %{_prefix}/lib/pkgconfig
 %define                _dlldir                 /usr/share/wine/windows/system
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
+%define                __pkgconfig_provides    %{nil}
+%define                __pkgconfig_requires    %{nil}
 
-%ifarch alpha sparc sparc64 sparcv9
-# alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
+%ifnarch %{ix86}
+# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
 %define                optflags        -O2
 %endif
+# -z options are invalid for mingw linker
+%define                filterout_ld    -Wl,-z,.*
 
 %description
 This is a simple library to load images of various formats as SDL
-surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
-and PNG formats.
+surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
+PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
 
 This package contains the cross version for Win32.
 
 %description -l pl.UTF-8
 Jest to prosta biblioteka służąca do ładowania różnego formatu
 obrazków jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
-następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
+następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
+TGA, TIFF, WebP, XCF oraz XPM.
 
 Ten pakiet zawiera wersję skrośną dla Win32.
 
 %package static
-Summary:       Static SDL_image library (cross mingw32 version)
-Summary(pl.UTF-8):     Statyczna biblioteka SDL_image (wersja skrośna mingw32)
+Summary:       Static SDL_image library (cross MinGW32 version)
+Summary(pl.UTF-8):     Statyczna biblioteka SDL_image (wersja skrośna MinGW32)
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description static
-Static SDL_image library (cross mingw32 version).
+Static SDL_image library (cross MinGW32 version).
 
 %description static -l pl.UTF-8
-Statyczna biblioteka SDL_image (wersja skrośna mingw32).
+Statyczna biblioteka SDL_image (wersja skrośna MinGW32).
 
 %package dll
 Summary:       SDL_image - DLL library for Windows
@@ -80,26 +89,18 @@ SDL_image - biblioteka DLL dla Windows.
 %prep
 %setup -q -n %{realname}-%{version}
 
-rm -f acinclude.m4
-
 %build
+export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 # no sdl test, because it requires configured wine to work
 %configure \
-       png_lib=libpng12-0.dll \
        --host=%{target} \
        --target=%{target} \
        --with-sdl-prefix=%{_prefix} \
-       --disable-sdltest \
-       --enable-bmp \
-       --enable-gif \
-       --enable-jpg \
-       --enable-pcx \
-       --enable-png \
-       --enable-tga
+       --disable-sdltest
 
 # LIBS hack for libtool not detecting libraries without .la files
 %{__make} \
@@ -128,6 +129,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libSDL_image.dll.a
 %{_libdir}/libSDL_image.la
 %{_includedir}/SDL/SDL_image.h
+%{_pkgconfigdir}/SDL_image.pc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.134108 seconds and 4 git commands to generate.