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