]>
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 |
a7ec7499 | 7 | version = 2.13.1 |
f3961995 | 8 | release = 2 |
de396a63 | 9 | |
802ea3af | 10 | groups = System/Graphics |
a7ec7499 | 11 | url = https://fontconfig.org/ |
802ea3af | 12 | license = MIT |
a7ec7499 | 13 | summary = Font configuration and customization library |
de396a63 | 14 | |
802ea3af | 15 | description |
a7ec7499 MT |
16 | Fontconfig is designed to locate fonts within the |
17 | system and select them according to requirements specified by | |
de396a63 | 18 | applications. |
802ea3af MT |
19 | end |
20 | ||
a7ec7499 | 21 | source_dl = https://www.freedesktop.org/software/fontconfig/release/ |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
a7ec7499 MT |
25 | gperf |
26 | pkgconfig(freetype2) >= 21.0.15 | |
f3961995 | 27 | libuuid-devel |
802ea3af MT |
28 | libxml2-devel |
29 | zlib-devel | |
30 | end | |
31 | ||
32 | configure_options += \ | |
802ea3af MT |
33 | --enable-libxml2 \ |
34 | --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts | |
001f0f1a MT |
35 | |
36 | test | |
a7ec7499 | 37 | LD_LIBRARY_PATH=%{DIR_APP}/src/.libs make check |
001f0f1a MT |
38 | end |
39 | ||
40 | install_cmds | |
41 | for i in $(find %{BUILDROOT}%{sysconfdir}/fonts/conf.d -type l); do | |
42 | ln -svf --relative %{BUILDROOT}$(readlink -m ${i}) ${i} | |
43 | done | |
44 | end | |
802ea3af MT |
45 | end |
46 | ||
47 | packages | |
48 | package %{name} | |
001f0f1a MT |
49 | postinst |
50 | umask 0022 | |
51 | ||
52 | mkdir -p %{localstatedir}/cache/fontconfig | |
53 | ||
54 | if [ -x "%{bindir}/fc-cache" ]; then | |
55 | HOME=/root %{bindir}/fc-cache -f | |
56 | fi | |
57 | end | |
802ea3af | 58 | end |
1f9bc2f0 | 59 | |
802ea3af MT |
60 | package %{name}-devel |
61 | template DEVEL | |
0b26a9c6 SS |
62 | |
63 | requires | |
64 | libxml2-devel | |
65 | end | |
802ea3af | 66 | end |
1f9bc2f0 MT |
67 | |
68 | package %{name}-debuginfo | |
69 | template DEBUGINFO | |
70 | end | |
802ea3af | 71 | end |