mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
152 lines
3.9 KiB
XML
152 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY fmt-download-http "https://github.com/fmtlib/fmt/archive/refs/tags/&fmt-version;/fmt-&fmt-version;.tar.gz">
|
|
<!ENTITY fmt-download-ftp " ">
|
|
<!ENTITY fmt-md5sum "dc09168c94f90ea890257995f2c497a5">
|
|
<!ENTITY fmt-size "836 KB">
|
|
<!ENTITY fmt-buildsize "4.5 MB (add 40 MB for tests)">
|
|
<!ENTITY fmt-time "less than 0.1 SBU (add 0.2 SBU for tests)">
|
|
]>
|
|
|
|
<sect1 id="fmt" xreflabel="fmt-&fmt-version;">
|
|
<?dbhtml filename="fmt.html"?>
|
|
|
|
|
|
<title>fmt-&fmt-version;</title>
|
|
|
|
<indexterm zone="fmt">
|
|
<primary sortas="a-fmt">fmt</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to fmt</title>
|
|
|
|
<para>
|
|
The <application>fmt</application> package is an open-source formatting
|
|
library providing a fast and safe alternative to C stdio and C++
|
|
iostreams.</para>
|
|
&lfs120_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&fmt-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&fmt-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &fmt-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &fmt-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &fmt-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &fmt-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
<!--
|
|
<bridgehead renderas="sect3">Fmt Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="glib2"/> and
|
|
<xref linkend="libsigc"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="doxygen"/>,
|
|
<xref linkend="glib-networking"/> (for tests),
|
|
<xref linkend="gnutls"/> (for tests),
|
|
<xref linkend="libxslt"/>, and
|
|
<ulink url="&gnome-download-http;/mm-common">mm-common</ulink>
|
|
</para>
|
|
-->
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of fmt</title>
|
|
|
|
<para>
|
|
Install <application>fmt</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DFMT_TEST=OFF \
|
|
-G Ninja .. &&
|
|
ninja</userinput></screen>
|
|
|
|
<para>
|
|
If you have enabled tests, issue: <command>ninja test</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<parameter>-DFMT_TEST=OFF</parameter>: This switch initializes
|
|
the package tests. Set to ON if you wish to run tests.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
libfmt.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/fmt and
|
|
/usr/lib/cmake/fmt
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|