source: xsoft/office/libreoffice.xml@ f76286d

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 f76286d was f76286d, checked in by Krejzi <krejzi@…>, 12 years ago

Mark Libreoffice as LFS 7.2 checked. Add a patch that fixes compilation with system poppler.

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

  • Property mode set to 100644
File size: 18.4 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;.4.tar.xz">
9 <!ENTITY libreoffice-core-download-ftp " ">
10 <!ENTITY libreoffice-core-md5sum "67cf97e86c75363238a371f64ef5f606">
11 <!ENTITY libreoffice-core-size "102 MB">
12 <!ENTITY libreoffice-buildsize "7.1 GB (446 MB installed)">
13 <!ENTITY libreoffice-time "55 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 OpenOffice.org.
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>Optional patch (required if you have Boost 1.50+): <ulink
79 url="&patch-root;/libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch"/></para>
80 </listitem>
81 <listitem>
82 <para>Optional patch (required if you are using system version of Poppler): <ulink
83 url="&patch-root;/libreoffice-core-&libreoffice-version;.4-poppler_fix-1.patch"/></para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Required</bridgehead>
90 <para role="required">
91 <xref linkend="cups"/>,
92 <xref linkend="curl"/> or <xref linkend="wget"/>,
93 <xref linkend="gperf"/>,
94 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
95 <application>Perl Modules</application>
96 <xref linkend="perl-archive-zip"/> and
97 <xref linkend="perl-xml-parser"/>,
98 <xref linkend="unzip"/>,
99 <xref linkend="which"/> and
100 <xref linkend="zip"/>.
101 </para>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <note>
105 <para>
106 Most of these packages are recommended because if they're not installed,
107 the build process will compile and install its own (often older)
108 version. If you're using <application>GCC 4.7</application>, some of
109 those older packages will fail to compile.
110 </para>
111 </note>
112
113 <para role="recommended">
114 <xref linkend="boost"/>,
115 <xref linkend="db"/>,
116 <xref linkend="expat"/>,
117 <xref linkend="gst-plugins-base"/>,
118 <xref linkend="libjpeg"/>,
119 <xref linkend="libgsf"/>,
120 <xref linkend="libpng"/>,
121 <xref linkend="librsvg"/>,
122 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
123 <xref linkend="neon"/>,
124 <xref linkend="nss"/>,
125 <xref linkend="poppler"/>,
126 <xref linkend="openssl"/> and
127 <xref linkend="redland"/>.
128 </para>
129
130 <bridgehead renderas="sect4">Optional</bridgehead>
131 <para role="optional">
132 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
133 <xref linkend="mysql"/>,
134 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
135 <xref linkend="postgresql"/>,
136 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
137 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
138 <xref linkend="zenity"/>.
139 </para>
140
141 <para condition="html" role="usernotes">
142 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
143 </para>
144 </sect2>
145
146 <sect2 role="installation">
147 <title>Installation of LibreOffice</title>
148
149 <warning>
150 <para>
151 Untaring the libreoffice-core-&libreoffice-version;.4 tarball as
152 <systemitem class="username">root</systemitem> has the curious effect of
153 changing the ownership of the <emphasis>parent</emphasis> directory
154 to a user with numerical id 11012 and with the permissions set to allow
155 read, write and execute for that user only! If you untared as
156 <systemitem class="username">root</systemitem> in your home folder you
157 could end up unable to log in again :/ If you untared it in
158 <filename class="directory">/usr</filename> you would find your user
159 account unable to access any file in
160 <filename class="directory">/usr</filename>.
161 </para>
162
163 <para>
164 You can avoid this unpleasantness by
165 <emphasis>not</emphasis> untaring it as
166 <systemitem class="username">root</systemitem>. If you must untar it as
167 <systemitem class="username">root</systemitem> pass the option
168 <option>--no-overwrite-dir</option> to tar. This is the default when you
169 untar as a user but has to be passed as an option when untaring as
170 <systemitem class="username">root</systemitem>:
171 </para>
172 </warning>
173
174<screen role="root"><userinput>tar -xf libreoffice-core-&libreoffice-version;.4.tar.xz --no-overwrite-dir &amp;&amp;
175cd libreoffice-core-&libreoffice-version;.4</userinput></screen>
176
177 <para>
178 Install <application>LibreOffice</application> by running the following
179 commands:
180 </para>
181
182<screen><userinput>patch -Np1 -i ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch &amp;&amp;
183patch -Np1 -i ../libreoffice-core-&libreoffice-version;.4-poppler_fix-1.patch &amp;&amp;
184./autogen.sh --prefix=/usr \
185 --disable-binfilter \
186 --disable-gconf \
187 --disable-mozilla \
188 --disable-odk \
189 --disable-postgresql-sdbc \
190 --with-system-boost \
191 --with-system-cairo \
192 --with-system-curl \
193 --with-system-db \
194 --with-system-expat \
195 --with-system-gettext \
196 --with-system-icu \
197 --with-system-jpeg \
198 --with-system-libpng \
199 --with-system-libxml \
200 --with-system-neon \
201 --with-system-nss \
202 --with-system-openssl \
203 --with-system-poppler \
204 --with-system-redland \
205 --with-system-zlib \
206 --without-java \
207 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
208./download &amp;&amp;
209mkdir -p ../libreoffice-downloads &amp;&amp;
210cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
211 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
212make</userinput></screen>
213
214 <para>This package does not come with a test suite.</para>
215
216 <para>
217 Now, as the <systemitem class="username">root</systemitem> user:
218 </para>
219
220<screen role="root"><userinput>make install &amp;&amp;
221SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
222for program in base calc draw impress math writer
223do
224 echo '#!/bin/bash' > /usr/bin/${program}
225 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
226 chmod 755 /usr/bin/${program}
227done &amp;&amp;
228unset SOFFICE &amp;&amp;
229ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
230ln -sfv ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
231cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
232for res in 16 32 48 128 256
233do
234 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
235 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
236 /usr/share/icons/hicolor/${res}x${res}/apps
237 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
238 /usr/share/icons/hicolor/${res}x${res}/mimetypes
239done &amp;&amp;
240gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
241 </sect2>
242
243 <sect2 role="commands">
244 <title>Command Explanations</title>
245
246 <para>
247 <command>patch -Np1 -i
248 ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch</command>:
249 Fixes linking to <application>Boost</application> 1.50.
250 </para>
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 </sect2>
371
372 <sect2 role="configuration">
373 <title>Configuring LibreOffice</title>
374
375 <para>
376 If you use a desktop environment like <application>Gnome</application>
377 or <application>KDE</application> and want the programs to show up in the
378 panel's menu, as the <systemitem class="username">root</systemitem> user,
379 create some simple desktop files:
380 </para>
381
382<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
383for program in base calc draw impress math writer
384do echo "[Desktop Entry]
385Encoding=UTF-8
386Type=Application
387Name=${program^}
388Comment=LibreOffice ${program^}
389Icon=${program}
390Exec=${program}
391Categories=Office;Application;
392StartupNotify=true
393Terminal=false" > /usr/share/applications/${program}.desktop
394done &amp;&amp;
395echo "[Desktop Entry]
396Encoding=UTF-8
397Type=Application
398Name=Printer Administration
399Comment=LibreOffice Printer Administration
400Icon=printeradmin
401Exec=printeradmin
402Categories=Office;Printing;Application;
403StartupNotify=true
404Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
405 </sect2>
406
407 <sect2 role="content">
408 <title>Contents</title>
409
410 <segmentedlist>
411 <segtitle>Installed Programs</segtitle>
412 <segtitle>Installed Libraries</segtitle>
413 <segtitle>Installed Directories</segtitle>
414
415 <seglistitem>
416 <seg>
417 base,
418 calc,
419 draw,
420 impress,
421 math,
422 printeradmin and
423 writer.</seg>
424 <seg>
425 hundreds of shared libraries in
426 <filename class="directory">/usr/lib/libreoffice</filename>.
427 </seg>
428 <seg>/usr/lib/libreoffice.</seg>
429 </seglistitem>
430 </segmentedlist>
431
432 <variablelist>
433 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
434 <?dbfo list-presentation="list"?>
435 <?dbhtml list-presentation="table"?>
436
437 <varlistentry id="base">
438 <term><command>base</command></term>
439 <listitem>
440 <para>
441 is a database manager.
442 </para>
443 <indexterm zone="libreoffice base">
444 <primary sortas="b-base">base</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="calc">
450 <term><command>calc</command></term>
451 <listitem>
452 <para>
453 is a spreadsheet program.
454 </para>
455 <indexterm zone="libreoffice calc">
456 <primary sortas="b-calc">calc</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="draw">
462 <term><command>draw</command></term>
463 <listitem>
464 <para>
465 is a vector graphics editor and diagramming tool.
466 </para>
467 <indexterm zone="libreoffice draw">
468 <primary sortas="b-draw">draw</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="impress">
474 <term><command>impress</command></term>
475 <listitem>
476 <para>
477 can edit and display powerpoint presentations.
478 </para>
479 <indexterm zone="libreoffice impress">
480 <primary sortas="b-impress">impress</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="math">
486 <term><command>math</command></term>
487 <listitem>
488 <para>
489 is a mathematical formula editor.
490 </para>
491 <indexterm zone="libreoffice math">
492 <primary sortas="b-math">math</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
497 <varlistentry id="printeradmin">
498 <term><command>printeradmin</command></term>
499 <listitem>
500 <para>
501 is a graphical interface to enable you to change your personal
502 printing preferences, which are saved in
503 <filename>~/.cups/lpoptions</filename>.
504 </para>
505 <indexterm zone="libreoffice printeradmin">
506 <primary sortas="b-printeradmin">printeradmin</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="unopkg">
512 <term><command>unopkg</command></term>
513 <listitem>
514 <para>
515 is a tool to manage <application>LibreOffice</application>
516 extensions from the command line.
517 </para>
518 <indexterm zone="libreoffice unopkg">
519 <primary sortas="b-unopkg">unopkg</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="writer">
525 <term><command>writer</command></term>
526 <listitem>
527 <para>
528 is a word processor.
529 </para>
530 <indexterm zone="libreoffice writer">
531 <primary sortas="b-writer">writer</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535 </variablelist>
536 </sect2>
537</sect1>
Note: See TracBrowser for help on using the repository browser.