source: xsoft/office/libreoffice.xml@ d2d3fc5

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

Adding Libre Office 3.5.2.2
This isn't finished. I still need to work on the dependencies

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

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