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