source: xsoft/office/libreoffice.xml@ 8e2c769

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 8e2c769 was 8e2c769, checked in by Andrew Benton <andy@…>, 12 years ago

Libreoffice tweaks
The download script now downloads the dictionaries, help files and
translations so we don't need to do that by hand.
I think the SBU is an underestimate but I don't have time to run a single
threaded build just now. I'll leave it running tonight and update it with a
more accurate figure tomorrow.

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

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