glfs/kde/extra-cmake-modules.xml
Bruce Dubbs 6849fbe7bd Update to kf5-5.64.0 including extra-cmake-modules and oxygen-icons
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22362 af4574ff-66df-0310-9fd7-8a98e5e911e0
2019-11-10 04:06:03 +00:00

178 lines
5.2 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 extra-cmake-modules-download-http "&kf5-download-http;/extra-cmake-modules-&kf5-version;.tar.xz">
<!ENTITY extra-cmake-modules-download-ftp " ">
<!ENTITY extra-cmake-modules-md5sum "ca705855a8d06ae606e0d646dbf327b0">
<!ENTITY extra-cmake-modules-size "332 KB">
<!ENTITY extra-cmake-modules-buildsize "4.4 MB">
<!ENTITY extra-cmake-modules-time "less than 0.1 SBU">
]>
<sect1 id="extra-cmake-modules" xreflabel="extra-cmake-modules-&kf5-version;">
<?dbhtml filename="extra-cmake-modules.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>extra-cmake-modules-&kf5-version;</title>
<indexterm zone="extra-cmake-modules">
<primary sortas="a-extra-cmake-modules">extra-cmake-modules</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Extra Cmake Modules</title>
<para>
The <application>Extra Cmake Modules</application> package contains
extra <application>CMake</application> modules used by
<application>KDE Frameworks 5</application> and other packages.
</para>
&lfs90_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&extra-cmake-modules-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&extra-cmake-modules-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &extra-cmake-modules-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &extra-cmake-modules-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &extra-cmake-modules-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &extra-cmake-modules-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Extra Cmake Modules Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<ulink url="https://pypi.python.org/pypi/Sphinx">Sphinx</ulink> (for
building documentation)
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/extra-cmake-modules"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of Extra Cmake Modules</title>
<para>
Install <application>Extra Cmake Modules</application> by running the
following commands:
</para>
<screen><userinput>sed -i '/"lib64"/s/64//' kde-modules/KDEInstallDirs.cmake &amp;&amp;
sed -e '/PACKAGE_INIT/i set(SAVE_PACKAGE_PREFIX_DIR "${PACKAGE_PREFIX_DIR}")' \
-e '/^include/a set(PACKAGE_PREFIX_DIR "${SAVE_PACKAGE_PREFIX_DIR}")' \
-i ECMConfig.cmake.in &amp;&amp;
mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=/usr .. &amp;&amp;
make</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<note><para>
Unlike other KF5 packages, this module is installed in /usr because
it can be used by some non-KF5 packages.
</para></note>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed ... Modules/KDEInstallDirs.cmake</command>:
This command disables applications using cmake from attempting to
install files in a <filename class="directory">lib64</filename>
sub-directory.
</para>
<para>
<command>sed ... ECMConfig.cmake.in</command>:
This command protects the global <application>cmake</application>
variable <envar>PACKAGE_PREFIX_DIR</envar> from being changed when
checking ECM presence: since we install ECM into <filename
class="directory">/usr</filename>, the check would set that variable to
<filename class="directory">/usr</filename>, while most KDE packages
expect it to be set to <filename class="directory">/opt/kf5</filename>
and would fail to build if it is set to something else.
</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>
None
</seg>
<seg>
/usr/share/ECM and
/usr/share/doc/ECM (if documentation was built)
</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>