README 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. LibreOffice is a productivity suite that is compatible with other major
  2. office suites, and available on a variety of platforms. It is free
  3. software and therefore free to download, use and distribute.
  4. This script builds a Slackware package from the official source
  5. distributed by The Document Foundation.
  6. The provided swlodc.sh script can test if the auto detected dependency
  7. variables in the sSlackBuild are still sane compared to the current
  8. build environment.
  9. If the $JAVA_HOME environment variable is set according to the
  10. instructons at https://docs.slackware.com/howtos:software:java then
  11. java will be used. Otherwise LibreOffice will build without java.
  12. To build libreoffice without java even if $JAVA_HOME is set then use:
  13. JAVA="no" ./libreoffice.SlackBuild
  14. To disable building with all system libraries and use internal libaries
  15. provided by LibreOffice instead use:
  16. SYSTEM_LIBS="no" ./libreoffice.SlackBuild
  17. or to disable libaries not included in the Slackware main tree use:
  18. SBO_LIBS="no" ./libreoffice.SlackBuild
  19. LibreOffice uses several gb of space to compile, it is recommended to
  20. make sure the $TMP directory has enough space before proceeding. It can
  21. be set with:
  22. TMP="/tmp/SBO" ./libreoffice.SlackBuild
  23. If the additional source files are not downloaded then LibreOffice will
  24. download any sources it requires from the upstream LibreOffice server.
  25. This will require a network connection during the build process.
  26. LibreOffice can be installed to /opt/libreoffice instead of /usr with:
  27. OPT="yes" ./libreoffice.SlackBuild
  28. By default LibreOffice will compile with one job as compiling can be
  29. intensive on the cpu. To set the number of make jobs higher use:
  30. NUMBJOBS="2" ./libreoffice.SlackBuild
  31. LibreOffice will try compile with ccache if available, to effectively
  32. use it the cache size has to be at least 8 gb without debug symbols.
  33. With debug symbols around 32 gb of space will be required. To disable
  34. using the ccache use:
  35. CCACHE="no" ./libreoffice.SlackBuild
  36. To build the myspell dictionaries use:
  37. DICT="yes" ./libreoffice.SlackBuild
  38. To build the local help, HTML local help, or the HTML online help use:
  39. HELP="yes" ./libreoffice.SlackBuild
  40. or
  41. HELP="html" ./libreoffice.SlackBuild
  42. or
  43. HELP="online" ./libreoffice.SlackBuild
  44. LibreOffice will use en-US, to install additional languages use:
  45. LANGUAGES="es sv da ja sk" ./libreoffice.SlackBuild
  46. or
  47. LANGUAGES="all" ./libreoffice.SlackBuild
  48. The supported language codes can be found here:
  49. https://wiki.documentfoundation.org/Language_support_of_LibreOffice
  50. Possible themes are:
  51. breeze, breeze_dark, breeze_svg, colibre, colibre_svg, elementary,
  52. elementary_svg, karasa_jaga, sifr, sif_svg, sifr_dark, tango
  53. Themes can be chosen with:
  54. THEME="breeze tango" ./libreoffice.SlackBuild
  55. LibreOffice will use the system's python3 if it is installed. To
  56. disable, use an internal or fully internal python use:
  57. PYTHON="no" ./libreoffice.SlackBuild
  58. or
  59. PYTHON="internal" ./libreoffice.SlackBuild
  60. or
  61. PYTHON="full" ./libreoffice.SlackBuild
  62. To build with the gstreamer 0.10 avmedia backend use:
  63. GSTREAMER="yes" ./libreoffice.SlackBuild
  64. To disable building the gstreamer 1.0 avmedia backend use:
  65. GSTREAMER1="no" ./libreoffice.SlackBuild
  66. To disable using the Gtk+ 2.0 or Gtk+ 3.0 vclplugs use:
  67. GTK="no" ./libreoffice.SlackBuild
  68. or
  69. GTK3="no" ./libreoffice.SlackBuild
  70. Openssl will be the default TLS/SSL and cryptographic implementation.
  71. Using openssl will not restrict usage of nss while choosing nss will
  72. restrict openssl. This does not apply to for depending libraries like
  73. "neon". To choose the TLS/SSL implementation use:
  74. TLS="openssl" ./libreoffice.SlackBuild
  75. or
  76. TLS="nss" ./libreoffice.SlackBuild
  77. The defualt webdav implementation will be neon and can be disabled with:
  78. NEON="no" ./libreoffice.SlackBuild
  79. Alternatively libreoffice can use serf or disable webdav with:
  80. WEB="serf" ./libreoffice.SlackBuild
  81. or
  82. WEB="no" ./libreoffice.Slackbuild
  83. To build the office development kit (ODK) use:
  84. ODK="yes" ./libreoffice.SlackBuild
  85. If the odk was built doxygen documentation can be enabled with:
  86. DOXYGEN="yes" ./libreoffice.SlackBuild
  87. To build with debug symbols use:
  88. DEBUG="yes" ./libreoffice.SlackBuild
  89. or
  90. DEBUG="dbg" ./libreoffice.SlackBuild
  91. or
  92. DEBUG="symbols" ./libreoffice.Slackbuild
  93. This will enable the debugging information or include debugging symbols
  94. while preserving optimizations. When using "deb" it will make the build
  95. ABI incompatible with builds not using "dbg". Build with debug support
  96. will take up a lot of space.
  97. To perform additional checks during building use:
  98. COMPILER="yes" ./libreoffice.SlackBuild
  99. This will be enabled automatically by using "dbg".
  100. To make SAL_INFO and SAL_WARN calls do something even in a
  101. non-debug build use:
  102. SAL="yes" ./libreoffice.SlackBuild
  103. To disable CVE tests from being executed use:
  104. CVE="no" ./libreoffice.SlackBuild
  105. To turn -werror warnings into errors use:
  106. WERROR="yes" ./libreoffice.SlackBuild
  107. To statically disable some runtime optimizations like rtl/alloc.h or the
  108. JVM JIT use:
  109. RUNTIME="no" ./libreoffice.SlackBuild
  110. Introspection can be enabled or disabled with:
  111. INTROSPECTION="no" ./libreoffice.SlackBuild
  112. or
  113. INTROSPECTION="auto" ./libreoffice.SlackBuild
  114. or
  115. INTROSPECTION="yes" ./libreoffice.SlackBuild
  116. Precompiled header support for C++ can be set:
  117. PCH="yes" ./libreoffice.SlackBuild
  118. or
  119. PCH="no" ./libreoffice.SlackBuild
  120. or
  121. PCH="system" ./libreoffice.SlackBuild
  122. or
  123. PCH="base" ./libreoffice.SlackBuild
  124. or
  125. PCH="normal" ./libreoffice.SlackBuild
  126. or
  127. PCH="full" ./libreoffice.SlackBuild
  128. By default this script will install a relatively default build with
  129. upstream settings. many optional flags can be set by passing variables
  130. to the script (VAR="yes/no" ./libreoffice.SlackBuild):
  131. AVAHI="yes" - requires avahi
  132. BREAKPAD="yes" - enable breakpad for crash reporting
  133. BUNDLE="yes" - bundle the MariaDB Connector/LibreOffice extension when
  134. using MariaDB/MYSQL system libraries
  135. CT2N="yes" - enable the ConvertTextToNumber extension
  136. EOT="yes" - enable support for Embedded OpenType fonts
  137. EPM="yes" - build epm
  138. FORMULA="yes" - enable formula logger for logging formula calculation
  139. flow in Calc
  140. FUZZERS="yes" - enable building libfuzzer targets for fuzz testing
  141. KDE5="yes" - use the Qt5/KF5 vclplug
  142. KDE5GTK3="yes" - use the Gtk3 vclplug with KDE5 file dialogs
  143. LANGUAGETOOL="yes" - enable the LanguageTool extension
  144. LTO="yes" - enable link-time for optimization for speed, slower
  145. compile (this may not work)
  146. MPL="yes" - only compile code which is MPL or more liberally licensed
  147. NLPSOLVER="yes" - enable the NLPSolver extension
  148. NUMBERTEXT="yes" - enable the Numbertext extension
  149. QT="yes" - enables the Qt5 vclplug
  150. SSL="yes" - Enable using OpenSSL as the implementation for rtl/cipher.h
  151. functionality, only when building without OPENSSL="no"
  152. VALGRIND="yes" - makes the Valgrind headers a hard requirement
  153. WIKI="yes" - enable the Wiki Publisher extension
  154. Disable features:
  155. CANVAS="no" - disables building the Cairo Canvas
  156. CUPS="no" - disable building cups support
  157. COINMP="no" - disable building the CoinMP solver
  158. DBUS="no" - disable features that rely on dbus (Presentation mode and
  159. screensaver control)
  160. DCONF="no" - disable the dconf configuration backend (enabled by
  161. default where available)
  162. FIREBIRD="no" - disable buildin the Firebird-SDBC driver
  163. FONT="no" - do not include third-party fonts
  164. LARGEFILE="no" - omit support for large files
  165. LDAP="no" - disable LDAP support
  166. LIBNUMBER="no" disables the numbertext external library
  167. LOTUSWORDPRO="no" - disables building the Lotus Word Pro filter
  168. LPSOLVE="no" - disables building the lp solve solver
  169. LXML="no" - disables the python lxml
  170. GIO="no" - disables using the GIO support
  171. GUI="no" - disable X11/Wayland support to reduce dependencies
  172. NEON="no" - disables neon and building of webdav binding
  173. OOENV="no" - disable ooenv for the instdir installation
  174. PDF="no" - disable building the PDF import feature
  175. PDFIUM="no" - disable building PDFium
  176. POPPLER="no" - disable building Poppler
  177. POSTGRESQL="no" - disable building the PostgreSQL-SDBC driver
  178. RANDR="no" - disable RandR support in the vcl project
  179. REPORT="no" - disable the Report Builder
  180. SDREMOTE="no" - disable the Impress remote control (i.e. the server
  181. component)
  182. SDRBLUETOOTH="no" - disables building the sdremote with bluetooth
  183. support, requires dbus
  184. XORG="no" - don't use the X Window System
  185. Experimental features, use only if you know what you are doing.
  186. AVMEDIA="no" - disables displaying and inserting AV media in documents
  187. CHART="yes" - executes chart XShape tests
  188. DATABASE="no" - disables various database connectivity
  189. EXTENSION="no" - disables all add-on extension functionality
  190. ICECREAM="yes" - use the icecream distributed compiling tool (requires
  191. icecream)
  192. LOADING="no" - disables any use of dynamic loading of code
  193. MERGELIB="yes" - enables linking of big, merged, library
  194. OPENSSL="no" - disables using libssl/libcrypto from OpenSSl, will use
  195. GNUTLS or NSS instead
  196. SCRIPT="no" - disables BASIC, Java and Python
  197. VLC="yes" - enable building with the VLC avmedia backend (requires
  198. vlc)
  199. Optional dependencies:
  200. CoinMP, cppunit, glm, libabw, libcdr, libcmis, libe-book, libeot,
  201. libepubgen, libetonyek, libexttextcat, libfreehand, liblangtag,
  202. libmspub, libmwaw, libnumbertext, liborcus, libpagemaker, libqxp,
  203. libstaroffice, libtommath, libwps, libzmf, lpsolve, lxml, mdds,
  204. mythes, postgresql, python3, qt5, valgrind, ucpp
  205. Optional dependencies which are not available for Slackware yet:
  206. altlinuxhyph, apache-commons, beanshell, firebird, gpgmepp,
  207. hsqldb, jfreereport, xmlsec-nss