]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - xorg-x11-font-utils/xorg-x11-font-utils.nm
kernel: update to 4.12.10
[people/arne_f/ipfire-3.x.git] / xorg-x11-font-utils / xorg-x11-font-utils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = xorg-x11-font-utils
7 version = 7.4
8 release = 3
9
10 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11 groups = X/Fonts
12 url = http://www.x.org/
13 license = MIT
14 summary = X.Org X11 font utilities.
15
16 description
17 X.Org X11 font utilities required for font installation, conversion,
18 and generation.
19 end
20
21 source_dl = http://ftp.x.org/pub/individual/app/
22
23 sources =\
24 bdftopcf-1.0.1.tar.bz2 \
25 fonttosfnt-1.0.3.tar.bz2 \
26 mkfontdir-1.0.5.tar.bz2 \
27 mkfontscale-1.0.7.tar.bz2 \
28 font-util-1.1.0.tar.bz2
29
30 build
31 requires
32 autoconf
33 freetype-devel
34 libX11-devel
35 libXfont-devel
36 libfontenc-devel
37 pkg-config
38 xorg-x11-proto-devel
39 zlib-devel
40 end
41
42 configure_options += \
43 --with-mapdir=/usr/share/X11/fonts/util
44
45 build
46 for object in %{sources}; do
47 dir=%{DIR_SRC}/${object%*.tar.bz2}
48
49 if [ -d "${dir}" ]; then
50 cd ${dir}
51 autoconf
52 ./configure %{configure_options}
53
54 make %{PARALLELISMFLAGS}
55 fi
56 done
57 end
58
59 install
60 for object in %{sources}; do
61 dir=%{DIR_SRC}/${object%*.tar.bz2}
62
63 if [ -d "${dir}" ]; then
64 cd ${dir}
65
66 make install DESTDIR=%{BUILDROOT}
67 fi
68 done
69
70 # Install xorg-x11-fonts-update-dirs
71 install -m 0744 %{DIR_SOURCE}/xorg-x11-fonts-update-dirs %{BUILDROOT}/usr/bin/
72 sed -i "s:@DATADIR@:/usr/share:" %{BUILDROOT}/usr/bin/xorg-x11-fonts-update-dirs
73 end
74 end
75
76 packages
77 package %{name}
78 end
79
80 package %{name}-devel
81 template DEVEL
82
83 requires
84 freetype-devel
85 end
86 end
87
88 package %{name}-debuginfo
89 template DEBUGINFO
90 end
91 end