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 "34cf1a7fbac5b496c141c32c8464a73a">
|
---|
11 | <!ENTITY libreoffice-core-size "157 MB">
|
---|
12 |
|
---|
13 | <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
|
---|
14 | <!ENTITY libreoffice-dict-md5sum "f61c11b64e4f15620b9d96bd58af4041">
|
---|
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 "46e893fdbc435917b5cf70565e38d6f0">
|
---|
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 "064605fe0695dcf0b461036c07e75c7a">
|
---|
23 | <!ENTITY libreoffice-translations-size "122 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 "8.6 GB (538 MB installed), with translations">
|
---|
31 | <!ENTITY libreoffice-time "70 SBU (using parallelism=4), with translations">
|
---|
32 |
|
---|
33 | <!-- [bdubbs] For version 4.3.2.2 Built on x86_64 using -\-with-parallelism=4 -->
|
---|
34 |
|
---|
35 | <!-- [fo] For version 4.3.1.2 I've got, for i686, statistcs over the upper
|
---|
36 | boundaries for x86_64 of previous versions, thus, temporarily, decided to use
|
---|
37 | single statistcs, instead of a range.
|
---|
38 | -->
|
---|
39 | <!-- This package has some peculiarities, some discussed in the text.
|
---|
40 | Two values for SBU and buildsize are given due to the large difference
|
---|
41 | measured by editors, depending on architecture and sometimes installed
|
---|
42 | dependencies (with-system... -->
|
---|
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-dlversion;</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 | &lfs77_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 | <listitem>
|
---|
107 | <para>
|
---|
108 | Dictionaries MD5 sum: &libreoffice-dict-md5sum;
|
---|
109 | </para>
|
---|
110 | </listitem>
|
---|
111 | <listitem>
|
---|
112 | <para>
|
---|
113 | Dictionaries size: &libreoffice-dict-size;
|
---|
114 | </para>
|
---|
115 | </listitem>
|
---|
116 | <listitem>
|
---|
117 | <para>
|
---|
118 | Help Files: <ulink url="&libreoffice-help-download-http;"/>
|
---|
119 | </para>
|
---|
120 | </listitem>
|
---|
121 | <listitem>
|
---|
122 | <para>
|
---|
123 | Help Files MD5 sum: &libreoffice-help-md5sum;
|
---|
124 | </para>
|
---|
125 | </listitem>
|
---|
126 | <listitem>
|
---|
127 | <para>
|
---|
128 | Help Files size: &libreoffice-help-size;
|
---|
129 | </para>
|
---|
130 | </listitem>
|
---|
131 | <listitem>
|
---|
132 | <para>
|
---|
133 | Translations: <ulink url="&libreoffice-translations-download-http;"/>
|
---|
134 | </para>
|
---|
135 | </listitem>
|
---|
136 | <listitem>
|
---|
137 | <para>
|
---|
138 | Translations MD5 sum: &libreoffice-translations-md5sum;
|
---|
139 | </para>
|
---|
140 | </listitem>
|
---|
141 | <listitem>
|
---|
142 | <para>
|
---|
143 | Translations size: &libreoffice-translations-size;
|
---|
144 | </para>
|
---|
145 | </listitem>
|
---|
146 | <!-- <listitem>
|
---|
147 | <para>
|
---|
148 | Required patch to fix building with system Boost:
|
---|
149 | <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-boost_1_56_0-1.patch"/>
|
---|
150 | </para>
|
---|
151 | </listitem>-->
|
---|
152 | <listitem>
|
---|
153 | <para>
|
---|
154 | Required patch for i686 systems, in order to fix a problem introduced
|
---|
155 | by <application>&gcc-490;</application>:
|
---|
156 | <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-gcc_4_9_0-2.patch"/>
|
---|
157 | </para>
|
---|
158 | </listitem>
|
---|
159 | </itemizedlist>
|
---|
160 |
|
---|
161 | <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
|
---|
162 |
|
---|
163 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
164 | <para role="required">
|
---|
165 | <xref linkend="perl-archive-zip"/>,
|
---|
166 | <xref linkend="unzip"/>,
|
---|
167 | <xref linkend="wget"/>,
|
---|
168 | <xref linkend="which"/>, and
|
---|
169 | <xref linkend="zip"/>
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
173 | <note>
|
---|
174 | <para>
|
---|
175 | Most of these packages are recommended because if they're not installed,
|
---|
176 | the build process will compile and install its own (often older)
|
---|
177 | version.
|
---|
178 | </para>
|
---|
179 | </note>
|
---|
180 |
|
---|
181 | <para role="recommended">
|
---|
182 | <xref linkend="boost"/>,
|
---|
183 | <xref linkend="clucene"/>,
|
---|
184 | <xref linkend="cups"/>,
|
---|
185 | <xref linkend="curl"/>,
|
---|
186 | <xref linkend="dbus-glib"/>,
|
---|
187 | <xref linkend="libjpeg"/>,
|
---|
188 | <xref linkend="glu"/>,
|
---|
189 | <xref linkend="graphite2"/>,
|
---|
190 | <xref linkend="gst-plugins-base"/> or
|
---|
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="mesalib"/>,
|
---|
200 | <xref linkend="neon"/>,
|
---|
201 | <xref linkend="npapi-sdk"/>,
|
---|
202 | <xref linkend="nss"/>,
|
---|
203 | <xref linkend="openldap"/>,
|
---|
204 | <xref linkend="openssl"/>,
|
---|
205 | <xref linkend="poppler"/>,
|
---|
206 | <xref linkend="python3"/>,
|
---|
207 | <xref linkend="redland"/>, and
|
---|
208 | <xref linkend="unixodbc"/>
|
---|
209 | </para>
|
---|
210 |
|
---|
211 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
212 | <para role="optional">
|
---|
213 | <xref linkend="avahi"/>,
|
---|
214 | <xref linkend="bluez"/>,
|
---|
215 | <xref linkend="desktop-file-utils"/>,
|
---|
216 | <xref linkend="doxygen"/> (not relevant if using --disable-odk),
|
---|
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="openjdk"/>,
|
---|
224 | <xref linkend="postgresql"/>,
|
---|
225 | <xref linkend="sane"/>,
|
---|
226 | <xref linkend="vlc"/>,
|
---|
227 | <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
|
---|
228 | <ulink url="http://sourceforge.net/projects/cppunit/">Cppunit</ulink>,
|
---|
229 | <ulink url="http://www.firebirdsql.org/">firebird</ulink>,
|
---|
230 | <ulink url="http://downloads.sourceforge.net/glew/">glew (OpenGL Extension Wrangler Library)</ulink>,
|
---|
231 | <ulink url="https://code.google.com/p/hamcrest/">hamcrest</ulink>,
|
---|
232 | <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
|
---|
233 | <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
234 | <ulink url="https://code.google.com/p/include-what-you-use/">iwyu</ulink>,
|
---|
235 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
|
---|
236 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
|
---|
237 | <ulink url="http://sourceforge.net/projects/libcmis/">libcmis</ulink>,
|
---|
238 | <ulink url="http://www.sourceforge.net/projects/libebook/">libebook</ulink>,
|
---|
239 | <ulink url="http://www.freedesktop.org/wiki/Software/libexttextcat/">libexttextcat</ulink>,
|
---|
240 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
|
---|
241 | <ulink url="http://tagoh.bitbucket.org/liblangtag/">liblangtag</ulink>,
|
---|
242 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
|
---|
243 | <ulink url="http://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
|
---|
244 | <ulink url="http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
|
---|
245 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
|
---|
246 | <ulink url="http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
|
---|
247 | <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
|
---|
248 | <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
|
---|
249 | <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink>,
|
---|
250 | <ulink url="http://libwps.sourceforge.net/">libwps</ulink>,
|
---|
251 | <ulink url="http://lpsolve.sourceforge.net/">lp_solve</ulink>,
|
---|
252 | <ulink url="http://code.google.com/p/multidimalgorithm/">mdds</ulink>,
|
---|
253 | <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
|
---|
254 | <ulink url="http://sourceforge.net/projects/ogl-math/">ogl-math - OpenGL Mathematics (GLM)</ulink>,
|
---|
255 | <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
|
---|
256 | <ulink url="https://gitorious.org/orcus/">Orcus</ulink>,
|
---|
257 | <ulink url="http://hci.iwr.uni-heidelberg.de/vigra/">VIGRA</ulink>, and
|
---|
258 | <ulink url="&gnome-download-http;/zenity/">Zenity</ulink>
|
---|
259 | </para>
|
---|
260 |
|
---|
261 | <para>There are many optional dependencies not listed here. They can be
|
---|
262 | found in <quote>download.lst</quote> (source directory).
|
---|
263 | </para>
|
---|
264 |
|
---|
265 | <para condition="html" role="usernotes">
|
---|
266 | User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
|
---|
267 | </para>
|
---|
268 | </sect2>
|
---|
269 |
|
---|
270 | <sect2 role="installation">
|
---|
271 | <title>Installation of LibreOffice</title>
|
---|
272 | <!--
|
---|
273 | <warning>
|
---|
274 | <para>
|
---|
275 | Untaring the libreoffice-&libreoffice-dlversion; tarball as
|
---|
276 | <systemitem class="username">root</systemitem> has the curious effect of
|
---|
277 | changing the ownership of the <emphasis>parent</emphasis> directory
|
---|
278 | to a user with numerical id 11012 and with the permissions set to allow
|
---|
279 | read, write and execute for that user only! If you untared as
|
---|
280 | <systemitem class="username">root</systemitem> in your home folder you
|
---|
281 | could end up unable to log in again. If you untared it in
|
---|
282 | <filename class="directory">/usr</filename> you would find your user
|
---|
283 | account unable to access any file in
|
---|
284 | <filename class="directory">/usr</filename>.
|
---|
285 | </para>
|
---|
286 |
|
---|
287 | <para>
|
---|
288 | You can avoid this unpleasantness by
|
---|
289 | <emphasis>not</emphasis> untaring it as
|
---|
290 | <systemitem class="username">root</systemitem>. If you must untar it as
|
---|
291 | <systemitem class="username">root</systemitem> pass the option
|
---|
292 | <option>-\-no-overwrite-dir</option> to tar. This is the default when you
|
---|
293 | untar as a user but has to be passed as an option when untaring as
|
---|
294 | <systemitem class="username">root</systemitem>:
|
---|
295 | </para>
|
---|
296 | </warning>-->
|
---|
297 |
|
---|
298 | <note>
|
---|
299 | <para>
|
---|
300 | LibreOffice must be built in a graphical environment - the build will
|
---|
301 | fail otherwise.
|
---|
302 | </para>
|
---|
303 | </note>
|
---|
304 |
|
---|
305 | <important>
|
---|
306 | <para>
|
---|
307 | Unlike the other packages, we suppose that you have not yet unpacked the
|
---|
308 | package. This is so because the <option>--no-overwrite-dir</option> switch
|
---|
309 | is needed in case you unpack as the
|
---|
310 | <systemitem class="username">root</systemitem> user.
|
---|
311 | </para>
|
---|
312 | </important>
|
---|
313 |
|
---|
314 | <screen><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &&
|
---|
315 | cd libreoffice-&libreoffice-dlversion;</userinput></screen>
|
---|
316 |
|
---|
317 | <para>
|
---|
318 | Create symlinks to tarballs from the source directory so they won't
|
---|
319 | get downloaded again:
|
---|
320 | </para>
|
---|
321 |
|
---|
322 | <screen><userinput>install -dm755 external/tarballs &&
|
---|
323 | <!-- Not necessary for this version
|
---|
324 | tar -xf ../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz \
|
---|
325 | -/-no-overwrite-dir -/-strip-components=1 &&
|
---|
326 | tar -xf ../libreoffice-help-&libreoffice-dlversion;.tar.xz -\-no-overwrite-dir -\-strip-components=1 &&
|
---|
327 | -->
|
---|
328 | ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &&
|
---|
329 | ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
|
---|
330 |
|
---|
331 | <!-- Not necessary for this version
|
---|
332 | <para>
|
---|
333 | If you have downloaded the translations tarball, unpack it:
|
---|
334 | </para>
|
---|
335 |
|
---|
336 | <screen><userinput>tar -xf ../libreoffice-translations-&libreoffice-dlversion;.tar.xz -\-no-overwrite-dir -\-strip-components=1 &&
|
---|
337 | ln -sv ../../libreoffice-translations-&libreoffice-dlversion;.tar.xz src/</userinput></screen>
|
---|
338 | -->
|
---|
339 | <para>
|
---|
340 | If you have downloaded the translations tarball, create a symlink:
|
---|
341 | </para>
|
---|
342 |
|
---|
343 | <screen><userinput>ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
|
---|
344 |
|
---|
345 | <note>
|
---|
346 | <para>
|
---|
347 | During the build process, some packages will be downloaded (including
|
---|
348 | the ones listed as recommended and optional dependencies) if they are
|
---|
349 | not present on the system. Because of this, build time may vary from the
|
---|
350 | published time more than usual.
|
---|
351 | </para>
|
---|
352 | </note>
|
---|
353 |
|
---|
354 | <para>
|
---|
355 | Due to the large size of the package, you may prefer to install it in
|
---|
356 | <filename class="directory">/opt</filename>, instead of
|
---|
357 | <filename class="directory">/usr</filename>. Depending on your choice,
|
---|
358 | replace <replaceable><PREFIX></replaceable> by
|
---|
359 | <filename class="directory">/usr</filename> or by
|
---|
360 | <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
|
---|
361 | </para>
|
---|
362 |
|
---|
363 | <screen><userinput>export LO_PREFIX=<replaceable><PREFIX></replaceable></userinput></screen>
|
---|
364 |
|
---|
365 | <para>
|
---|
366 | For i686 systems, fix a problem introduced by
|
---|
367 | <application>&gcc-490;</application>:
|
---|
368 | </para>
|
---|
369 |
|
---|
370 | <screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-gcc_4_9_0-2.patch</userinput></screen>
|
---|
371 |
|
---|
372 | <para>
|
---|
373 | Locales "en-US" and "pt-BR", 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="en-US pt-BR" \
|
---|
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 -sv -f $LO_PREFIX/lib/libreoffice/program/soffice \
|
---|
465 | /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; unset i &&
|
---|
471 |
|
---|
472 | # Desktop menu entries
|
---|
473 | pushd $LO_PREFIX/lib/libreoffice/share/xdg &&
|
---|
474 | for i in *; do
|
---|
475 | ln -svf $LO_PREFIX/lib/libreoffice/share/xdg/$i \
|
---|
476 | /usr/share/applications/libreoffice-$i
|
---|
477 | done; unset i &&
|
---|
478 | popd &&
|
---|
479 |
|
---|
480 | # Man pages
|
---|
481 | for i in $LO_PREFIX/share/man/man1/*; do
|
---|
482 | ln -svf $i /usr/share/man/man1/
|
---|
483 | done; unset i
|
---|
484 | fi</userinput></screen>
|
---|
485 |
|
---|
486 | <para>
|
---|
487 | If you have installed <xref linkend="desktop-file-utils"/>, and you wish
|
---|
488 | to update the MIME database, issue, as the <systemitem class="username">
|
---|
489 | root</systemitem> user:
|
---|
490 | </para>
|
---|
491 |
|
---|
492 | <screen role="root"><userinput>update-desktop-database</userinput></screen>
|
---|
493 |
|
---|
494 | </sect2>
|
---|
495 |
|
---|
496 | <sect2 role="commands">
|
---|
497 | <title>Command Explanations</title>
|
---|
498 |
|
---|
499 | <para>
|
---|
500 | <command>sed -e ...</command>: The first sed prevents compression of the
|
---|
501 | manual pages, the second one prevents install from failing and the third
|
---|
502 | one includes a missing header without which <command>make build</command>
|
---|
503 | fails.
|
---|
504 | </para>
|
---|
505 |
|
---|
506 | <para>
|
---|
507 | <command>chmod -v +x ...</command>: Fix the unpack script's permissions.
|
---|
508 | </para>
|
---|
509 |
|
---|
510 | <para>
|
---|
511 | <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
|
---|
512 | the vendor which is mentioned when you click "About" on the toolbar.
|
---|
513 | </para>
|
---|
514 | <!-- I believe en-US is not necessary anymore
|
---|
515 | <para>
|
---|
516 | <parameter>-\-with-lang="en-US pt-BR"</parameter>: This switch sets
|
---|
517 | what languages to support. en-US is always needed. To list several
|
---|
518 | languages, separate them with a space. For all languages, use
|
---|
519 | <parameter>-\-with-lang=ALL</parameter>
|
---|
520 | </para>
|
---|
521 | -->
|
---|
522 |
|
---|
523 | <para>
|
---|
524 | <parameter>--with-lang="en-US pt-BR"</parameter>: This switch sets
|
---|
525 | what languages to support. To list several languages, separate them with
|
---|
526 | a space. For all languages, use
|
---|
527 | <parameter>--with-lang=ALL</parameter>.
|
---|
528 | </para>
|
---|
529 |
|
---|
530 | <note>
|
---|
531 | <para>
|
---|
532 | For a list of the available languages, you can look at the translations
|
---|
533 | tarball: <command>tar -tf
|
---|
534 | ../libreoffice-translations-&libreoffice-dlversion;.tar.xz | grep
|
---|
535 | translations/source| cut -d/ -f4 | uniq</command>.
|
---|
536 | </para>
|
---|
537 | </note>
|
---|
538 |
|
---|
539 | <para>
|
---|
540 | <parameter>--with-help</parameter>: Without this switch, the help files
|
---|
541 | are not built.
|
---|
542 | </para>
|
---|
543 |
|
---|
544 | <para>
|
---|
545 | <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
|
---|
546 | dictionaries to the <application>LibreOffice</application> installation
|
---|
547 | set.
|
---|
548 | </para>
|
---|
549 |
|
---|
550 | <para>
|
---|
551 | <parameter>--with-alloc=system</parameter>: This switch tells
|
---|
552 | <application>LibreOffice</application> to use system allocator
|
---|
553 | instead of the internal one.
|
---|
554 | </para>
|
---|
555 |
|
---|
556 | <para>
|
---|
557 | <parameter>--without-system-dicts</parameter>: This switch disables use
|
---|
558 | of dictionaries from system paths, so the ones installed by this package
|
---|
559 | are used.
|
---|
560 | </para>
|
---|
561 |
|
---|
562 | <para>
|
---|
563 | <parameter>--without-java</parameter>: This switch disables
|
---|
564 | <application>Java</application> support in
|
---|
565 | <application>LibreOffice</application>.
|
---|
566 | </para>
|
---|
567 |
|
---|
568 | <para>
|
---|
569 | <parameter>--disable-gconf</parameter>: This switch disables compiling
|
---|
570 | <application>LibreOffice</application> with the deprecated
|
---|
571 | <application>GNOME</application> configuration system support.
|
---|
572 | </para>
|
---|
573 |
|
---|
574 | <para>
|
---|
575 | <parameter>--disable-odk</parameter>: This switch disables installing the
|
---|
576 | office development kit. Remove if you want to develop a
|
---|
577 | <application>LibreOffice</application> based application.
|
---|
578 | </para>
|
---|
579 |
|
---|
580 | <para>
|
---|
581 | <parameter>--disable-postgresql-sdbc</parameter>: This switch disables
|
---|
582 | compiling <application>LibreOffice</application> with the ability to
|
---|
583 | connect to a <application>PostgreSQL</application> database. Remove it if
|
---|
584 | you would like <application>LibreOffice</application> to be able to
|
---|
585 | connect to a <application>PostgreSQL</application> database. If you have
|
---|
586 | installed <application>PostgreSQL</application> on your system and would
|
---|
587 | like <application>LibreOffice</application> to use that rather than
|
---|
588 | compile its own copy, use the <option>--with-system-postgresql</option>
|
---|
589 | switch.
|
---|
590 | </para>
|
---|
591 |
|
---|
592 | <para>
|
---|
593 | <parameter>--enable-release-build=yes</parameter>: This switch enables a
|
---|
594 | Release Build. <application>LibreOffice</application> can be built as a
|
---|
595 | Release Build or as a Developer Build, because their default installation
|
---|
596 | paths and user profile paths are different. Developer Build displays the
|
---|
597 | words "Dev" and "Beta" in several places (e.g, menu and splash screen).
|
---|
598 | </para>
|
---|
599 |
|
---|
600 | <para>
|
---|
601 | <parameter>--enable-python=system</parameter>: This switch tells
|
---|
602 | <application>LibreOffice</application> to use installed
|
---|
603 | <application>Python 3</application> to build the translations instead of
|
---|
604 | the bundled one.
|
---|
605 | </para>
|
---|
606 |
|
---|
607 | <para>
|
---|
608 | <parameter>--with-system-*</parameter>: These switches prevent
|
---|
609 | <application>LibreOffice</application> from trying to compile its own
|
---|
610 | versions of these dependencies. If you've not installed some of the
|
---|
611 | dependencies, remove the corresponding switches.
|
---|
612 | </para>
|
---|
613 |
|
---|
614 | <para>
|
---|
615 | <parameter>--with-parallelism=$(getconf _NPROCESSORS_ONLN)</parameter>:
|
---|
616 | This switch tells <application>LibreOffice</application> to use all your
|
---|
617 | CPUs to compile in parallel and speed up the build.
|
---|
618 | </para>
|
---|
619 |
|
---|
620 | <para>
|
---|
621 | <option>--disable-cups</option>: Use this switch if you don't need
|
---|
622 | printing support.
|
---|
623 | </para>
|
---|
624 |
|
---|
625 | <para>
|
---|
626 | <option>--disable-dbus</option>: Use this switch if you've not installed
|
---|
627 | D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
|
---|
628 | via PackageKit.
|
---|
629 | </para>
|
---|
630 |
|
---|
631 | <para>
|
---|
632 | <option>--enable-gstreamer-0-10</option>: Use this switch if you want to
|
---|
633 | use <xref linkend="gst-plugins-base"/> instead of
|
---|
634 | <xref linkend="gst10-plugins-base"/> for the avmedia module.
|
---|
635 | </para>
|
---|
636 |
|
---|
637 | <para>
|
---|
638 | <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
|
---|
639 | installed <xref linkend="gst10-plugins-base"/>.
|
---|
640 | </para>
|
---|
641 |
|
---|
642 | <para>
|
---|
643 | <option>--enable-gtk3</option>: Use this switch if you want to build the
|
---|
644 | <application>GTK+ 3</application> integration module. This is
|
---|
645 | experimental and may not work.
|
---|
646 | </para>
|
---|
647 |
|
---|
648 | <para>
|
---|
649 | <option>--enable-kde4</option>: Use this switch if you want to build the
|
---|
650 | <application>KDE</application> integration module.
|
---|
651 | </para>
|
---|
652 |
|
---|
653 | </sect2>
|
---|
654 |
|
---|
655 | <sect2 role="content">
|
---|
656 | <title>Contents</title>
|
---|
657 |
|
---|
658 | <segmentedlist>
|
---|
659 | <segtitle>Installed Programs</segtitle>
|
---|
660 | <segtitle>Installed Libraries</segtitle>
|
---|
661 | <segtitle>Installed Directory</segtitle>
|
---|
662 |
|
---|
663 | <seglistitem>
|
---|
664 | <seg>
|
---|
665 | libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
|
---|
666 | loimpress, lomath, loweb, lowriter, soffice and unopkg;
|
---|
667 | several programs under
|
---|
668 | $LO_PREFIX/lib/libreoffice/program
|
---|
669 | </seg>
|
---|
670 | <seg>
|
---|
671 | several libraries under
|
---|
672 | $LO_PREFIX/lib/libreoffice/{ure/lib,program}
|
---|
673 | </seg>
|
---|
674 | <seg>
|
---|
675 | $LO_PREFIX/lib/libreoffice
|
---|
676 | </seg>
|
---|
677 | </seglistitem>
|
---|
678 | </segmentedlist>
|
---|
679 |
|
---|
680 | <variablelist>
|
---|
681 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
682 | <?dbfo list-presentation="list"?>
|
---|
683 | <?dbhtml list-presentation="table"?>
|
---|
684 |
|
---|
685 | <varlistentry id="lobase">
|
---|
686 | <term><command>lobase</command></term>
|
---|
687 | <listitem>
|
---|
688 | <para>
|
---|
689 | is a database manager.
|
---|
690 | </para>
|
---|
691 | <indexterm zone="libreoffice lobase">
|
---|
692 | <primary sortas="b-lobase">lobase</primary>
|
---|
693 | </indexterm>
|
---|
694 | </listitem>
|
---|
695 | </varlistentry>
|
---|
696 |
|
---|
697 | <varlistentry id="localc">
|
---|
698 | <term><command>localc</command></term>
|
---|
699 | <listitem>
|
---|
700 | <para>
|
---|
701 | is a spreadsheet program.
|
---|
702 | </para>
|
---|
703 | <indexterm zone="libreoffice localc">
|
---|
704 | <primary sortas="b-localc">localc</primary>
|
---|
705 | </indexterm>
|
---|
706 | </listitem>
|
---|
707 | </varlistentry>
|
---|
708 |
|
---|
709 | <varlistentry id="lodraw">
|
---|
710 | <term><command>lodraw</command></term>
|
---|
711 | <listitem>
|
---|
712 | <para>
|
---|
713 | is a vector graphics editor and diagramming tool.
|
---|
714 | </para>
|
---|
715 | <indexterm zone="libreoffice lodraw">
|
---|
716 | <primary sortas="b-lodraw">lodraw</primary>
|
---|
717 | </indexterm>
|
---|
718 | </listitem>
|
---|
719 | </varlistentry>
|
---|
720 |
|
---|
721 | <varlistentry id="loimpress">
|
---|
722 | <term><command>loimpress</command></term>
|
---|
723 | <listitem>
|
---|
724 | <para>
|
---|
725 | can edit and display PowerPoint presentations.
|
---|
726 | </para>
|
---|
727 | <indexterm zone="libreoffice loimpress">
|
---|
728 | <primary sortas="b-loimpress">loimpress</primary>
|
---|
729 | </indexterm>
|
---|
730 | </listitem>
|
---|
731 | </varlistentry>
|
---|
732 |
|
---|
733 | <varlistentry id="lomath">
|
---|
734 | <term><command>lomath</command></term>
|
---|
735 | <listitem>
|
---|
736 | <para>
|
---|
737 | is a mathematical formula editor.
|
---|
738 | </para>
|
---|
739 | <indexterm zone="libreoffice lomath">
|
---|
740 | <primary sortas="b-lomath">lomath</primary>
|
---|
741 | </indexterm>
|
---|
742 | </listitem>
|
---|
743 | </varlistentry>
|
---|
744 |
|
---|
745 | <varlistentry id="lowriter">
|
---|
746 | <term><command>lowriter</command></term>
|
---|
747 | <listitem>
|
---|
748 | <para>
|
---|
749 | is a word processor.
|
---|
750 | </para>
|
---|
751 | <indexterm zone="libreoffice lowriter">
|
---|
752 | <primary sortas="b-lowriter">lowriter</primary>
|
---|
753 | </indexterm>
|
---|
754 | </listitem>
|
---|
755 | </varlistentry>
|
---|
756 |
|
---|
757 | <varlistentry id="unopkg">
|
---|
758 | <term><command>unopkg</command></term>
|
---|
759 | <listitem>
|
---|
760 | <para>
|
---|
761 | is a tool to manage <application>LibreOffice</application>
|
---|
762 | extensions from the command line.
|
---|
763 | </para>
|
---|
764 | <indexterm zone="libreoffice unopkg">
|
---|
765 | <primary sortas="b-unopkg">unopkg</primary>
|
---|
766 | </indexterm>
|
---|
767 | </listitem>
|
---|
768 | </varlistentry>
|
---|
769 |
|
---|
770 | </variablelist>
|
---|
771 |
|
---|
772 | </sect2>
|
---|
773 |
|
---|
774 | </sect1>
|
---|