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 libreoffice-dl "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;">
|
---|
8 |
|
---|
9 | <!ENTITY libreoffice-core-download-http "&libreoffice-dl;/libreoffice-&libreoffice-dlversion;.tar.xz">
|
---|
10 | <!ENTITY libreoffice-core-md5sum "a0cbe7fe9368e35068bd619281380379">
|
---|
11 | <!ENTITY libreoffice-core-size "168 MB">
|
---|
12 |
|
---|
13 | <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
|
---|
14 | <!ENTITY libreoffice-dict-md5sum "1daa2553486a991f4a19d3fd8f9ecc6a">
|
---|
15 | <!ENTITY libreoffice-dict-size "37 MB">
|
---|
16 |
|
---|
17 | <!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
|
---|
18 | <!ENTITY libreoffice-help-md5sum "e24d7920ef9fc36f977ebb954173fd43">
|
---|
19 | <!ENTITY libreoffice-help-size "1.9 MB">
|
---|
20 |
|
---|
21 | <!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
|
---|
22 | <!ENTITY libreoffice-translations-md5sum "76495173c3e7a74f4aa53198d8bb99e5">
|
---|
23 | <!ENTITY libreoffice-translations-size "126 MB">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!ENTITY libreoffice-buildsize "9.9 GB (643 MB installed)">
|
---|
27 | <!ENTITY libreoffice-time "55 SBU with parallelism = 4 (reputedly 202+ SBU with one core)">
|
---|
28 |
|
---|
29 | <!-- This package has some peculiarities, some discussed in the text.
|
---|
30 | Two values for SBU and buildsize are given due to the large difference
|
---|
31 | measured by editors, depending on architecture and sometimes installed
|
---|
32 | dependencies (with-system... -->
|
---|
33 |
|
---|
34 | <!-- [bdubbs] For version 4.3.2.2 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
35 | <!-- [bdubbs] For version 4.4.2.1 Built on x86_64 using -\-with-parallelism=12 -->
|
---|
36 | <!-- [bdubbs] For version 4.4.4.3 Built on x86_64 using -\-with-parallelism=12 -->
|
---|
37 | <!-- [fernando] For version 4.3.1.2 I've got, for i686, statistcs over the
|
---|
38 | upper bounds for x86_64 of previous versions, thus, temporarily, decided
|
---|
39 | to use single statistcs, instead of a range.-->
|
---|
40 | <!-- [fernando] For version 4.4.4.3 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
41 | <!-- [fernando] For version 5.0.0.5 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
42 | <!-- [fernando] For version 5.0.4.2 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
43 | <!-- [fernando] For version 5.1.0.3 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
44 | ]>
|
---|
45 |
|
---|
46 | <sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-dlversion;">
|
---|
47 | <?dbhtml filename="libreoffice.html"?>
|
---|
48 |
|
---|
49 | <sect1info>
|
---|
50 | <othername>$LastChangedBy$</othername>
|
---|
51 | <date>$Date$</date>
|
---|
52 | </sect1info>
|
---|
53 |
|
---|
54 | <title>LibreOffice-&libreoffice-version;</title>
|
---|
55 |
|
---|
56 | <indexterm zone="libreoffice">
|
---|
57 | <primary sortas="a-LibreOffice">LibreOffice</primary>
|
---|
58 | </indexterm>
|
---|
59 |
|
---|
60 | <sect2 role="package">
|
---|
61 | <title>Introduction to LibreOffice</title>
|
---|
62 |
|
---|
63 | <para>
|
---|
64 | <application>LibreOffice</application> is a full-featured office suite.
|
---|
65 | It is largely compatible with <application>Microsoft Office</application>
|
---|
66 | and is descended from <application>OpenOffice.org</application>.
|
---|
67 | </para>
|
---|
68 |
|
---|
69 | &lfs78_checked;
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
72 | <itemizedlist spacing="compact">
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Core Download: <ulink url="&libreoffice-core-download-http;"/>
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | Core Download MD5 sum: &libreoffice-core-md5sum;
|
---|
81 | </para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para>
|
---|
85 | Core Download size: &libreoffice-core-size;
|
---|
86 | </para>
|
---|
87 | </listitem>
|
---|
88 | <listitem>
|
---|
89 | <para>
|
---|
90 | Estimated disk space required: &libreoffice-buildsize;
|
---|
91 | </para>
|
---|
92 | </listitem>
|
---|
93 | <listitem>
|
---|
94 | <para>
|
---|
95 | Estimated build time: &libreoffice-time;
|
---|
96 | </para>
|
---|
97 | </listitem>
|
---|
98 | </itemizedlist>
|
---|
99 |
|
---|
100 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
101 | <itemizedlist spacing="compact">
|
---|
102 | <listitem>
|
---|
103 | <para>
|
---|
104 | Dictionaries: <ulink url="&libreoffice-dict-download-http;"/>
|
---|
105 | </para>
|
---|
106 | </listitem>
|
---|
107 |
|
---|
108 | <listitem>
|
---|
109 | <para>
|
---|
110 | Dictionaries MD5 sum: &libreoffice-dict-md5sum;
|
---|
111 | </para>
|
---|
112 | </listitem>
|
---|
113 |
|
---|
114 | <listitem>
|
---|
115 | <para>
|
---|
116 | Dictionaries size: &libreoffice-dict-size;
|
---|
117 | </para>
|
---|
118 | </listitem>
|
---|
119 |
|
---|
120 | <listitem>
|
---|
121 | <para>
|
---|
122 | Help Files: <ulink url="&libreoffice-help-download-http;"/>
|
---|
123 | </para>
|
---|
124 | </listitem>
|
---|
125 |
|
---|
126 | <listitem>
|
---|
127 | <para>
|
---|
128 | Help Files MD5 sum: &libreoffice-help-md5sum;
|
---|
129 | </para>
|
---|
130 | </listitem>
|
---|
131 |
|
---|
132 | <listitem>
|
---|
133 | <para>
|
---|
134 | Help Files size: &libreoffice-help-size;
|
---|
135 | </para>
|
---|
136 | </listitem>
|
---|
137 |
|
---|
138 | <listitem>
|
---|
139 | <para>
|
---|
140 | Translations: <ulink url="&libreoffice-translations-download-http;"/>
|
---|
141 | </para>
|
---|
142 | </listitem>
|
---|
143 |
|
---|
144 | <listitem>
|
---|
145 | <para>
|
---|
146 | Translations MD5 sum: &libreoffice-translations-md5sum;
|
---|
147 | </para>
|
---|
148 | </listitem>
|
---|
149 |
|
---|
150 | <listitem>
|
---|
151 | <para>
|
---|
152 | Translations size: &libreoffice-translations-size;
|
---|
153 | </para>
|
---|
154 | </listitem>
|
---|
155 | <!--
|
---|
156 | <listitem>
|
---|
157 | <para>
|
---|
158 | Required patch to use <xref linkend="boost"/>:
|
---|
159 | <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-boost_1_60_0-1.patch"/>
|
---|
160 | </para>
|
---|
161 | </listitem>-->
|
---|
162 | </itemizedlist>
|
---|
163 |
|
---|
164 | <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
|
---|
165 |
|
---|
166 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
167 | <para role="required">
|
---|
168 | <xref linkend="perl-archive-zip"/>,
|
---|
169 | <xref linkend="unzip"/>,
|
---|
170 | <xref linkend="wget"/>,
|
---|
171 | <xref linkend="which"/>, and
|
---|
172 | <xref linkend="zip"/>
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
176 | <note>
|
---|
177 | <para>
|
---|
178 | Most of these packages are recommended because if they're not installed,
|
---|
179 | the build process will compile and install its own (often older)
|
---|
180 | version, with the side effect of increasing build and installed disk
|
---|
181 | space and build time.
|
---|
182 | </para>
|
---|
183 | </note>
|
---|
184 |
|
---|
185 | <para role="recommended">
|
---|
186 | <xref linkend="apr"/>,
|
---|
187 | <xref linkend="boost"/> <!--(currently, broken with boost-1.60.0)-->,
|
---|
188 | <xref linkend="clucene"/>,
|
---|
189 | <xref linkend="cups"/>,
|
---|
190 | <xref linkend="curl"/>,
|
---|
191 | <xref linkend="dbus-glib"/>,
|
---|
192 | <xref linkend="libjpeg"/>,
|
---|
193 | <xref linkend="glu"/>,
|
---|
194 | <xref linkend="graphite2"/>,
|
---|
195 | <xref linkend="gst10-plugins-base"/>,
|
---|
196 | <xref linkend="gtk3"/> and
|
---|
197 | <xref linkend="gtk2"/> (see <quote>Command Explanations</quote>),
|
---|
198 | <xref linkend="harfbuzz"/>,
|
---|
199 | <xref linkend="icu"/>,
|
---|
200 | <xref linkend="libatomic_ops"/>,
|
---|
201 | <xref linkend="lcms2"/>,
|
---|
202 | <xref linkend="librsvg"/>,
|
---|
203 | <xref linkend="libxml2"/> and
|
---|
204 | <xref linkend="libxslt"/>,
|
---|
205 | <xref linkend="mesa"/>,
|
---|
206 | <xref linkend="neon"/>,
|
---|
207 | <xref linkend="npapi-sdk"/>,
|
---|
208 | <xref linkend="nss"/>,
|
---|
209 | <xref linkend="openldap"/> (if connecting to an LDAP server),
|
---|
210 | <xref linkend="openssl"/> or
|
---|
211 | <xref linkend="gnutls"/>,
|
---|
212 | <xref linkend="poppler"/>,
|
---|
213 | <xref linkend="postgresql"/>,
|
---|
214 | <xref linkend="python3"/>,
|
---|
215 | <xref linkend="redland"/>,
|
---|
216 | <xref linkend="serf"/>, and
|
---|
217 | <xref linkend="unixodbc"/>
|
---|
218 | </para>
|
---|
219 |
|
---|
220 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
221 | <para role="optional">
|
---|
222 | <xref linkend="apache-ant"/>,
|
---|
223 | <xref linkend="avahi"/>,
|
---|
224 | <xref linkend="bluez"/>,
|
---|
225 | <xref linkend="dconf"/>,
|
---|
226 | <xref linkend="desktop-file-utils"/>,
|
---|
227 | <xref linkend="doxygen"/> (not relevant if using --disable-odk),
|
---|
228 | <xref linkend="gdb"/>,
|
---|
229 | <xref linkend="kdelibs"/>,
|
---|
230 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
231 | <xref linkend="mitkrb"/>,
|
---|
232 | <xref linkend="nasm"/>,
|
---|
233 | <xref linkend="openjdk"/>,
|
---|
234 | <xref linkend="sane"/>,
|
---|
235 | <xref linkend="valgrind"/>,
|
---|
236 | <xref linkend="vlc"/>,
|
---|
237 | <xref linkend="zenity"/>,
|
---|
238 | <ulink url="https://commons.apache.org/proper/commons-codec/">Apache Commons Codec</ulink>,
|
---|
239 | <ulink url="https://hc.apache.org/httpclient-3.x/">Apache Commons HttpClient</ulink>,
|
---|
240 | <ulink url="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</ulink>,
|
---|
241 | <ulink url="https://commons.apache.org/proper/commons-logging/">Apache Commons Logging</ulink>,
|
---|
242 | <ulink url="http://www.beanshell.org/">BeanShell</ulink>,
|
---|
243 | <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
|
---|
244 | <ulink url="http://sourceforge.net/projects/cppunit/">Cppunit</ulink>,
|
---|
245 | <ulink url="http://www.firebirdsql.org/">Firebird</ulink>,
|
---|
246 | <ulink url="http://downloads.sourceforge.net/glew/">glew (OpenGL Extension Wrangler Library)</ulink>,
|
---|
247 | <ulink url="https://github.com/behdad/glyphy">glyphy</ulink>,
|
---|
248 | <ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/">Gnome VFS</ulink>,
|
---|
249 |
|
---|
250 | <ulink url="https://github.com/hamcrest/JavaHamcrest/releases">hamcrest</ulink>,
|
---|
251 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
252 | <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
253 | <ulink url="http://include-what-you-use.org/">iwyu</ulink>,
|
---|
254 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
|
---|
255 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
|
---|
256 | <ulink url="http://sourceforge.net/projects/libcmis/">libcmis</ulink>,
|
---|
257 | <ulink url="http://www.sourceforge.net/projects/libebook/">libebook</ulink>,
|
---|
258 | <ulink url="http://www.freedesktop.org/wiki/Software/libexttextcat/">libexttextcat</ulink>,
|
---|
259 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
|
---|
260 | <ulink url="http://tagoh.bitbucket.org/liblangtag/">liblangtag</ulink>,
|
---|
261 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
|
---|
262 | <ulink url="http://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
|
---|
263 | <ulink url="http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
|
---|
264 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
|
---|
265 | <ulink url="http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
|
---|
266 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
|
---|
267 | <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
|
---|
268 | <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink>,
|
---|
269 | <ulink url="http://libwps.sourceforge.net/">libwps</ulink>,
|
---|
270 | <ulink url="http://lpsolve.sourceforge.net/">lp_solve</ulink>,
|
---|
271 | <ulink url="https://gitlab.com/mdds/mdds">mdds</ulink>,
|
---|
272 | <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
|
---|
273 | <ulink url="http://sourceforge.net/projects/ogl-math/">ogl-math - OpenGL Mathematics (GLM)</ulink>,
|
---|
274 | <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
|
---|
275 | <ulink url="https://gitlab.com/orcus/orcus">Orcus</ulink>,
|
---|
276 | <ulink url="http://telepathy.freedesktop.org/releases/telepathy-glib/">telepathy-glib</ulink>,
|
---|
277 | <ulink url="https://ukoethe.github.io/vigra/">VIGRA</ulink>, and
|
---|
278 | <ulink url="&gnome-download-http;/zenity/">Zenity</ulink>
|
---|
279 | </para>
|
---|
280 |
|
---|
281 | <para>There are many optional dependencies not listed here. They can be
|
---|
282 | found in <quote>download.lst</quote> (source directory).
|
---|
283 | </para>
|
---|
284 |
|
---|
285 | <para condition="html" role="usernotes">
|
---|
286 | User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
|
---|
287 | </para>
|
---|
288 | </sect2>
|
---|
289 |
|
---|
290 | <sect2 role="installation">
|
---|
291 | <title>Installation of LibreOffice</title>
|
---|
292 | <!--
|
---|
293 | <warning>
|
---|
294 | <para>
|
---|
295 | Untaring the libreoffice-&libreoffice-dlversion; tarball as
|
---|
296 | <systemitem class="username">root</systemitem> has the curious effect of
|
---|
297 | changing the ownership of the <emphasis>parent</emphasis> directory
|
---|
298 | to a user with numerical id 11012 and with the permissions set to allow
|
---|
299 | read, write and execute for that user only! If you untared as
|
---|
300 | <systemitem class="username">root</systemitem> in your home folder you
|
---|
301 | could end up unable to log in again. If you untared it in
|
---|
302 | <filename class="directory">/usr</filename> you would find your user
|
---|
303 | account unable to access any file in
|
---|
304 | <filename class="directory">/usr</filename>.
|
---|
305 | </para>
|
---|
306 |
|
---|
307 | <para>
|
---|
308 | You can avoid this unpleasantness by
|
---|
309 | <emphasis>not</emphasis> untaring it as
|
---|
310 | <systemitem class="username">root</systemitem>. If you must untar it as
|
---|
311 | <systemitem class="username">root</systemitem> pass the option
|
---|
312 | <option>-\-no-overwrite-dir</option> to tar. This is the default when you
|
---|
313 | untar as a user but has to be passed as an option when untaring as
|
---|
314 | <systemitem class="username">root</systemitem>:
|
---|
315 | </para>
|
---|
316 | </warning>-->
|
---|
317 |
|
---|
318 | <!-- I was able to build over ssh 2015-03-24 - bdubbs
|
---|
319 | <note>
|
---|
320 | <para>
|
---|
321 | LibreOffice must be built in a graphical environment - the build will
|
---|
322 | fail otherwise.
|
---|
323 | </para>
|
---|
324 | </note>-->
|
---|
325 |
|
---|
326 | <important>
|
---|
327 | <para>
|
---|
328 | Unlike the other packages, we suppose that you have not yet unpacked the
|
---|
329 | package. This is so because the <option>--no-overwrite-dir</option>
|
---|
330 | switch is needed in case you unpack as the <systemitem
|
---|
331 | class="username">root</systemitem> user.
|
---|
332 | </para>
|
---|
333 | </important>
|
---|
334 |
|
---|
335 | <screen><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &&
|
---|
336 | cd libreoffice-&libreoffice-dlversion;</userinput></screen>
|
---|
337 |
|
---|
338 | <para>
|
---|
339 | Create symlinks to tarballs from the source directory so they won't
|
---|
340 | get downloaded again:
|
---|
341 | </para>
|
---|
342 |
|
---|
343 | <screen><userinput>install -dm755 external/tarballs &&
|
---|
344 | ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &&
|
---|
345 | ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
|
---|
346 |
|
---|
347 | <para>
|
---|
348 | If you have downloaded the translations tarball, create a symlink:
|
---|
349 | </para>
|
---|
350 |
|
---|
351 | <screen><userinput>ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
|
---|
352 |
|
---|
353 | <note>
|
---|
354 | <para>
|
---|
355 | During the build process, some packages will be downloaded (including
|
---|
356 | the ones listed as recommended and optional dependencies) if they are
|
---|
357 | not present on the system. Because of this, build time may vary from the
|
---|
358 | published time more than usual.
|
---|
359 | </para>
|
---|
360 | </note>
|
---|
361 |
|
---|
362 | <para>
|
---|
363 | Due to the large size of the package, you may prefer to install it in
|
---|
364 | <filename class="directory">/opt</filename>, instead of
|
---|
365 | <filename class="directory">/usr</filename>. Depending on your choice,
|
---|
366 | replace <replaceable><PREFIX></replaceable> by
|
---|
367 | <filename class="directory">/usr</filename> or by
|
---|
368 | <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
|
---|
369 | </para>
|
---|
370 |
|
---|
371 | <screen><userinput>export LO_PREFIX=<replaceable><PREFIX></replaceable></userinput></screen>
|
---|
372 | <!--
|
---|
373 | <para>
|
---|
374 | Fix build failures introduced by <application>boost-&boost-version;</application>:
|
---|
375 | </para>
|
---|
376 |
|
---|
377 | <screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-boost_1_60_0-1.patch</userinput></screen>-->
|
---|
378 |
|
---|
379 | <para>
|
---|
380 | Locales "fr" and "en-GB", you will find below, are just examples; you
|
---|
381 | should change them to suit your needs - you might want to read the
|
---|
382 | "Command Explanations", further below, before proceeding.
|
---|
383 | </para>
|
---|
384 |
|
---|
385 | <para>
|
---|
386 | Prepare <application>LibreOffice</application> for compilation by running
|
---|
387 | the following commands:
|
---|
388 | </para>
|
---|
389 |
|
---|
390 | <screen><userinput>sed -e "/gzip -f/d" \
|
---|
391 | -e "s|.1.gz|.1|g" \
|
---|
392 | -i bin/distro-install-desktop-integration &&
|
---|
393 |
|
---|
394 | sed -e "/distro-install-file-lists/d" -i Makefile.in &&
|
---|
395 |
|
---|
396 | sed -i "s#isnan#std::&#g" xmloff/source/draw/ximp3dscene.cxx &&
|
---|
397 |
|
---|
398 | chmod -v +x bin/unpack-sources &&
|
---|
399 |
|
---|
400 | ./autogen.sh --prefix=$LO_PREFIX \
|
---|
401 | --sysconfdir=/etc \
|
---|
402 | --with-vendor=BLFS \
|
---|
403 | --with-lang='fr en-GB' \
|
---|
404 | --with-help \
|
---|
405 | --with-myspell-dicts \
|
---|
406 | --with-alloc=system \
|
---|
407 | --without-java \
|
---|
408 | --without-system-dicts \
|
---|
409 | --disable-dconf \
|
---|
410 | --disable-odk \
|
---|
411 | --enable-release-build=yes \
|
---|
412 | --enable-python=system \
|
---|
413 | --with-system-apr \
|
---|
414 | --with-system-boost=yes \
|
---|
415 | --with-system-cairo \
|
---|
416 | --with-system-clucene \
|
---|
417 | --with-system-curl \
|
---|
418 | --with-system-expat \
|
---|
419 | --with-system-graphite \
|
---|
420 | --with-system-harfbuzz \
|
---|
421 | --with-system-icu \
|
---|
422 | --with-system-jpeg \
|
---|
423 | --with-system-lcms2 \
|
---|
424 | --with-system-libatomic_ops \
|
---|
425 | --with-system-libpng \
|
---|
426 | --with-system-libxml \
|
---|
427 | --with-system-neon \
|
---|
428 | --with-system-npapi-headers \
|
---|
429 | --with-system-nss \
|
---|
430 | --with-system-odbc \
|
---|
431 | --with-system-openldap \
|
---|
432 | --with-system-openssl \
|
---|
433 | --with-system-poppler \
|
---|
434 | --with-system-postgresql \
|
---|
435 | --with-system-redland \
|
---|
436 | --with-system-serf \
|
---|
437 | --with-system-zlib \
|
---|
438 | --with-parallelism=$(getconf _NPROCESSORS_ONLN)</userinput></screen>
|
---|
439 |
|
---|
440 | <para>
|
---|
441 | The instructions below will only build the package without running
|
---|
442 | any unit tests. If you prefer to run the unit tests, replace
|
---|
443 | <command>make build</command> with <command>make</command>.
|
---|
444 | </para>
|
---|
445 |
|
---|
446 | <para>
|
---|
447 | Build the package <!--(remember that it must be done in a graphical
|
---|
448 | environment)-->:
|
---|
449 | </para>
|
---|
450 |
|
---|
451 | <screen><userinput>make build</userinput></screen>
|
---|
452 |
|
---|
453 | <para>
|
---|
454 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
455 | </para>
|
---|
456 |
|
---|
457 | <screen role="root"><userinput>make distro-pack-install &&
|
---|
458 | install -v -m755 -d $LO_PREFIX/share/appdata &&
|
---|
459 | install -v -m644 sysui/desktop/appstream-appdata/*.xml \
|
---|
460 | $LO_PREFIX/share/appdata</userinput></screen>
|
---|
461 |
|
---|
462 | <para>
|
---|
463 | If installed in <filename
|
---|
464 | class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>
|
---|
465 | some additional steps are necessary. Issue the following commands, as
|
---|
466 | <systemitem class="username">root</systemitem> user:
|
---|
467 | </para>
|
---|
468 |
|
---|
469 | <screen role="root"><userinput>if [ "$LO_PREFIX" != "/usr" ]; then
|
---|
470 |
|
---|
471 | # This symlink is necessary for the desktop menu entries
|
---|
472 | ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &&
|
---|
473 |
|
---|
474 | # Icons
|
---|
475 | mkdir -vp /usr/share/pixmaps
|
---|
476 | for i in $LO_PREFIX/share/icons/hicolor/32x32/application/*; do
|
---|
477 | ln -svf $i /usr/share/pixmaps
|
---|
478 | done &&
|
---|
479 |
|
---|
480 | # Desktop menu entries
|
---|
481 | for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
|
---|
482 | ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
|
---|
483 | done &&
|
---|
484 |
|
---|
485 | # Man pages
|
---|
486 | for i in $LO_PREFIX/share/man/man1/*; do
|
---|
487 | ln -svf $i /usr/share/man/man1/
|
---|
488 | done
|
---|
489 |
|
---|
490 | unset i
|
---|
491 | fi</userinput></screen>
|
---|
492 |
|
---|
493 | <para>
|
---|
494 | If you have installed <xref linkend="desktop-file-utils"/>, and you wish
|
---|
495 | to update the MIME database, issue, as the <systemitem class="username">
|
---|
496 | root</systemitem> user:
|
---|
497 | </para>
|
---|
498 |
|
---|
499 | <screen role="root"><userinput>update-desktop-database</userinput></screen>
|
---|
500 |
|
---|
501 | <para>
|
---|
502 | The suite and main modules can be started from the menu. From a terminal,
|
---|
503 | the suite can be started with <command>libreoffice</command> command and
|
---|
504 | the modules with <command>libreoffice
|
---|
505 | --<replaceable><module></replaceable></command> command,
|
---|
506 | respectively, where <replaceable><module></replaceable> is one of
|
---|
507 | base, calc, draw, impress, math or writer. Modules cannot be started using
|
---|
508 | their shell starting script names (see "Installed Programs", below), if
|
---|
509 | LO_PREFIX is other than <filename class='directory'>/user</filename>,
|
---|
510 | unless <filename class='directory'>$LO_PREFIX/bin</filename> directory is
|
---|
511 | appended to the PATH.
|
---|
512 | </para>
|
---|
513 |
|
---|
514 | </sect2>
|
---|
515 |
|
---|
516 | <sect2 role="commands">
|
---|
517 | <title>Command Explanations</title>
|
---|
518 |
|
---|
519 | <para>
|
---|
520 | <command>sed -e ...</command>: The first sed prevents compression of the
|
---|
521 | manual pages, the second one prevents install from failing and the third
|
---|
522 | one fixes a build failure caused by a <application>glibc-2.23</application>
|
---|
523 | change.
|
---|
524 | </para>
|
---|
525 |
|
---|
526 | <para>
|
---|
527 | <command>chmod -v +x ...</command>: Fix the unpack script's permissions.
|
---|
528 | </para>
|
---|
529 |
|
---|
530 | <para>
|
---|
531 | <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
|
---|
532 | the vendor which is mentioned when you click "About" on the toolbar.
|
---|
533 | </para>
|
---|
534 |
|
---|
535 | <para>
|
---|
536 | <parameter>--with-lang='fr en-GB'</parameter>: This switch sets
|
---|
537 | what languages to support. To list several languages, separate them with
|
---|
538 | a space. For all languages, use
|
---|
539 | <parameter>--with-lang=ALL</parameter>.
|
---|
540 | </para>
|
---|
541 |
|
---|
542 | <note>
|
---|
543 | <para>
|
---|
544 | For a list of the available languages, look in
|
---|
545 | <filename>solenv/inc/langlist.mk</filename>.
|
---|
546 | </para>
|
---|
547 | </note>
|
---|
548 |
|
---|
549 | <para>
|
---|
550 | <parameter>--with-help</parameter>: Without this switch, the help files
|
---|
551 | are not built.
|
---|
552 | </para>
|
---|
553 |
|
---|
554 | <para>
|
---|
555 | <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
|
---|
556 | dictionaries to the <application>LibreOffice</application> installation
|
---|
557 | set.
|
---|
558 | </para>
|
---|
559 |
|
---|
560 | <para>
|
---|
561 | <parameter>--with-alloc=system</parameter>: This switch tells
|
---|
562 | <application>LibreOffice</application> to use system allocator
|
---|
563 | instead of the internal one.
|
---|
564 | </para>
|
---|
565 |
|
---|
566 | <para>
|
---|
567 | <parameter>--with-system-boost=<replaceable><yes/no></replaceable></parameter>:
|
---|
568 | This switch enables/disables use of system boost, so bundled one may be or
|
---|
569 | not used, because currently, depending on the user decision, or if the
|
---|
570 | build is broken with latest <application>Boost</application> in BLFS,
|
---|
571 | which frequently occurs and there is a delay until either a fix is found
|
---|
572 | or it is fixed upstream.
|
---|
573 | </para>
|
---|
574 |
|
---|
575 | <para>
|
---|
576 | <parameter>--disable-dconf</parameter>: This switch disables compiling
|
---|
577 | <application>LibreOffice</application> with the
|
---|
578 | <application>GNOME DConf</application> configuration system support.
|
---|
579 | </para>
|
---|
580 |
|
---|
581 | <para>
|
---|
582 | <parameter>--without-system-dicts</parameter>: This switch disables use
|
---|
583 | of dictionaries from system paths, so the ones installed by this package
|
---|
584 | are used.
|
---|
585 | </para>
|
---|
586 |
|
---|
587 | <para>
|
---|
588 | <parameter>--without-java</parameter>: This switch disables
|
---|
589 | <application>Java</application> support in
|
---|
590 | <application>LibreOffice</application>.
|
---|
591 | </para>
|
---|
592 |
|
---|
593 | <para>
|
---|
594 | <parameter>--disable-odk</parameter>: This switch disables installing the
|
---|
595 | office development kit. Remove if you want to develop a
|
---|
596 | <application>LibreOffice</application> based application.
|
---|
597 | </para>
|
---|
598 |
|
---|
599 | <para>
|
---|
600 | <parameter>--enable-release-build=yes</parameter>: This switch enables a
|
---|
601 | Release Build. <application>LibreOffice</application> can be built as a
|
---|
602 | Release Build or as a Developer Build, because their default installation
|
---|
603 | paths and user profile paths are different. Developer Build displays the
|
---|
604 | words "Dev" and "Beta" in several places (e.g, menu and splash screen).
|
---|
605 | </para>
|
---|
606 |
|
---|
607 | <para>
|
---|
608 | <parameter>--enable-python=system</parameter>: This switch tells
|
---|
609 | <application>LibreOffice</application> to use installed
|
---|
610 | <application>Python 3</application> to build the translations instead of
|
---|
611 | the bundled one.
|
---|
612 | </para>
|
---|
613 |
|
---|
614 | <para>
|
---|
615 | <parameter>--with-system-*</parameter>: These switches prevent
|
---|
616 | <application>LibreOffice</application> from trying to compile its own
|
---|
617 | versions of these dependencies. If you've not installed some of the
|
---|
618 | dependencies, remove the corresponding switches.
|
---|
619 | </para>
|
---|
620 |
|
---|
621 | <para>
|
---|
622 | <parameter>--with-parallelism=$(getconf _NPROCESSORS_ONLN)</parameter>:
|
---|
623 | This switch tells <application>LibreOffice</application> to use all your
|
---|
624 | CPUs to compile in parallel and speed up the build.
|
---|
625 | </para>
|
---|
626 |
|
---|
627 | <para>
|
---|
628 | <option>--disable-cups</option>: Use this switch if you don't need
|
---|
629 | printing support.
|
---|
630 | </para>
|
---|
631 |
|
---|
632 | <para>
|
---|
633 | <option>--disable-dbus</option>: Use this switch if you've not installed
|
---|
634 | D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
|
---|
635 | via PackageKit.
|
---|
636 | </para>
|
---|
637 |
|
---|
638 | <para>
|
---|
639 | <option>--disable-firebird-sdbc</option>: By default, the ability to
|
---|
640 | connect to a <application>firebird</application> database is enabled.
|
---|
641 | This is regarded as 'experimental' and from time to time the unit test
|
---|
642 | CppunitTest_dbaccess_firebird_test fails near the end of the build. If
|
---|
643 | you need to connect to such a database, and the build fails for you,
|
---|
644 | you will need to build <xref linkend="gdb"/> to help upstream debug it.
|
---|
645 | </para>
|
---|
646 |
|
---|
647 | <para>
|
---|
648 | <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
|
---|
649 | installed <xref linkend="gst10-plugins-base"/>.
|
---|
650 | </para>
|
---|
651 |
|
---|
652 | <para>
|
---|
653 | <option>--disable-gtk3</option>: Use this switch if you have not installed
|
---|
654 | <application>GTK+-3</application>, or if you have installed it but wish
|
---|
655 | to use <application>GTK+-2</application> (the menu icons differ).
|
---|
656 | Note that a <application>GTK+-3</application> build still
|
---|
657 | requires <application>GTK+-2</application> to build the gtk-plugin.
|
---|
658 | </para>
|
---|
659 |
|
---|
660 | <para>
|
---|
661 | <option>--disable-postgresql-sdbc</option>: This switch disables compiling
|
---|
662 | <application>LibreOffice</application> with the ability to connect to a
|
---|
663 | <application>PostgreSQL</application> database. Remove it if you would
|
---|
664 | like <application>LibreOffice</application> to be able to connect to a
|
---|
665 | <application>PostgreSQL</application> database. If you have installed
|
---|
666 | <application>PostgreSQL</application> on your system and would like
|
---|
667 | <application>LibreOffice</application> to use that rather than compile its
|
---|
668 | own copy, use the <option>--with-system-postgresql</option> switch.
|
---|
669 | </para>
|
---|
670 |
|
---|
671 | <para>
|
---|
672 | <option>--enable-kde4</option>: Use this switch if you want to build the
|
---|
673 | <application>KDE</application> integration module.
|
---|
674 | </para>
|
---|
675 |
|
---|
676 | </sect2>
|
---|
677 |
|
---|
678 | <sect2 role="content">
|
---|
679 | <title>Contents</title>
|
---|
680 |
|
---|
681 | <segmentedlist>
|
---|
682 | <segtitle>Installed Programs</segtitle>
|
---|
683 | <segtitle>Installed Libraries</segtitle>
|
---|
684 | <segtitle>Installed Directory</segtitle>
|
---|
685 |
|
---|
686 | <seglistitem>
|
---|
687 | <seg>
|
---|
688 | libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
|
---|
689 | loimpress, lomath, loweb, lowriter, soffice and unopkg;
|
---|
690 | several programs under
|
---|
691 | $LO_PREFIX/lib/libreoffice/program
|
---|
692 | </seg>
|
---|
693 | <seg>
|
---|
694 | several libraries under
|
---|
695 | $LO_PREFIX/lib/libreoffice/program
|
---|
696 | </seg>
|
---|
697 | <seg>
|
---|
698 | $LO_PREFIX/lib/libreoffice
|
---|
699 | </seg>
|
---|
700 | </seglistitem>
|
---|
701 | </segmentedlist>
|
---|
702 |
|
---|
703 | <variablelist>
|
---|
704 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
705 | <?dbfo list-presentation="list"?>
|
---|
706 | <?dbhtml list-presentation="table"?>
|
---|
707 |
|
---|
708 | <varlistentry id="libreoffice-suite">
|
---|
709 | <term><command>libreoffice (or soffice)</command></term>
|
---|
710 | <listitem>
|
---|
711 | <para>
|
---|
712 | is the main libreofice suite (symlink to
|
---|
713 | $LO_PREFIX/lib/libreoffice/program/soffice).
|
---|
714 | </para>
|
---|
715 | <indexterm zone="libreoffice libreoffice-suite">
|
---|
716 | <primary sortas="b-libreoffice-suite">libreoffice-suite</primary>
|
---|
717 | </indexterm>
|
---|
718 | </listitem>
|
---|
719 | </varlistentry>
|
---|
720 |
|
---|
721 | <varlistentry id="lobase">
|
---|
722 | <term><command>lobase</command></term>
|
---|
723 | <listitem>
|
---|
724 | <para>
|
---|
725 | is the database manager module shell starting script.
|
---|
726 | </para>
|
---|
727 | <indexterm zone="libreoffice lobase">
|
---|
728 | <primary sortas="b-lobase">lobase</primary>
|
---|
729 | </indexterm>
|
---|
730 | </listitem>
|
---|
731 | </varlistentry>
|
---|
732 |
|
---|
733 | <varlistentry id="localc">
|
---|
734 | <term><command>localc</command></term>
|
---|
735 | <listitem>
|
---|
736 | <para>
|
---|
737 | is the spreadsheet module shell starting script.
|
---|
738 | </para>
|
---|
739 | <indexterm zone="libreoffice localc">
|
---|
740 | <primary sortas="b-localc">localc</primary>
|
---|
741 | </indexterm>
|
---|
742 | </listitem>
|
---|
743 | </varlistentry>
|
---|
744 |
|
---|
745 | <varlistentry id="lodraw">
|
---|
746 | <term><command>lodraw</command></term>
|
---|
747 | <listitem>
|
---|
748 | <para>
|
---|
749 | is the vector graphics editor and diagramming tool module shell
|
---|
750 | starting script.
|
---|
751 | </para>
|
---|
752 | <indexterm zone="libreoffice lodraw">
|
---|
753 | <primary sortas="b-lodraw">lodraw</primary>
|
---|
754 | </indexterm>
|
---|
755 | </listitem>
|
---|
756 | </varlistentry>
|
---|
757 |
|
---|
758 | <varlistentry id="loimpress">
|
---|
759 | <term><command>loimpress</command></term>
|
---|
760 | <listitem>
|
---|
761 | <para>
|
---|
762 | is the (PowerPoint) presentations editor and displayer
|
---|
763 | module shell starting script.
|
---|
764 | </para>
|
---|
765 | <indexterm zone="libreoffice loimpress">
|
---|
766 | <primary sortas="b-loimpress">loimpress</primary>
|
---|
767 | </indexterm>
|
---|
768 | </listitem>
|
---|
769 | </varlistentry>
|
---|
770 |
|
---|
771 | <varlistentry id="lomath">
|
---|
772 | <term><command>lomath</command></term>
|
---|
773 | <listitem>
|
---|
774 | <para>
|
---|
775 | is the mathematical formula editor module shell starting script.
|
---|
776 | </para>
|
---|
777 | <indexterm zone="libreoffice lomath">
|
---|
778 | <primary sortas="b-lomath">lomath</primary>
|
---|
779 | </indexterm>
|
---|
780 | </listitem>
|
---|
781 | </varlistentry>
|
---|
782 |
|
---|
783 | <varlistentry id="lowriter">
|
---|
784 | <term><command>lowriter</command></term>
|
---|
785 | <listitem>
|
---|
786 | <para>
|
---|
787 | is the word processor module shell starting script.
|
---|
788 | </para>
|
---|
789 | <indexterm zone="libreoffice lowriter">
|
---|
790 | <primary sortas="b-lowriter">lowriter</primary>
|
---|
791 | </indexterm>
|
---|
792 | </listitem>
|
---|
793 | </varlistentry>
|
---|
794 |
|
---|
795 | <varlistentry id="unopkg">
|
---|
796 | <term><command>unopkg</command></term>
|
---|
797 | <listitem>
|
---|
798 | <para>
|
---|
799 | is a tool to manage <application>LibreOffice</application>
|
---|
800 | extensions from the command line shell starting script.
|
---|
801 | </para>
|
---|
802 | <indexterm zone="libreoffice unopkg">
|
---|
803 | <primary sortas="b-unopkg">unopkg</primary>
|
---|
804 | </indexterm>
|
---|
805 | </listitem>
|
---|
806 | </varlistentry>
|
---|
807 |
|
---|
808 | </variablelist>
|
---|
809 |
|
---|
810 | </sect2>
|
---|
811 |
|
---|
812 | </sect1>
|
---|