1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY fmt-download-http "https://github.com/fmtlib/fmt/archive/&fmt-version;/fmt-&fmt-version;.tar.gz">
|
---|
8 | <!ENTITY fmt-download-ftp " ">
|
---|
9 | <!ENTITY fmt-md5sum "3fe10c5184c8ecd0d2f9536c1b1ae95c">
|
---|
10 | <!ENTITY fmt-size "688 KB">
|
---|
11 | <!ENTITY fmt-buildsize "3.9 MB (add 39 MB for tests)">
|
---|
12 | <!ENTITY fmt-time "less than 0.1 SBU (add 0.2 SBU for tests; both using parallelism=4)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="fmt" xreflabel="fmt-&fmt-version;">
|
---|
16 | <?dbhtml filename="fmt.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>fmt-&fmt-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="fmt">
|
---|
22 | <primary sortas="a-fmt">fmt</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to fmt</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>fmt</application> package is an open-source formatting
|
---|
30 | library providing a fast and safe alternative to C stdio and C++
|
---|
31 | iostreams.</para>
|
---|
32 | &lfs121_checked;
|
---|
33 |
|
---|
34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
35 | <itemizedlist spacing="compact">
|
---|
36 | <listitem>
|
---|
37 | <para>
|
---|
38 | Download (HTTP): <ulink url="&fmt-download-http;"/>
|
---|
39 | </para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (FTP): <ulink url="&fmt-download-ftp;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download MD5 sum: &fmt-md5sum;
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download size: &fmt-size;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Estimated disk space required: &fmt-buildsize;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated build time: &fmt-time;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 | <!--
|
---|
68 | <bridgehead renderas="sect3">Fmt Dependencies</bridgehead>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
71 | <para role="required">
|
---|
72 | <xref linkend="glib2"/> and
|
---|
73 | <xref linkend="libsigc"/>
|
---|
74 | </para>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
77 | <para role="optional">
|
---|
78 | <xref linkend="doxygen"/>,
|
---|
79 | <xref linkend="glib-networking"/> (for tests),
|
---|
80 | <xref linkend="gnutls"/> (for tests),
|
---|
81 | <xref linkend="libxslt"/>, and
|
---|
82 | <ulink url="&gnome-download-http;/mm-common">mm-common</ulink>
|
---|
83 | </para>
|
---|
84 | -->
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2 role="installation">
|
---|
88 | <title>Installation of fmt</title>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | Install <application>fmt</application> by running the following
|
---|
92 | commands:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <screen><userinput>mkdir build &&
|
---|
96 | cd build &&
|
---|
97 |
|
---|
98 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
99 | -D CMAKE_INSTALL_LIBDIR=/usr/lib \
|
---|
100 | -D BUILD_SHARED_LIBS=ON \
|
---|
101 | -D FMT_TEST=OFF \
|
---|
102 | -G Ninja .. &&
|
---|
103 | ninja</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | If you have enabled tests, issue: <command>ninja test</command>.
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="commands">
|
---|
118 | <title>Command Explanations</title>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | <parameter>-D FMT_TEST=OFF</parameter>: This switch initializes
|
---|
122 | the package tests. Set to ON if you wish to run tests.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="content">
|
---|
128 | <title>Contents</title>
|
---|
129 |
|
---|
130 | <segmentedlist>
|
---|
131 | <segtitle>Installed Programs</segtitle>
|
---|
132 | <segtitle>Installed Libraries</segtitle>
|
---|
133 | <segtitle>Installed Directories</segtitle>
|
---|
134 |
|
---|
135 | <seglistitem>
|
---|
136 | <seg>
|
---|
137 | None
|
---|
138 | </seg>
|
---|
139 | <seg>
|
---|
140 | libfmt.so
|
---|
141 | </seg>
|
---|
142 | <seg>
|
---|
143 | /usr/include/fmt and
|
---|
144 | /usr/lib/cmake/fmt
|
---|
145 | </seg>
|
---|
146 | </seglistitem>
|
---|
147 | </segmentedlist>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 | </sect1>
|
---|