]> git.ipfire.org Git - ipfire-3.x.git/blob - fontconfig/fontconfig.nm
ce9dc74896921d11971093cb8d2b86b696ee2505
[ipfire-3.x.git] / fontconfig / fontconfig.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = fontconfig
7 version = 2.13.1
8 release = 1.1
9
10 groups = System/Graphics
11 url = https://fontconfig.org/
12 license = MIT
13 summary = Font configuration and customization library
14
15 description
16 Fontconfig is designed to locate fonts within the
17 system and select them according to requirements specified by
18 applications.
19 end
20
21 source_dl = https://www.freedesktop.org/software/fontconfig/release/
22
23 build
24 requires
25 gperf
26 pkgconfig(freetype2) >= 21.0.15
27 libxml2-devel
28 zlib-devel
29 end
30
31 configure_options += \
32 --enable-libxml2 \
33 --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
34
35 test
36 LD_LIBRARY_PATH=%{DIR_APP}/src/.libs 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
44 end
45
46 packages
47 package %{name}
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
57 end
58
59 package %{name}-devel
60 template DEVEL
61
62 requires
63 libxml2-devel
64 end
65 end
66
67 package %{name}-debuginfo
68 template DEBUGINFO
69 end
70 end