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