LibreOffice-5.0.0

Introduction to LibreOffice

LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org.

This package is known to build and work properly using an LFS-7.7 systemd platform.

Package Information

Additional Downloads

LibreOffice Dependencies

Required

Archive::Zip-1.49, UnZip-6.0, Wget-1.16.3, Which-2.21, and Zip-3.0

Recommended

[Note]

Note

Most of these packages are recommended because if they're not installed, the build process will compile and install its own (often older) version. If you have not installed some of the dependencies listed below, make sure you examine the ./configure --help output for information on switches needed to prevent ./configure to look for them.

Optional

apache-ant-1.9.5, Avahi-0.6.31, BlueZ-5.31, Doxygen-1.8.10 (not relevant if using --disable-odk), GConf-3.2.6, GDB-7.9.1, GTK+-3.16.6, KDELibs-4.14.9, MariaDB-10.0.21, MIT Kerberos V5-1.13.2, NASM-2.11.08, OpenJDK-1.8.0.51, PostgreSQL-9.4.4, SANE-1.0.24, Valgrind-3.10.1, VLC-2.2.1, Zenity-3.14.0, Apache Commons Codec, Apache Commons HttpClient, Apache Commons Lang, Apache Commons Logging, BeanShell, CoinMP, Cppunit, Firebird, GLEW, Hamcrest, Hunspell, Hyphen, IWYU, libabw, libcdr, libcmis, libebook, libexttextcat, libfreehand, liblangtag, libmspub, libmwaw, libodfgen, libpagemaker, librevenge, libvisio, libwpd, libwpg, libwps, lp_solve, mdds, MyThes, OGL-Math, OpenCOLLADA, Orcus, telepathy-glib-0.24.1, and VIGRA

There are many optional dependencies not listed here. They can be found in “download.lst” in the source directory.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libreoffice

Installation of LibreOffice

Create symlinks to tarballs from the source directory so they won't get downloaded again:

install -v -dm755 external/tarballs &&

ln -sfv ../../../libreoffice-dictionaries-5.0.0.5.tar.xz external/tarballs/ &&
ln -sfv ../../../libreoffice-help-5.0.0.5.tar.xz external/tarballs/

If you have downloaded the translations tarball, create a symlink:

ln -sfv ../../../libreoffice-translations-5.0.0.5.tar.xz external/tarballs/
[Note]

Note

During the build process, some packages will be downloaded (including the ones listed as recommended and optional dependencies) if they are not present on the system. Doing so, build time may be different for everyone.

In the rest of the page, locales "fr" and "en-GB" are examples. Change them to suit your needs. You might want to read the "Command Explanations" further below before proceeding.

Prepare LibreOffice for compilation by running the following commands:

sed -e "/gzip -f/d"   \
    -e "s|.1.gz|.1|g" \
    -i bin/distro-install-desktop-integration &&

sed -e "/distro-install-file-lists/d" \
    -i Makefile.in                            &&

sed -e "/ustrbuf/a #include <algorithm>" \
    -i svl/source/misc/gridprinter.cxx        &&

chmod -v +x bin/unpack-sources                &&

./autogen.sh --prefix=/usr               \
             --sysconfdir=/etc           \
             --with-vendor="BLFS"        \
             --with-lang="fr en-GB"      \
             --with-help                 \
             --with-myspell-dicts        \
             --with-alloc=system         \
             --without-java              \
             --without-system-dicts      \
             --disable-gconf             \
             --disable-odk               \
             --disable-postgresql-sdbc   \
             --enable-release-build      \
             --enable-python=system      \
             --with-system-boost         \
             --with-system-clucene       \
             --with-system-cairo         \
             --with-system-curl          \
             --with-system-expat         \
             --with-system-graphite      \
             --with-system-harfbuzz      \
             --with-system-icu           \
             --with-system-jpeg          \
             --with-system-lcms2         \
             --with-system-libatomic_ops \
             --with-system-libpng        \
             --with-system-libxml        \
             --with-system-mesa-headers  \
             --with-system-neon          \
             --with-system-npapi-headers \
             --with-system-nss           \
             --with-system-odbc          \
             --with-system-openldap      \
             --with-system-openssl       \
             --with-system-poppler       \
             --with-system-redland       \
             --with-system-zlib          \
             --with-parallelism=$(getconf _NPROCESSORS_ONLN)

