source: xsoft/office/libreoffice.xml@ f80a458

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f80a458 was 8c853a1, checked in by Krejzi <krejzi@…>, 12 years ago

LibreOffice 3.6.2.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10717 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 18.3 KB
Line 
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-core-download-http
8 "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;/libreoffice-core-&libreoffice-dlversion;.tar.xz">
9 <!ENTITY libreoffice-core-download-ftp " ">
10 <!ENTITY libreoffice-core-md5sum "ae171ba4633cc72dba4451b1bdd3385e">
11 <!ENTITY libreoffice-core-size "105 MB">
12 <!ENTITY libreoffice-buildsize "5.2 GB (360 MB installed)">
13 <!ENTITY libreoffice-time "60 SBU">
14]>
15
16<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-version;">
17 <?dbhtml filename="libreoffice.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>LibreOffice-&libreoffice-version;</title>
25
26 <indexterm zone="libreoffice">
27 <primary sortas="a-LibreOffice">LibreOffice</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to LibreOffice</title>
32
33 <para>
34 <application>LibreOffice</application> is a full-featured office suite.
35 It is largely compatible with <application>Microsoft Office</application>
36 and is descended from <application>OpenOffice.org</application>.
37 </para>
38
39 &lfs72_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Core Download (HTTP): <ulink url="&libreoffice-core-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Core Download (FTP): <ulink url="&libreoffice-core-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Core Download MD5 sum: &libreoffice-core-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Core Download size: &libreoffice-core-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &libreoffice-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &libreoffice-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch:
80 <ulink url="&patch-root;/libreoffice-core-&libreoffice-dlversion;-boost_fix-1.patch"/>
81 </para>
82 </listitem>
83 <listitem>
84 <para>
85 Required patch:
86 <ulink url="&patch-root;/libreoffice-core-&libreoffice-dlversion;-poppler_fix-1.patch"/>
87 </para>
88 </listitem>
89 </itemizedlist>
90
91 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
92
93 <bridgehead renderas="sect4">Required</bridgehead>
94 <para role="required">
95 <xref linkend="cups"/>,
96 <xref linkend="curl"/> or <xref linkend="wget"/>,
97 <xref linkend="gperf"/>,
98 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
99 <application>Perl Modules</application>
100 <xref linkend="perl-archive-zip"/> and
101 <xref linkend="perl-xml-parser"/>,
102 <xref linkend="unzip"/>,
103 <xref linkend="which"/> and
104 <xref linkend="zip"/>.
105 </para>
106
107 <bridgehead renderas="sect4">Recommended</bridgehead>
108 <note>
109 <para>
110 Most of these packages are recommended because if they're not installed,
111 the build process will compile and install its own (often older)
112 version. If you're using <application>GCC 4.7</application>, some of
113 those older packages will fail to compile.
114 </para>
115 </note>
116
117 <para role="recommended">
118 <xref linkend="boost"/>,
119 <xref linkend="db"/>,
120 <xref linkend="expat"/>,
121 <xref linkend="gst-plugins-base"/>,
122 <xref linkend="libjpeg"/>,
123 <xref linkend="libgsf"/>,
124 <xref linkend="libpng"/>,
125 <xref linkend="librsvg"/>,
126 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
127 <xref linkend="neon"/>,
128 <xref linkend="nss"/>,
129 <xref linkend="poppler"/>,
130 <xref linkend="openssl"/> and
131 <xref linkend="redland"/>.
132 </para>
133
134 <bridgehead renderas="sect4">Optional</bridgehead>
135 <para role="optional">
136 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
137 <xref linkend="mysql"/>,
138 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
139 <xref linkend="postgresql"/>,
140 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
141 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
142 <xref linkend="zenity"/>.
143 </para>
144
145 <para condition="html" role="usernotes">
146 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
147 </para>
148 </sect2>
149
150 <sect2 role="installation">
151 <title>Installation of LibreOffice</title>
152
153 <warning>
154 <para>
155 Untaring the libreoffice-core-&libreoffice-dlversion; tarball as
156 <systemitem class="username">root</systemitem> has the curious effect of
157 changing the ownership of the <emphasis>parent</emphasis> directory
158 to a user with numerical id 11012 and with the permissions set to allow
159 read, write and execute for that user only! If you untared as
160 <systemitem class="username">root</systemitem> in your home folder you
161 could end up unable to log in again :/ If you untared it in
162 <filename class="directory">/usr</filename> you would find your user
163 account unable to access any file in
164 <filename class="directory">/usr</filename>.
165 </para>
166
167 <para>
168 You can avoid this unpleasantness by
169 <emphasis>not</emphasis> untaring it as
170 <systemitem class="username">root</systemitem>. If you must untar it as
171 <systemitem class="username">root</systemitem> pass the option
172 <option>--no-overwrite-dir</option> to tar. This is the default when you
173 untar as a user but has to be passed as an option when untaring as
174 <systemitem class="username">root</systemitem>:
175 </para>
176 </warning>
177
178<screen role="root"><userinput>tar -xf libreoffice-core-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
179cd libreoffice-core-&libreoffice-dlversion;</userinput></screen>
180
181 <para>
182 Install <application>LibreOffice</application> by running the following
183 commands:
184 </para>
185
186<screen><userinput>patch -Np1 -i ../libreoffice-core-&libreoffice-dlversion;-boost_fix-1.patch &amp;&amp;
187patch -Np1 -i ../libreoffice-core-&libreoffice-dlversion;-poppler_fix-1.patch &amp;&amp;
188./autogen.sh --prefix=/usr \
189 --disable-binfilter \
190 --disable-gconf \
191 --disable-mozilla \
192 --disable-odk \
193 --disable-postgresql-sdbc \
194 --with-system-boost \
195 --with-system-cairo \
196 --with-system-curl \
197 --with-system-db \
198 --with-system-expat \
199 --with-system-gettext \
200 --with-system-icu \
201 --with-system-jpeg \
202 --with-system-libpng \
203 --with-system-libxml \
204 --with-system-neon \
205 --with-system-nss \
206 --with-system-openssl \
207 --with-system-poppler \
208 --with-system-redland \
209 --with-system-zlib \
210 --without-java \
211 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
212./download &amp;&amp;
213mkdir -p ../libreoffice-downloads &amp;&amp;
214cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
215 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
216make</userinput></screen>
217
218 <para>
219 This package does not come with a test suite.
220 </para>
221
222 <para>
223 Now, as the <systemitem class="username">root</systemitem> user:
224 </para>
225
226<screen role="root"><userinput>make install &amp;&amp;
227SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
228for program in base calc draw impress math writer
229do
230 echo '#!/bin/bash' > /usr/bin/${program}
231 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
232 chmod 755 /usr/bin/${program}
233done &amp;&amp;
234unset SOFFICE &amp;&amp;
235ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
236ln -sfv ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
237cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
238for res in 16 32 48 128 256
239do
240 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
241 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
242 /usr/share/icons/hicolor/${res}x${res}/apps
243 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
244 /usr/share/icons/hicolor/${res}x${res}/mimetypes
245done &amp;&amp;
246gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
247 </sect2>
248
249 <sect2 role="commands">
250 <title>Command Explanations</title>
251
252 <para>
253 <option>--enable-gtk3</option>: Add this option if you've installed and
254 want to use <application>Gtk+-3</application>.
255 </para>
256
257 <para>
258 <option>--disable-gstreamer</option>: Add this option if you've not
259 installed <xref linkend="gst-plugins-base"/>.
260 </para>
261
262 <para>
263 <option>--disable-binfilter</option>: These "binfilters" enable
264 <application>LibreOffice</application> to open legacy
265 <application>Star Office</application> format documents. Compiling
266 <application>binfilter</application> requires
267 <application>Java</application>.
268 </para>
269
270 <para>
271 <option>--disable-gconf</option>: Remove this option if you want to
272 compile LibreOffice with GConf support.
273 </para>
274
275 <para>
276 <option>--disable-mozilla</option>: This option stops
277 <application>LibreOffice</application> trying to compile an old version
278 of <application>SeaMonkey</application>.
279 </para>
280
281 <para>
282 <option>--disable-odk</option>: This option disables installing the
283 office development kit. Remove this option if you want to develop a
284 <application>LibreOffice</application> based application.
285 </para>
286
287 <para>
288 <option>--disable-postgresql-sdbc</option>: This option disables compiling
289 LibreOffice with the ability to connect to a PostgreSQL database. If you
290 would like LibreOffice to be able to connect to a PostgreSQL database
291 remove this option. If you have installed PostgreSQL on your system and
292 would like LibreOffice to use that rather than compile its own copy, add
293 the option <option>--with-system-postgresql</option>.
294 </para>
295
296 <para>
297 <option>--with-system- ...</option>: These options prevent
298 <application>LibreOffice</application> trying to compile its own
299 versions of these dependencies. If you've not installed
300 some of the dependencies, remove the corresponding option.
301 </para>
302
303 <para>
304 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
305 tells <application>LibreOffice</application> to use all your CPUs to
306 compile in parallel and speed up the build.
307 </para>
308
309 <para>
310 <option>--with-lang="pt-BR"</option>: This option sets what languages to
311 support. en-US is always included by default. To list several languages,
312 separate them with a space. For all languages, use --with-lang=ALL
313 </para>
314
315 <para>
316 For a list of the available languages, configure it --with-lang=ALL and
317 then after you've run ./download:
318 <command>ls translations/source</command>
319 </para>
320
321 <para>
322 <option>--without-java</option>: This option compiles
323 <application>LibreOffice</application> without
324 <application>Java</application> support.
325 </para>
326
327 <para>
328 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
329 vendor which is mentioned when you click About on the toolbar.
330 </para>
331
332 <para>
333 <command>./download</command>: The build process runs the
334 <command>download</command> script which downloads some 470 MB of
335 tarballs. We run the download script to get it out of the way at the
336 start so we can make a backup copy of the downloaded files.
337 </para>
338
339 <para>
340 <command>mkdir -p ../libreoffice-downloads;
341 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
342 ../libreoffice-downloads</command>: this makes a backup copy
343 of the downloaded files so you don't have to download them again if you
344 decide to recompile <application>LibreOffice</application>. In that case,
345 just start with:
346 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
347 </para>
348
349 <para>
350 <command>for program in base calc draw impress math writer ...</command>:
351 These commands create 6 simple shell scripts in
352 <filename class="directory">/usr/bin</filename> that can be used to launch
353 <application>LibreOffice</application> in its various forms. If you like
354 seeing the <application>LibreOffice</application> splash screen, remove
355 the "--nologo" option.
356 </para>
357
358 <para>
359 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
360 various icons into the hicolor icon theme used by
361 <application>Gtk+</application>.
362 </para>
363
364 <para>
365 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
366 command rebuilds
367 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
368 the new icons.
369 </para>
370
371 </sect2>
372
373 <sect2 role="configuration">
374 <title>Configuring LibreOffice</title>
375
376 <para>
377 If you use a desktop environment like <application>Gnome</application>
378 or <application>KDE</application> and want the programs to show up in the
379 panel's menu, as the <systemitem class="username">root</systemitem> user,
380 create some simple desktop files:
381 </para>
382
383<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
384for program in base calc draw impress math writer
385do echo "[Desktop Entry]
386Encoding=UTF-8
387Type=Application
388Name=${program^}
389Comment=LibreOffice ${program^}
390Icon=${program}
391Exec=${program}
392Categories=Office;Application;
393StartupNotify=true
394Terminal=false" > /usr/share/applications/${program}.desktop
395done &amp;&amp;
396echo "[Desktop Entry]
397Encoding=UTF-8
398Type=Application
399Name=Printer Administration
400Comment=LibreOffice Printer Administration
401Icon=printeradmin
402Exec=printeradmin
403Categories=Office;Printing;Application;
404StartupNotify=true
405Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
406 </sect2>
407
408 <sect2 role="content">
409 <title>Contents</title>
410
411 <segmentedlist>
412 <segtitle>Installed Programs</segtitle>
413 <segtitle>Installed Directory</segtitle>
414
415 <seglistitem>
416 <seg>
417 base, calc, draw, impress, math,
418 printeradmin and writer
419 </seg>
420 <seg>
421 /usr/lib/libreoffice
422 </seg>
423 </seglistitem>
424 </segmentedlist>
425
426 <variablelist>
427 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
428 <?dbfo list-presentation="list"?>
429 <?dbhtml list-presentation="table"?>
430
431 <varlistentry id="base">
432 <term><command>base</command></term>
433 <listitem>
434 <para>
435 is a database manager.
436 </para>
437 <indexterm zone="libreoffice base">
438 <primary sortas="b-base">base</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="calc">
444 <term><command>calc</command></term>
445 <listitem>
446 <para>
447 is a spreadsheet program.
448 </para>
449 <indexterm zone="libreoffice calc">
450 <primary sortas="b-calc">calc</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="draw">
456 <term><command>draw</command></term>
457 <listitem>
458 <para>
459 is a vector graphics editor and diagramming tool.
460 </para>
461 <indexterm zone="libreoffice draw">
462 <primary sortas="b-draw">draw</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="impress">
468 <term><command>impress</command></term>
469 <listitem>
470 <para>
471 can edit and display powerpoint presentations.
472 </para>
473 <indexterm zone="libreoffice impress">
474 <primary sortas="b-impress">impress</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="math">
480 <term><command>math</command></term>
481 <listitem>
482 <para>
483 is a mathematical formula editor.
484 </para>
485 <indexterm zone="libreoffice math">
486 <primary sortas="b-math">math</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="printeradmin">
492 <term><command>printeradmin</command></term>
493 <listitem>
494 <para>
495 is a graphical interface to enable you to change your personal
496 printing preferences, which are saved in
497 <filename>~/.cups/lpoptions</filename>.
498 </para>
499 <indexterm zone="libreoffice printeradmin">
500 <primary sortas="b-printeradmin">printeradmin</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="unopkg">
506 <term><command>unopkg</command></term>
507 <listitem>
508 <para>
509 is a tool to manage <application>LibreOffice</application>
510 extensions from the command line.
511 </para>
512 <indexterm zone="libreoffice unopkg">
513 <primary sortas="b-unopkg">unopkg</primary>
514 </indexterm>
515 </listitem>
516 </varlistentry>
517
518 <varlistentry id="writer">
519 <term><command>writer</command></term>
520 <listitem>
521 <para>
522 is a word processor.
523 </para>
524 <indexterm zone="libreoffice writer">
525 <primary sortas="b-writer">writer</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 </variablelist>
531
532 </sect2>
533
534</sect1>
Note: See TracBrowser for help on using the repository browser.