source: xsoft/office/libreoffice.xml@ 2beaab8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2beaab8 was b12ae7c, checked in by Pierre Labastie <pieere@…>, 9 years ago

Add Boost patch to libreoffice

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

  • Property mode set to 100644
File size: 29.2 KB
RevLine 
[d2d3fc5]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
[c20bced]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">
[514797f]10 <!ENTITY libreoffice-core-md5sum "0c6381581f93ef7142b00837002755dd">
11 <!ENTITY libreoffice-core-size "160 MB">
[c20bced]12
13 <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
[514797f]14 <!ENTITY libreoffice-dict-md5sum "eaad734b700e4ccc2362097a84392ba0">
15 <!ENTITY libreoffice-dict-size "36 MB">
[c20bced]16
17 <!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
[514797f]18 <!ENTITY libreoffice-help-md5sum "82f2dcd28e6bfe33e0edb480b9c8f8e4">
[c20bced]19 <!ENTITY libreoffice-help-size "1.8 MB">
20
21 <!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
[514797f]22 <!ENTITY libreoffice-translations-md5sum "73711d36f4d16b0e2657367c823e1872">
23 <!ENTITY libreoffice-translations-size "125 MB">
24
25
26 <!ENTITY libreoffice-buildsize "12 GB (647 MB installed)">
27 <!ENTITY libreoffice-time "64.3 SBU with parallelism = 4 (reputedly 202+ SBU with one core)">
[c20bced]28
[76df61c]29 <!-- This package has some peculiarities, some discussed in the text.
30 Two values for SBU and buildsize are given due to the large difference
31 measured by editors, depending on architecture and sometimes installed
32 dependencies (with-system... -->
33
[20f09631]34 <!-- [bdubbs] For version 4.3.2.2 Built on x86_64 using -\-with-parallelism=4 -->
35 <!-- [bdubbs] For version 4.4.2.1 Built on x86_64 using -\-with-parallelism=12 -->
36 <!-- [bdubbs] For version 4.4.4.3 Built on x86_64 using -\-with-parallelism=12 --> <!-- [fernando] For version 4.3.1.2 I've got, for i686, statistcs over the
37 upper bounds for x86_64 of previous versions, thus, temporarily, decided
[5a3365b]38 to use single statistcs, instead of a range.-->
[20f09631]39 <!-- [fernando] For version 4.4.4.3 Built on x86_64 using -\-with-parallelism=4 -->
40 <!-- [fernando] For version 5.0.0.5 Built on x86_64 using -\-with-parallelism=4 -->
[514797f]41 <!-- [fernando] For version 5.0.4.2 Built on x86_64 using -\-with-parallelism=4 -->
[d2d3fc5]42]>
43
[cbdad90b]44<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-dlversion;">
[d2d3fc5]45 <?dbhtml filename="libreoffice.html"?>
46
47 <sect1info>
48 <othername>$LastChangedBy$</othername>
49 <date>$Date$</date>
50 </sect1info>
51
[d2bea743]52 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]53
54 <indexterm zone="libreoffice">
[8c853a1]55 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]56 </indexterm>
57
58 <sect2 role="package">
[fa29663]59 <title>Introduction to LibreOffice</title>
[d2d3fc5]60
61 <para>
[fa29663]62 <application>LibreOffice</application> is a full-featured office suite.
63 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]64 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]65 </para>
66
[c02ea85]67 &lfs78_checked;
[d2d3fc5]68
69 <bridgehead renderas="sect3">Package Information</bridgehead>
70 <itemizedlist spacing="compact">
71 <listitem>
72 <para>
[9e1dd1b]73 Core Download: <ulink url="&libreoffice-core-download-http;"/>
[d2d3fc5]74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Core Download MD5 sum: &libreoffice-core-md5sum;
79 </para>
80 </listitem>
81 <listitem>
82 <para>
83 Core Download size: &libreoffice-core-size;
84 </para>
85 </listitem>
[c20bced]86 <listitem>
87 <para>
[9e1dd1b]88 Estimated disk space required: &libreoffice-buildsize;
[c20bced]89 </para>
90 </listitem>
91 <listitem>
92 <para>
[9e1dd1b]93 Estimated build time: &libreoffice-time;
[c20bced]94 </para>
95 </listitem>
[9e1dd1b]96 </itemizedlist>
97
98 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
99 <itemizedlist spacing="compact">
[c20bced]100 <listitem>
101 <para>
[9e1dd1b]102 Dictionaries: <ulink url="&libreoffice-dict-download-http;"/>
[c20bced]103 </para>
104 </listitem>
[c4e1c2a0]105
[c20bced]106 <listitem>
107 <para>
[9e1dd1b]108 Dictionaries MD5 sum: &libreoffice-dict-md5sum;
[c20bced]109 </para>
110 </listitem>
[c4e1c2a0]111
[c20bced]112 <listitem>
113 <para>
[9e1dd1b]114 Dictionaries size: &libreoffice-dict-size;
[c20bced]115 </para>
116 </listitem>
[c4e1c2a0]117
[d2d3fc5]118 <listitem>
119 <para>
[9e1dd1b]120 Help Files: <ulink url="&libreoffice-help-download-http;"/>
[d2d3fc5]121 </para>
122 </listitem>
[c4e1c2a0]123
[d2d3fc5]124 <listitem>
125 <para>
[9e1dd1b]126 Help Files MD5 sum: &libreoffice-help-md5sum;
[d2d3fc5]127 </para>
128 </listitem>
[c4e1c2a0]129
[c20bced]130 <listitem>
131 <para>
[9e1dd1b]132 Help Files size: &libreoffice-help-size;
[c20bced]133 </para>
134 </listitem>
[c4e1c2a0]135
[c20bced]136 <listitem>
137 <para>
[9e1dd1b]138 Translations: <ulink url="&libreoffice-translations-download-http;"/>
[c20bced]139 </para>
140 </listitem>
[c4e1c2a0]141
[c20bced]142 <listitem>
143 <para>
[9e1dd1b]144 Translations MD5 sum: &libreoffice-translations-md5sum;
[c20bced]145 </para>
146 </listitem>
[c4e1c2a0]147
[c20bced]148 <listitem>
149 <para>
[9e1dd1b]150 Translations size: &libreoffice-translations-size;
[c20bced]151 </para>
152 </listitem>
[b12ae7c]153
[199671b8]154 <listitem>
[efc0d11]155 <para>
[199671b8]156 Required patch to use <xref linkend="boost"/>:
[b12ae7c]157 <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-boost_1_60_0-1.patch"/>
[efc0d11]158 </para>
[b12ae7c]159 </listitem>
[c20bced]160 </itemizedlist>
161
[fa29663]162 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]163
164 <bridgehead renderas="sect4">Required</bridgehead>
165 <para role="required">
[d6d4ea1]166 <xref linkend="perl-archive-zip"/>,
[d97601a]167 <xref linkend="unzip"/>,
[c20bced]168 <xref linkend="wget"/>,
[d6d4ea1]169 <xref linkend="which"/>, and
[c20bced]170 <xref linkend="zip"/>
[d2d3fc5]171 </para>
172
173 <bridgehead renderas="sect4">Recommended</bridgehead>
174 <note>
175 <para>
[601a838]176 Most of these packages are recommended because if they're not installed,
[ceadeab]177 the build process will compile and install its own (often older)
[c20bced]178 version.
[d2d3fc5]179 </para>
180 </note>
181
182 <para role="recommended">
[b12ae7c]183 <xref linkend="boost"/> <!--(currently, broken with boost-1.60.0)-->,
[7f5a5884]184 <xref linkend="clucene"/>,
[87dfe6b]185 <xref linkend="cups"/>,
[c20bced]186 <xref linkend="curl"/>,
[059ff67]187 <xref linkend="dbus-glib"/>,
[76df61c]188 <xref linkend="libjpeg"/>,
189 <xref linkend="glu"/>,
[2a75b9b]190 <xref linkend="graphite2"/>,
[c20bced]191 <xref linkend="gst10-plugins-base"/>,
[e6ff713]192 <xref linkend="gtk2"/>,
[2a75b9b]193 <xref linkend="harfbuzz"/>,
[efc0d11]194 <xref linkend="icu"/>,
[c20bced]195 <xref linkend="lcms2"/>,
[d2d3fc5]196 <xref linkend="librsvg"/>,
[c20bced]197 <xref linkend="libxml2"/> and
198 <xref linkend="libxslt"/>,
[7a395d1]199 <xref linkend="mesa"/>,
[d2d3fc5]200 <xref linkend="neon"/>,
[fd65789]201 <xref linkend="npapi-sdk"/>,
[d2d3fc5]202 <xref linkend="nss"/>,
[86d09e6]203 <xref linkend="openldap"/> (if connecting to an LDAP server),
[037fc0be]204 <xref linkend="openssl"/> or
205 <xref linkend="gnutls"/>,
[f76286d]206 <xref linkend="poppler"/>,
[89e6d61]207 <xref linkend="python3"/>,
[d6d4ea1]208 <xref linkend="redland"/>, and
[c20bced]209 <xref linkend="unixodbc"/>
[d2d3fc5]210 </para>
211
212 <bridgehead renderas="sect4">Optional</bridgehead>
213 <para role="optional">
[037fc0be]214 <xref linkend="apache-ant"/>,
[4469169]215 <xref linkend="avahi"/>,
[c20bced]216 <xref linkend="bluez"/>,
[a76bd33]217 <xref linkend="desktop-file-utils"/>,
[4469169]218 <xref linkend="doxygen"/> (not relevant if using --disable-odk),
[037fc0be]219 <xref linkend="GConf"/>,
[f4bb9987]220 <xref linkend="gdb"/>,
[a76bd33]221 <xref linkend="gtk3"/> (see <quote>Command Explanations</quote>),
[c20bced]222 <xref linkend="kdelibs"/>,
[4469169]223 <xref linkend="libatomic_ops"/>,
[b33ea6fa]224 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
225 <xref linkend="mitkrb"/>,
[037fc0be]226 <xref linkend="nasm"/>,
[b33ea6fa]227 <xref linkend="openjdk"/>,
228 <xref linkend="postgresql"/>,
229 <xref linkend="sane"/>,
[037fc0be]230 <xref linkend="valgrind"/>,
[b33ea6fa]231 <xref linkend="vlc"/>,
[037fc0be]232 <ulink url="https://commons.apache.org/proper/commons-codec/">Apache Commons Codec</ulink>,
233 <ulink url="https://hc.apache.org/httpclient-3.x/">Apache Commons HttpClient</ulink>,
234 <ulink url="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</ulink>,
235 <ulink url="https://commons.apache.org/proper/commons-logging/">Apache Commons Logging</ulink>,
236 <ulink url="http://www.beanshell.org/">BeanShell</ulink>,
[64812ba3]237 <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
[b33ea6fa]238 <ulink url="http://sourceforge.net/projects/cppunit/">Cppunit</ulink>,
[037fc0be]239 <ulink url="http://www.firebirdsql.org/">Firebird</ulink>,
[64419b7]240 <ulink url="http://downloads.sourceforge.net/glew/">glew (OpenGL Extension Wrangler Library)</ulink>,
[037fc0be]241 <ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/">Gnome VFS</ulink>,
242
[64812ba3]243 <ulink url="https://code.google.com/p/hamcrest/">hamcrest</ulink>,
[b33ea6fa]244 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
245 <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
[64812ba3]246 <ulink url="https://code.google.com/p/include-what-you-use/">iwyu</ulink>,
[5892480]247 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
248 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
[83bc811e]249 <ulink url="http://sourceforge.net/projects/libcmis/">libcmis</ulink>,
[b33ea6fa]250 <ulink url="http://www.sourceforge.net/projects/libebook/">libebook</ulink>,
[0191062b]251 <ulink url="http://www.freedesktop.org/wiki/Software/libexttextcat/">libexttextcat</ulink>,
[5892480]252 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
[0191062b]253 <ulink url="http://tagoh.bitbucket.org/liblangtag/">liblangtag</ulink>,
[5892480]254 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
[b33ea6fa]255 <ulink url="http://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
[885af2e]256 <ulink url="http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
[5892480]257 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
[64419b7]258 <ulink url="http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
[5892480]259 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
[b33ea6fa]260 <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
261 <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink>,
262 <ulink url="http://libwps.sourceforge.net/">libwps</ulink>,
263 <ulink url="http://lpsolve.sourceforge.net/">lp_solve</ulink>,
[0191062b]264 <ulink url="http://code.google.com/p/multidimalgorithm/">mdds</ulink>,
[d97601a]265 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[64419b7]266 <ulink url="http://sourceforge.net/projects/ogl-math/">ogl-math - OpenGL Mathematics (GLM)</ulink>,
[64812ba3]267 <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
[037fc0be]268 <ulink url="https://gitlab.com/orcus/orcus">Orcus</ulink>,
269 <ulink url="http://telepathy.freedesktop.org/releases/telepathy-glib/">telepathy-glib</ulink>,
270 <ulink url="https://ukoethe.github.io/vigra/">VIGRA</ulink>, and
[665ac79f]271 <ulink url="&gnome-download-http;/zenity/">Zenity</ulink>
[d2d3fc5]272 </para>
273
[f4bb9987]274 <para>There are many optional dependencies not listed here. They can be
275 found in <quote>download.lst</quote> (source directory).
276 </para>
277
[d2d3fc5]278 <para condition="html" role="usernotes">
279 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
280 </para>
281 </sect2>
282
283 <sect2 role="installation">
[fa29663]284 <title>Installation of LibreOffice</title>
[5153eb9]285<!--
[d97601a]286 <warning>
287 <para>
[c20bced]288 Untaring the libreoffice-&libreoffice-dlversion; tarball as
[d97601a]289 <systemitem class="username">root</systemitem> has the curious effect of
290 changing the ownership of the <emphasis>parent</emphasis> directory
291 to a user with numerical id 11012 and with the permissions set to allow
292 read, write and execute for that user only! If you untared as
293 <systemitem class="username">root</systemitem> in your home folder you
[c20bced]294 could end up unable to log in again. If you untared it in
[d97601a]295 <filename class="directory">/usr</filename> you would find your user
296 account unable to access any file in
[ceadeab]297 <filename class="directory">/usr</filename>.
[d97601a]298 </para>
299
300 <para>
301 You can avoid this unpleasantness by
302 <emphasis>not</emphasis> untaring it as
303 <systemitem class="username">root</systemitem>. If you must untar it as
304 <systemitem class="username">root</systemitem> pass the option
[5153eb9]305 <option>-\-no-overwrite-dir</option> to tar. This is the default when you
[d97601a]306 untar as a user but has to be passed as an option when untaring as
307 <systemitem class="username">root</systemitem>:
308 </para>
[5153eb9]309 </warning>-->
[d97601a]310
[e43a76ca]311 <!-- I was able to build over ssh 2015-03-24 - bdubbs
[2dc8feb]312 <note>
313 <para>
[c06f346b]314 LibreOffice must be built in a graphical environment - the build will
315 fail otherwise.
[2dc8feb]316 </para>
[e43a76ca]317 </note>-->
[2dc8feb]318
[89e6d61]319 <important>
[7d38d9a]320 <para>
321 Unlike the other packages, we suppose that you have not yet unpacked the
322 package. This is so because the <option>--no-overwrite-dir</option> switch
323 is needed in case you unpack as the
324 <systemitem class="username">root</systemitem> user.
325 </para>
[89e6d61]326 </important>
[7d38d9a]327
328<screen><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
[c20bced]329cd libreoffice-&libreoffice-dlversion;</userinput></screen>
[d97601a]330
[d2d3fc5]331 <para>
[7f380f4]332 Create symlinks to tarballs from the source directory so they won't
333 get downloaded again:
[d2d3fc5]334 </para>
335
[420c072]336<screen><userinput>install -dm755 external/tarballs &amp;&amp;
[89e6d61]337ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &amp;&amp;
338ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]339
[ed2cf3c]340 <para>
341 If you have downloaded the translations tarball, create a symlink:
342 </para>
343
[89e6d61]344<screen><userinput>ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]345
[c20bced]346 <note>
347 <para>
348 During the build process, some packages will be downloaded (including
349 the ones listed as recommended and optional dependencies) if they are
[89e6d61]350 not present on the system. Because of this, build time may vary from the
351 published time more than usual.
[c20bced]352 </para>
353 </note>
[0d7900a]354
[0c77b5ab]355 <para>
356 Due to the large size of the package, you may prefer to install it in
[d83f555]357 <filename class="directory">/opt</filename>, instead of
[14ea7e8]358 <filename class="directory">/usr</filename>. Depending on your choice,
359 replace <replaceable>&lt;PREFIX&gt;</replaceable> by
360 <filename class="directory">/usr</filename> or by
[0c77b5ab]361 <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
362 </para>
363
364<screen><userinput>export LO_PREFIX=<replaceable>&lt;PREFIX&gt;</replaceable></userinput></screen>
[b12ae7c]365
[199671b8]366 <para>
367 Fix build failures introduced by <application>boost-&boost-version;</application>:
[efc0d11]368 </para>
369
[b12ae7c]370<screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-boost_1_60_0-1.patch</userinput></screen>
[199671b8]371
[7f380f4]372 <para>
[d2bea743]373 Locales "fr" and "en-GB", you will find below, are just examples; you
[7f380f4]374 should change them to suit your needs - you might want to read the
375 "Command Explanations", further below, before proceeding.
376 </para>
377
[0c77b5ab]378 <para>
379 Prepare <application>LibreOffice</application> for compilation by running
380 the following commands:
[d2d3fc5]381 </para>
382
[64812ba3]383<screen><userinput>sed -e "/gzip -f/d" \
[c20bced]384 -e "s|.1.gz|.1|g" \
[7f380f4]385 -i bin/distro-install-desktop-integration &amp;&amp;
[ed2cf3c]386
[5153eb9]387sed -e "/distro-install-file-lists/d" -i Makefile.in &amp;&amp;
[514797f]388<!--
[64812ba3]389sed -e "/ustrbuf/a #include &lt;algorithm&gt;" \
[514797f]390 -i svl/source/misc/gridprinter.cxx &amp;&amp;-->
[64812ba3]391
[7f380f4]392chmod -v +x bin/unpack-sources &amp;&amp;
[14ea7e8]393
[0c77b5ab]394./autogen.sh --prefix=$LO_PREFIX \
[14ea7e8]395 --sysconfdir=/etc \
396 --with-vendor="BLFS" \
[d2bea743]397 --with-lang="fr en-GB" \
[14ea7e8]398 --with-help \
[7f380f4]399 --with-myspell-dicts \
[14ea7e8]400 --with-alloc=system \
401 --without-java \
[7f380f4]402 --without-system-dicts \
[14ea7e8]403 --disable-gconf \
404 --disable-odk \
405 --disable-postgresql-sdbc \
406 --enable-release-build=yes \
[5153eb9]407 --enable-python=system \
[b12ae7c]408 --with-system-boost \
[14ea7e8]409 --with-system-clucene \
410 --with-system-cairo \
411 --with-system-curl \
412 --with-system-expat \
[2a75b9b]413 --with-system-graphite \
[14ea7e8]414 --with-system-harfbuzz \
[3d3bcee]415 --with-system-icu \
[14ea7e8]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 \
[fd65789]422 --with-system-npapi-headers \
[14ea7e8]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 \
[c20bced]430 --with-parallelism=$(getconf _NPROCESSORS_ONLN)</userinput></screen>
[ceadeab]431
[d2d3fc5]432 <para>
[c20bced]433 The instructions below will only build the package without running
434 any unit tests. If you prefer to run the unit tests, replace
[f2f63338]435 <command>make build</command> with <command>make</command>.
[d2d3fc5]436 </para>
437
438 <para>
[e43a76ca]439 Build the package <!--(remember that it must be done in a graphical
440 environment)-->:
[d2d3fc5]441 </para>
442
[c20bced]443<screen><userinput>make build</userinput></screen>
[d2d3fc5]444
445 <para>
[c20bced]446 Now, as the <systemitem class="username">root</systemitem> user:
[d2d3fc5]447 </para>
448
[f0cd0274]449<screen role="root"><userinput>make distro-pack-install &amp;&amp;
450install -v -m755 -d $LO_PREFIX/share/appdata &amp;&amp;
[14ea7e8]451install -v -m644 sysui/desktop/appstream-appdata/*.xml \
[0c77b5ab]452 $LO_PREFIX/share/appdata</userinput></screen>
[c20bced]453
[d83f555]454 <para>
[cbdad90b]455 If installed in <filename
456 class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>
[64812ba3]457 some additional steps are necessary. Issue the following commands, as
458 <systemitem class="username">root</systemitem> user:
[d83f555]459 </para>
460
[cbdad90b]461<screen role="root"><userinput>if [ "$LO_PREFIX" != "/usr" ]; then
[89e6d61]462
[64812ba3]463 # This symlink is necessary for the desktop menu entries
[e43a76ca]464 ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &amp;&amp;
[cbdad90b]465
[64812ba3]466 # Icons
[20f09631]467 mkdir -vp /usr/share/pixmaps
[ff7ea587]468 for i in $LO_PREFIX/share/icons/hicolor/32x32/application/*; do
[64812ba3]469 ln -svf $i /usr/share/pixmaps
[defca61]470 done &amp;&amp;
[cbdad90b]471
[64812ba3]472 # Desktop menu entries
[e43a76ca]473 for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
474 ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
475 done &amp;&amp;
[64812ba3]476
477 # Man pages
478 for i in $LO_PREFIX/share/man/man1/*; do
[e43a76ca]479 ln -svf $i /usr/share/man/man1/
[5a3365b]480 done
481
[e43a76ca]482 unset i
[a76bd33]483fi</userinput></screen>
[64812ba3]484
[a76bd33]485 <para>
486 If you have installed <xref linkend="desktop-file-utils"/>, and you wish
487 to update the MIME database, issue, as the <systemitem class="username">
488 root</systemitem> user:
489 </para>
490
491<screen role="root"><userinput>update-desktop-database</userinput></screen>
[d83f555]492
[514797f]493 <para>
494 The suite and main modules can be started from the menu. From a terminal,
495 the suite can be started with <command>libreoffice</command> command and
496 the modules with <command>libreoffice
497 --<replaceable>&lt;module&gt;</replaceable></command> command,
498 respectively, where <replaceable>&lt;module&gt;</replaceable> is one of
499 base, calc, draw, impress, math or writer. Modules cannot be started using
500 their shell starting script names (see "Installed Programs", below), if
501 LO_PREFIX is other than <filename class='directory'>/user</filename>,
502 unless <filename class='directory'>$LO_PREFIX/bin</filename> directory is
503 appended to the PATH.
504 </para>
505
[c20bced]506 </sect2>
507
508 <sect2 role="commands">
509 <title>Command Explanations</title>
[4c796cf]510
[d2d3fc5]511 <para>
[89e6d61]512 <command>sed -e ...</command>: The first sed prevents compression of the
[514797f]513 manual pages, the second one prevents install from failing<!-- and the third
[64812ba3]514 one includes a missing header without which <command>make build</command>
[514797f]515 fails-->.
[ed2cf3c]516 </para>
517
518 <para>
[ffc716b]519 <command>chmod -v +x ...</command>: Fix the unpack script's permissions.
[d2d3fc5]520 </para>
521
522 <para>
[ed2cf3c]523 <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
[5030bab]524 the vendor which is mentioned when you click "About" on the toolbar.
[d2d3fc5]525 </para>
[4c796cf]526
[ed2cf3c]527 <para>
[d2bea743]528 <parameter>--with-lang="fr en-GB"</parameter>: This switch sets
[ffc716b]529 what languages to support. To list several languages, separate them with
530 a space. For all languages, use
531 <parameter>--with-lang=ALL</parameter>.
[ed2cf3c]532 </para>
533
[7f380f4]534 <note>
535 <para>
[01c0bb8]536 For a list of the available languages, look in
537 <filename>solenv/inc/langlist.mk</filename>.
[7f380f4]538 </para>
539 </note>
[ffc716b]540
541 <para>
542 <parameter>--with-help</parameter>: Without this switch, the help files
543 are not built.
[d2d3fc5]544 </para>
545
[7f380f4]546 <para>
547 <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
548 dictionaries to the <application>LibreOffice</application> installation
549 set.
550 </para>
551
[d2d3fc5]552 <para>
[c20bced]553 <parameter>--with-alloc=system</parameter>: This switch tells
554 <application>LibreOffice</application> to use system allocator
555 instead of the internal one.
[d2d3fc5]556 </para>
557
[199671b8]558<!-- <para>
559 <parameter>\-\-without-system-boost</parameter>: This switch disables use
[28370fe]560 of system boost, so bundled one is used, because currently, the build is
561 broken with <xref linkend="boost"/>.
[199671b8]562 </para> -->
[28370fe]563
[7f380f4]564 <para>
565 <parameter>--without-system-dicts</parameter>: This switch disables use
566 of dictionaries from system paths, so the ones installed by this package
567 are used.
568 </para>
569
[d2d3fc5]570 <para>
[92b7b3a]571 <parameter>--without-java</parameter>: This switch disables
[c20bced]572 <application>Java</application> support in
573 <application>LibreOffice</application>.
[5b9edb4]574 </para>
575
576 <para>
[92b7b3a]577 <parameter>--disable-gconf</parameter>: This switch disables compiling
[c20bced]578 <application>LibreOffice</application> with the deprecated
579 <application>GNOME</application> configuration system support.
[d2d3fc5]580 </para>
581
582 <para>
[92b7b3a]583 <parameter>--disable-odk</parameter>: This switch disables installing the
[c20bced]584 office development kit. Remove if you want to develop a
585 <application>LibreOffice</application> based application.
[d2d3fc5]586 </para>
587
588 <para>
[7f380f4]589 <parameter>--disable-postgresql-sdbc</parameter>: This switch disables
590 compiling <application>LibreOffice</application> with the ability to
591 connect to a <application>PostgreSQL</application> database. Remove it if
592 you would like <application>LibreOffice</application> to be able to
593 connect to a <application>PostgreSQL</application> database. If you have
594 installed <application>PostgreSQL</application> on your system and would
595 like <application>LibreOffice</application> to use that rather than
596 compile its own copy, use the <option>--with-system-postgresql</option>
597 switch.
[d2d3fc5]598 </para>
[5a3365b]599
[4469169]600 <para>
601 <parameter>--enable-release-build=yes</parameter>: This switch enables a
[7f380f4]602 Release Build. <application>LibreOffice</application> can be built as a
603 Release Build or as a Developer Build, because their default installation
604 paths and user profile paths are different. Developer Build displays the
605 words "Dev" and "Beta" in several places (e.g, menu and splash screen).
[4469169]606 </para>
[d2d3fc5]607
608 <para>
[c20bced]609 <parameter>--enable-python=system</parameter>: This switch tells
610 <application>LibreOffice</application> to use installed
[7f380f4]611 <application>Python 3</application> to build the translations instead of
612 the bundled one.
[d2d3fc5]613 </para>
614
615 <para>
[92b7b3a]616 <parameter>--with-system-*</parameter>: These switches prevent
[c20bced]617 <application>LibreOffice</application> from trying to compile its own
618 versions of these dependencies. If you've not installed some of the
619 dependencies, remove the corresponding switches.
[d2d3fc5]620 </para>
[8c853a1]621
[c20bced]622 <para>
[7f380f4]623 <parameter>--with-parallelism=$(getconf _NPROCESSORS_ONLN)</parameter>:
624 This switch tells <application>LibreOffice</application> to use all your
[c20bced]625 CPUs to compile in parallel and speed up the build.
626 </para>
627
[87dfe6b]628 <para>
629 <option>--disable-cups</option>: Use this switch if you don't need
630 printing support.
631 </para>
632
[54666831]633 <para>
[7f380f4]634 <option>--disable-dbus</option>: Use this switch if you've not installed
635 D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
636 via PackageKit.
[54666831]637 </para>
638
[c20bced]639 <para>
[64812ba3]640 <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
641 installed <xref linkend="gst10-plugins-base"/>.
[7f380f4]642 </para>
643
644 <para>
645 <option>--enable-gtk3</option>: Use this switch if you want to build the
[64812ba3]646 <application>GTK+ 3</application> integration module. This is
647 experimental and may not work.
[c20bced]648 </para>
[d2d3fc5]649
650 <para>
[7f380f4]651 <option>--enable-kde4</option>: Use this switch if you want to build the
652 <application>KDE</application> integration module.
[d2d3fc5]653 </para>
654
655 </sect2>
656
657 <sect2 role="content">
658 <title>Contents</title>
659
660 <segmentedlist>
661 <segtitle>Installed Programs</segtitle>
[c3c56b2]662 <segtitle>Installed Libraries</segtitle>
[8c853a1]663 <segtitle>Installed Directory</segtitle>
[d2d3fc5]664
665 <seglistitem>
[4c796cf]666 <seg>
[c20bced]667 libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
[4469169]668 loimpress, lomath, loweb, lowriter, soffice and unopkg;
669 several programs under
[0c77b5ab]670 $LO_PREFIX/lib/libreoffice/program
[8c853a1]671 </seg>
[c3c56b2]672 <seg>
[4469169]673 several libraries under
[ff7ea587]674 $LO_PREFIX/lib/libreoffice/program
[c3c56b2]675 </seg>
[d2d3fc5]676 <seg>
[0c77b5ab]677 $LO_PREFIX/lib/libreoffice
[d2d3fc5]678 </seg>
679 </seglistitem>
680 </segmentedlist>
681
682 <variablelist>
683 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
684 <?dbfo list-presentation="list"?>
685 <?dbhtml list-presentation="table"?>
686
[514797f]687 <varlistentry id="libreoffice-suite">
688 <term><command>libreoffice (or soffice)</command></term>
689 <listitem>
690 <para>
691 is the main libreofice suite (symlink to
692 $LO_PREFIX/lib/libreoffice/program/soffice).
693 </para>
694 <indexterm zone="libreoffice libreoffice-suite">
695 <primary sortas="b-libreoffice-suite">libreoffice-suite</primary>
696 </indexterm>
697 </listitem>
698 </varlistentry>
699
[c20bced]700 <varlistentry id="lobase">
701 <term><command>lobase</command></term>
[d2d3fc5]702 <listitem>
703 <para>
[514797f]704 is the database manager module shell starting script.
[d2d3fc5]705 </para>
[c20bced]706 <indexterm zone="libreoffice lobase">
707 <primary sortas="b-lobase">lobase</primary>
[d2d3fc5]708 </indexterm>
709 </listitem>
710 </varlistentry>
711
[c20bced]712 <varlistentry id="localc">
713 <term><command>localc</command></term>
[d2d3fc5]714 <listitem>
715 <para>
[514797f]716 is the spreadsheet module shell starting script.
[d2d3fc5]717 </para>
[c20bced]718 <indexterm zone="libreoffice localc">
719 <primary sortas="b-localc">localc</primary>
[d2d3fc5]720 </indexterm>
721 </listitem>
722 </varlistentry>
723
[c20bced]724 <varlistentry id="lodraw">
725 <term><command>lodraw</command></term>
[d2d3fc5]726 <listitem>
727 <para>
[514797f]728 is the vector graphics editor and diagramming tool module shell
729 starting script.
[d2d3fc5]730 </para>
[c20bced]731 <indexterm zone="libreoffice lodraw">
732 <primary sortas="b-lodraw">lodraw</primary>
[d2d3fc5]733 </indexterm>
734 </listitem>
735 </varlistentry>
736
[c20bced]737 <varlistentry id="loimpress">
738 <term><command>loimpress</command></term>
[d2d3fc5]739 <listitem>
740 <para>
[514797f]741 is the (PowerPoint) presentations editor and displayer
742 module shell starting script.
[d2d3fc5]743 </para>
[c20bced]744 <indexterm zone="libreoffice loimpress">
745 <primary sortas="b-loimpress">loimpress</primary>
[d2d3fc5]746 </indexterm>
747 </listitem>
748 </varlistentry>
749
[c20bced]750 <varlistentry id="lomath">
751 <term><command>lomath</command></term>
[d2d3fc5]752 <listitem>
753 <para>
[514797f]754 is the mathematical formula editor module shell starting script.
[d2d3fc5]755 </para>
[c20bced]756 <indexterm zone="libreoffice lomath">
757 <primary sortas="b-lomath">lomath</primary>
[d2d3fc5]758 </indexterm>
759 </listitem>
760 </varlistentry>
761
[c20bced]762 <varlistentry id="lowriter">
763 <term><command>lowriter</command></term>
[2511f83]764 <listitem>
765 <para>
[514797f]766 is the word processor module shell starting script.
[2511f83]767 </para>
[c20bced]768 <indexterm zone="libreoffice lowriter">
769 <primary sortas="b-lowriter">lowriter</primary>
[2511f83]770 </indexterm>
771 </listitem>
772 </varlistentry>
773
[8d5cd1bb]774 <varlistentry id="unopkg">
775 <term><command>unopkg</command></term>
776 <listitem>
777 <para>
[fa29663]778 is a tool to manage <application>LibreOffice</application>
[514797f]779 extensions from the command line shell starting script.
[8d5cd1bb]780 </para>
781 <indexterm zone="libreoffice unopkg">
782 <primary sortas="b-unopkg">unopkg</primary>
783 </indexterm>
784 </listitem>
785 </varlistentry>
786
[d2d3fc5]787 </variablelist>
[8c853a1]788
[d2d3fc5]789 </sect2>
[8c853a1]790
[d2d3fc5]791</sect1>
Note: See TracBrowser for help on using the repository browser.