]>
Commit | Line | Data |
---|---|---|
3294533f | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without bytecode # without TT bytecode interpreter | |
4 | # (patents pending in USA, Japan etc., but now it includes | |
5 | # also patent-free hinting workaround) | |
6 | %bcond_without lcd # disable filters reducing color fringes when | |
7 | # subpixel rendering for LCD (only used with a new 2.3.0 API; | |
8 | # patents pending) | |
9 | %define _realname freetype | |
10 | Summary: TrueType font rasterizer - Mingw32 cross version | |
11 | Summary(es.UTF-8):Biblioteca de render 3D de fuentes TrueType | |
12 | Summary(ko.UTF-8):자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진 | |
13 | Summary(pl.UTF-8):Rasteryzer fontów TrueType - wersja skrośna dla Mingw32 | |
14 | Summary(pt_BR.UTF-8):Biblioteca de renderização de fontes TrueType | |
15 | Summary(ru.UTF-8):Растеризатор шрифтов TrueType | |
16 | Summary(uk.UTF-8):Растеризатор шрифтів TrueType | |
17 | Name: crossmingw32-%{_realname} | |
18 | Version: 2.3.1 | |
19 | Release: 1 | |
20 | License: GPL or FTL | |
21 | Group: Libraries | |
22 | Source0: http://savannah.nongnu.org/download/freetype/%{_realname}-%{version}.tar.bz2 | |
23 | # Source0-md5: 11e1186ca5520c5a284fa0a03f652035 | |
24 | URL: http://www.freetype.org/ | |
25 | BuildRequires: automake | |
26 | BuildRequires: crossmingw32-zlib | |
27 | BuildRequires: python | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %define specflags_ia32 -fomit-frame-pointer | |
31 | # see <freetype/internal/ftserv.h>, the real horror | |
32 | %define specflags -fno-strict-aliasing | |
33 | ||
34 | %define no_install_post_strip 1 | |
35 | ||
36 | %define target i386-mingw32 | |
37 | %define target_platform i386-pc-mingw32 | |
38 | %define arch %{_prefix}/%{target} | |
39 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
40 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
41 | ||
42 | %define _sysprefix /usr | |
43 | %define _prefix %{_sysprefix}/%{target} | |
44 | %define _aclocaldir %{_datadir}/aclocal | |
45 | %define _pkgconfigdir %{_libdir}/pkgconfig | |
46 | %define __cc %{target}-gcc | |
47 | %define __cxx %{target}-g++ | |
48 | ||
49 | %description | |
50 | The FreeType engine is a free and portable TrueType font rendering | |
51 | engine. It has been developed to provide TrueType support to a great | |
52 | variety of platforms and environments. | |
53 | ||
54 | Note that FreeType is a *library*. It is not a font server for your | |
55 | favorite platform, even though it was designed to be used in many of | |
56 | them. Note also that it is *not* a complete text-rendering library. | |
57 | Its purpose is simply to open and manage font files, as well as load, | |
58 | hint and render individual glyphs efficiently. You can also see it as | |
59 | a "TrueType driver" for a higher-level library, though rendering text | |
60 | with it is extremely easy, as demo-ed by the test programs. | |
61 | ||
62 | %description -l es.UTF-8 | |
63 | FreeType es una máquina libre y portátil para en render de fuentes | |
64 | TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran | |
65 | variedad de plataformas y ambientes. Observa que FreeType es una | |
66 | biblioteca y no una aplicación, a pesar de que algunos utilitarios se | |
67 | incluyan en este paquete. | |
68 | ||
69 | %description -l pl.UTF-8 | |
70 | FreeType jest biblioteką służącą do rasteryzacji fontów | |
71 | TrueType. Jest to jedynie biblioteka, a nie serwer fontów, chociaż | |
72 | została ona zaprojektowana do używania także w takich serwerach. | |
73 | Nie jest to też kompletna biblioteka do rasteryzacji tekstu. Jej | |
74 | celem jest tylko odczytywanie i zarządzanie plikami z fontami oraz | |
75 | wczytywanie i wykonywanie hintingu i rasteryzacji poszczególnych | |
76 | glifów. Może być także uważana za "sterownik TrueType" dla | |
77 | bibliotek wyższego poziomu, jednak użycie samej biblioteki FreeType | |
78 | do rasteryzacji jest bardzo proste, co można zobaczyć w programach | |
79 | demonstracyjnych. | |
80 | ||
81 | %description -l pt_BR.UTF-8 | |
82 | FreeType é uma máquina livre e portável para renderização de | |
83 | fontes TrueType. Ela foi desenvolvida para fornecer suporte TrueType a | |
84 | uma grande variedade de plataformas e ambientes. Note que FreeType é | |
85 | uma biblioteca e não uma aplicação, apesar que alguns utilitários | |
86 | são incluídos neste pacote. | |
87 | ||
88 | %description -l ru.UTF-8 | |
89 | Библиотека FreeType - это свободная | |
90 | переносимая библиотека для | |
91 | рендеринга (растеризации) шрифтов | |
92 | TrueType, доступная в исходных текстах на | |
93 | ANSI C и Pascal. Она была разработана для | |
94 | поддержки TT на разнообразных | |
95 | платформах. | |
96 | ||
97 | %description -l uk.UTF-8 | |
98 | Бібліотека FreeType - це вільна переносима | |
99 | бібліотека для рендерингу | |
100 | (растеризації) шрифтів TrueType, що | |
101 | розповсюджується у вихідних текстах | |
102 | на C та Pascal. Вона була розроблена для | |
103 | підтримки TT на різних платформах. | |
104 | ||
105 | %prep | |
106 | %setup -q -n %{_realname}-%{version} | |
107 | ||
108 | %build | |
b70013af | 109 | export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig |
3294533f | 110 | CFLAGS="%{rpmcflags} \ |
111 | %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \ | |
112 | %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \ | |
113 | %configure \ | |
114 | AR="%{target}-ar" \ | |
115 | RANLIB="%{target}-ranlib" \ | |
116 | --target=%{target} \ | |
117 | --host=%{target_platform} | |
118 | ||
119 | %{__make} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | install -d $RPM_BUILD_ROOT%{_bindir} | |
124 | ||
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %files | |
132 | %defattr(644,root,root,755) | |
133 | %doc {CHANGES FTL.TXT LICENSE.TXT PATENTS TODO formats.txt raster.txt} | |
134 | %{_libdir}/lib*.a | |
135 | %{_libdir}/lib*.la | |
136 | %{_includedir}/freetype2 | |
137 | %{_includedir}/*.h | |
138 | %{_aclocaldir}/*.m4 | |
139 | %{_pkgconfigdir}/*.pc |