1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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 extra-cmake-modules-download-http "&kf5-download-http;/extra-cmake-modules-&kf5-version;.tar.xz">
|
---|
8 | <!ENTITY extra-cmake-modules-download-ftp " ">
|
---|
9 | <!ENTITY extra-cmake-modules-md5sum "d9c1cdbe014fed6a451f02f0b4debfa7">
|
---|
10 | <!ENTITY extra-cmake-modules-size "328 KB">
|
---|
11 | <!ENTITY extra-cmake-modules-buildsize "4.5 MB">
|
---|
12 | <!ENTITY extra-cmake-modules-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="extra-cmake-modules" xreflabel="extra-cmake-modules-&kf5-version;">
|
---|
16 | <?dbhtml filename="extra-cmake-modules.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>extra-cmake-modules-&kf5-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="extra-cmake-modules">
|
---|
22 | <primary sortas="a-extra-cmake-modules">extra-cmake-modules</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to Extra Cmake Modules</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>Extra Cmake Modules</application> package contains
|
---|
30 | extra <application>CMake</application> modules used by
|
---|
31 | <application>KDE Frameworks 5</application> and other packages.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs112_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&extra-cmake-modules-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&extra-cmake-modules-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &extra-cmake-modules-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &extra-cmake-modules-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &extra-cmake-modules-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &extra-cmake-modules-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">Extra Cmake Modules Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="cmake"/>
|
---|
75 | </para>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional">
|
---|
79 | <ulink url="https://pypi.org/project/PyQt5/">PyQt</ulink> (experimental
|
---|
80 | support for building KDE Python bindings), and
|
---|
81 | <ulink url="https://pypi.python.org/pypi/Sphinx">Sphinx</ulink> (for
|
---|
82 | building documentation)
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">
|
---|
86 | User Notes: <ulink url="&blfs-wiki;/extra-cmake-modules"/>
|
---|
87 | </para>
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of Extra Cmake Modules</title>
|
---|
92 |
|
---|
93 | <!-- fix for python-3.10: only needed until upgrading to 5.87 (or above)
|
---|
94 | <para>
|
---|
95 | First, fix detection of Python-3.10 modules:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>sed 's/10)/11)/' -i find-modules/FindPythonModuleGeneration.cmake</userinput></screen>
|
---|
99 | End fix for python-3.10 -->
|
---|
100 |
|
---|
101 | <para>
|
---|
102 | Install <application>Extra Cmake Modules</application> by running the
|
---|
103 | following commands:
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <screen><userinput>sed -i '/"lib64"/s/64//' kde-modules/KDEInstallDirsCommon.cmake &&
|
---|
107 |
|
---|
108 | sed -e '/PACKAGE_INIT/i set(SAVE_PACKAGE_PREFIX_DIR "${PACKAGE_PREFIX_DIR}")' \
|
---|
109 | -e '/^include/a set(PACKAGE_PREFIX_DIR "${SAVE_PACKAGE_PREFIX_DIR}")' \
|
---|
110 | -i ECMConfig.cmake.in &&
|
---|
111 |
|
---|
112 | mkdir build &&
|
---|
113 | cd build &&
|
---|
114 |
|
---|
115 | cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
|
---|
116 | make</userinput></screen>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | This package does not come with a test suite.
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <note><para>
|
---|
123 | Unlike other KF5 packages, this module is installed in /usr because
|
---|
124 | it can be used by some non-KF5 packages.
|
---|
125 | </para></note>
|
---|
126 |
|
---|
127 | <para>
|
---|
128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
129 | </para>
|
---|
130 |
|
---|
131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="commands">
|
---|
136 | <title>Command Explanations</title>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | <command>sed ... Modules/KDEInstallDirs.cmake</command>:
|
---|
140 | This command disables applications using cmake from attempting to
|
---|
141 | install files in a <filename class="directory">lib64</filename>
|
---|
142 | sub-directory.
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <para>
|
---|
146 | <command>sed ... ECMConfig.cmake.in</command>:
|
---|
147 | This command protects the global <application>cmake</application>
|
---|
148 | variable <envar>PACKAGE_PREFIX_DIR</envar> from being changed when
|
---|
149 | checking ECM presence: since we install ECM into <filename
|
---|
150 | class="directory">/usr</filename>, the check would set that variable to
|
---|
151 | <filename class="directory">/usr</filename>, while most KDE packages
|
---|
152 | expect it to be set to <filename class="directory">/opt/kf5</filename>
|
---|
153 | and would fail to build if it is set to something else.
|
---|
154 | </para>
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | <sect2 role="content">
|
---|
158 | <title>Contents</title>
|
---|
159 |
|
---|
160 | <segmentedlist>
|
---|
161 | <segtitle>Installed Programs</segtitle>
|
---|
162 | <segtitle>Installed Libraries</segtitle>
|
---|
163 | <segtitle>Installed Directories</segtitle>
|
---|
164 |
|
---|
165 | <seglistitem>
|
---|
166 | <seg>
|
---|
167 | None
|
---|
168 | </seg>
|
---|
169 | <seg>
|
---|
170 | None
|
---|
171 | </seg>
|
---|
172 | <seg>
|
---|
173 | /usr/share/ECM and
|
---|
174 | /usr/share/doc/ECM (if documentation was built)
|
---|
175 | </seg>
|
---|
176 | </seglistitem>
|
---|
177 | </segmentedlist>
|
---|
178 |
|
---|
179 | </sect2>
|
---|
180 |
|
---|
181 | </sect1>
|
---|