The instructions below will only build the package without running any unit tests. If you prefer to run the unit tests, replace make build with make.

[Note]

Note

The package needs to be built from an X terminal emulator.

Build the package:

make build

Now, as the root user:

make distro-pack-install             &&
install -v -dm755 /usr/share/appdata &&
install -v -m644  sysui/desktop/appstream-appdata/*.xml \
                  /usr/share/appdata

If installed in /opt/libreoffice-5.0.0.5 some additional steps are necessary. Issue the following commands as the rootuser:

if ["$LO_PREFIX" != "/usr" ]; then

   # This symlink is necessary for the desktop menu entries
   ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &&

   # Icons
   for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
      ln -svf $i /usr/share/pixmaps
   done &&

   # Desktop menu entries
   for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
      ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
   done &&

   # Man pages
   for i in $LO_PREFIX/share/man/man1/*; do
      ln -svf $i /usr/share/man/man1/
   done

   unset i
fi

If you have installed desktop-file-utils-0.22, and you wish to update the MIME database, issue, as the root user:

update-desktop-database

Command Explanations

sed -e ...: The first sed prevents compression of the manual pages, the second one prevents install from failing and the third one prevents a build failure by adding a necessary include.

chmod -v +x ...: Fix the unpack script's permissions.

--with-vendor=BLFS: This switch sets BLFS as the vendor which is mentioned when you click "About" on the toolbar.

--with-lang="fr en-GB": This switch sets what languages to support. To list several languages, separate them with a space. For all languages, use --with-lang=ALL.

[Note]

Note

For a list of the available languages, look in solenv/inc/langlist.mk.

--with-help: This switch is used to enable installation of the help files.

--with-myspell-dicts: This switch is used to enable installation of the bundled dictionaries.

--with-alloc=system: This switch tells LibreOffice to use system allocator instead of the internal one.

--without-system-dicts: This switch is used to ensure that the dictionaries installed by this package are being used.

--without-java: This switch disables Java support in LibreOffice.

--disable-gconf: This switch disables compiling LibreOffice with the deprecated GNOME configuration system support.

--disable-odk: This switch disables installing the office development kit. Remove if you want to develop a LibreOffice based application.

--disable-postgresql-sdbc: This switch disables compiling LibreOffice with the ability to connect to a PostgreSQL database. Remove it if you would like LibreOffice to be able to connect to a PostgreSQL database. If you have installed PostgreSQL on your system and would like LibreOffice to use that rather than compile its own copy, use the --with-system-postgresql switch.

--enable-release-build: This switch is used to remove "Beta" or "Dev" from LibreOffice splash screen and "About" menu.

--enable-python=system: This switch tells LibreOffice to use installed Python 3 to build the translations instead of the bundled one.

--with-system-*: These switches prevent LibreOffice from trying to compile its own versions of these dependencies. If you've not installed some of the dependencies, remove the corresponding switches.

--with-parallelism=$(getconf _NPROCESSORS_ONLN): This switch tells LibreOffice to use all your CPUs to compile in parallel and speed up the build.

--enable-gstreamer-0-10: Use this switch if you want to use gst-plugins-base-0.10.36 instead of gst-plugins-base-1.4.5 for the avmedia module.

--disable-gstreamer-1-0: Use this switch if you haven't installed gst-plugins-base-1.4.5.

--enable-gtk3: Use this switch if you want to build the GTK+ 3 integration module.

--enable-kde4: Use this switch if you want to build the KDE integration module.

Contents

Installed Programs: libreoffice, lobase, localc, lodraw, loffice, lofromtemplate, loimpress, lomath, loweb, lowriter, soffice and unopkg
Installed Libraries: None
Installed Directories: /usr/lib/libreoffice

Short Descriptions

lobase

is a database manager.

localc

is a spreadsheet program.

lodraw

is a vector graphics editor and diagramming tool.

loimpress

can edit and display PowerPoint presentations.

lomath

is a mathematical formula editor.

lowriter

is a word processor.

unopkg

is a tool to manage LibreOffice extensions from the command line.

Last updated on 2014-10-30 22:25:41 +0100