#
# Conditional build:
-%bcond_without bytecode # without TT bytecode interpreter
-# (patents pending in USA, Japan etc., but now it includes
-# also patent-free hinting workaround)
-%bcond_without lcd # disable filters reducing color fringes when
-# subpixel rendering for LCD (only used with a new 2.3.0 API;
-# patents pending)
+%bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA)
#
%define realname freetype
-Summary: TrueType font rasterizer - Mingw32 cross version
-Summary(pl.UTF-8):Rasteryzer fontów TrueType - wersja skrośna dla Mingw32
+Summary: TrueType font rasterizer - MinGW32 cross version
+Summary(pl.UTF-8): Rasteryzer fontów TrueType - wersja skrośna dla MinGW32
Name: crossmingw32-%{realname}
-Version: 2.3.7
+Version: 2.4.9
Release: 1
-License: GPL or FTL
+License: GPL v2 or FTL
Group: Development/Libraries
-Source0: http://savannah.nongnu.org/download/freetype/%{realname}-%{version}.tar.bz2
-# Source0-md5: 83306194817ebdea554133b4232a34aa
+Source0: http://downloads.sourceforge.net/freetype/%{realname}-%{version}.tar.bz2
+# Source0-md5: 77a893dae81fd5b896632715ca041179
URL: http://www.freetype.org/
BuildRequires: crossmingw32-gcc
BuildRequires: crossmingw32-zlib >= 1.2.3-2
%define __cc %{target}-gcc
%define __cxx %{target}-g++
+%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
The FreeType engine is a free and portable TrueType font rendering
engine. It has been developed to provide TrueType support to a great
Ten pakiet zawiera wersję skrośną dla Win32.
%package static
-Summary: Static freetype library (cross mingw32 version)
-Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna mingw32)
+Summary: Static freetype library (cross MinGW32 version)
+Summary(pl.UTF-8): Statyczna biblioteka freetype (wersja skrośna MinGW32)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description static
-Static freetype library (cross mingw32 version).
+Static freetype library (cross MinGW32 version).
%description static -l pl.UTF-8
-Statyczna biblioteka freetype (wersja skrośna mingw32).
+Statyczna biblioteka freetype (wersja skrośna MinGW32).
%package dll
Summary: DLL freetype library for Windows
%build
CFLAGS="%{rpmcflags} \
-%{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \
%{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
%configure \
--target=%{target} \
%files
%defattr(644,root,root,755)
-%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt}
+%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt}
%{_libdir}/libfreetype.dll.a
%{_libdir}/libfreetype.la
%{_includedir}/freetype2