mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-28 10:22:12 +08:00
57f7cfae60
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8826 af4574ff-66df-0310-9fd7-8a98e5e911e0
178 lines
5.3 KiB
XML
178 lines
5.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!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 cmake-download-http "http://www.cmake.org/files/v2.8/cmake-&cmake-version;.tar.gz">
|
|
<!ENTITY cmake-download-ftp " ">
|
|
<!ENTITY cmake-md5sum "a76a44b93acf5e3badda9de111385921">
|
|
<!ENTITY cmake-size "5.3 MB">
|
|
<!ENTITY cmake-buildsize "132 MB">
|
|
<!ENTITY cmake-time "1.3 SBU">
|
|
]>
|
|
|
|
<sect1 id="cmake" xreflabel="cmake-&cmake-version;">
|
|
<?dbhtml filename="cmake.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>CMake-&cmake-version;</title>
|
|
|
|
<indexterm zone="cmake">
|
|
<primary sortas="a-CMake">CMake</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to CMake</title>
|
|
|
|
<para>The <application>CMake</application> package contains a modern toolset used
|
|
for generating Makefiles. It is a successor of the auto-generated
|
|
<filename>configure</filename> script.</para>
|
|
|
|
&lfs67_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&cmake-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&cmake-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &cmake-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &cmake-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &cmake-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &cmake-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<!--
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem>
|
|
<para>Required patch: <ulink
|
|
url="&patch-root;/cmake-&cmake-version;-fixes-1.patch"/></para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
-->
|
|
|
|
<bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="libarchive"/>
|
|
<xref linkend="expat"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/cmake"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of CMake</title>
|
|
|
|
<para>Install <application>CMake</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./bootstrap --prefix=/usr \
|
|
--system-libs \
|
|
--mandir=/share/man \
|
|
--docdir=/share/doc/cmake-&cmake-version; &&
|
|
make</userinput></screen>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
<para>CMake supports DESTDIR in the generated Makefiles as well as in the Makefile
|
|
used to build CMake itself.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><option>--system-libs</option>: This option forces the build system
|
|
to link against <application>zlib</application>, <application>curl</application> and
|
|
<application>expat</application> installed on the system.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>ctest, cpack, ccmake and cmake</seg>
|
|
<seg></seg>
|
|
<seg>/usr/share/cmake-&cmake-version;, /usr/share/doc/cmake-&cmake-version;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="ctest">
|
|
<term><command>ctest</command></term>
|
|
<listitem>
|
|
<para>is a testing utility for cmake-generated build trees.</para>
|
|
<indexterm zone="cmake ctest">
|
|
<primary sortas="b-ctest">ctest</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="cpack">
|
|
<term><command>cpack</command></term>
|
|
<listitem>
|
|
<para>is the CMake packaging program.</para>
|
|
<indexterm zone="cmake cpack">
|
|
<primary sortas="b-cpack">cpack</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="ccmake">
|
|
<term><command>ccmake</command></term>
|
|
<listitem>
|
|
<para>is a curses based interactive frontend to cmake.</para>
|
|
<indexterm zone="cmake ccmake">
|
|
<primary sortas="b-ccmake">ccmake</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="c_make">
|
|
<term><command>cmake</command></term>
|
|
<listitem>
|
|
<para>is the makefile generator.</para>
|
|
<indexterm zone="cmake c_make">
|
|
<primary sortas="b-cmake">cmake</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|