]>
Commit | Line | Data |
---|---|---|
de396a63 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
de396a63 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = fontconfig |
001f0f1a | 7 | version = 2.11.93 |
1366fc04 | 8 | release = 2 |
de396a63 | 9 | |
802ea3af MT |
10 | groups = System/Graphics |
11 | url = http://fontconfig.org/ | |
12 | license = MIT | |
13 | summary = Font configuration and customization library. | |
de396a63 | 14 | |
802ea3af | 15 | description |
de396a63 MT |
16 | Fontconfig is designed to locate fonts within the \ |
17 | system and select them according to requirements specified by \ | |
18 | applications. | |
802ea3af MT |
19 | end |
20 | ||
001f0f1a | 21 | source_dl = http://www.freedesktop.org/software/fontconfig/release/ |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
25 | freetype-devel | |
26 | libxml2-devel | |
27 | zlib-devel | |
28 | end | |
29 | ||
30 | configure_options += \ | |
802ea3af MT |
31 | --enable-libxml2 \ |
32 | --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts | |
001f0f1a MT |
33 | |
34 | test | |
1366fc04 | 35 | export LD_LIBRARY_PATH=$(pwd)/src/.libs |
001f0f1a MT |
36 | make check |
37 | end | |
38 | ||
39 | install_cmds | |
40 | for i in $(find %{BUILDROOT}%{sysconfdir}/fonts/conf.d -type l); do | |
41 | ln -svf --relative %{BUILDROOT}$(readlink -m ${i}) ${i} | |
42 | done | |
43 | end | |
802ea3af MT |
44 | end |
45 | ||
46 | packages | |
47 | package %{name} | |
001f0f1a MT |
48 | postinst |
49 | umask 0022 | |
50 | ||
51 | mkdir -p %{localstatedir}/cache/fontconfig | |
52 | ||
53 | if [ -x "%{bindir}/fc-cache" ]; then | |
54 | HOME=/root %{bindir}/fc-cache -f | |
55 | fi | |
56 | end | |
802ea3af | 57 | end |
1f9bc2f0 | 58 | |
802ea3af MT |
59 | package %{name}-devel |
60 | template DEVEL | |
61 | end | |
1f9bc2f0 MT |
62 | |
63 | package %{name}-debuginfo | |
64 | template DEBUGINFO | |
65 | end | |
802ea3af | 66 | end |