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. Because of
this, build time may vary from the published time more than
usual.

Due to the large size of the package, you may prefer to install it
in /opt, instead of /usr. Depending on your choice, replace
<PREFIX> by
/usr or by /opt/libreoffice-4.4.1.2:

export LO_PREFIX=<PREFIX>

For i686 systems, fix a problem introduced by gcc-4.9.0:

patch -Np1 -i ../libreoffice-4.4.1.2-gcc_4_9_0-2.patch

Locales "en-US" and "pt-BR", you will find below, are just
examples; you should 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:

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

--without-system-dicts:
This switch disables use of dictionaries from system paths, so the
ones installed by this package are 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=yes:
This switch enables a Release Build. LibreOffice can be built as a Release Build or
as a Developer Build, because their default installation paths and
user profile paths are different. Developer Build displays the
words "Dev" and "Beta" in several places (e.g, menu and splash
screen).

--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.

--disable-cups: Use this switch if you
don't need printing support.

--disable-dbus: Use this switch if
you've not installed D-Bus-1.8.0 or later. It also disables
Bluetooth support and font install via PackageKit.