PKGNAME=libreoffice
PKGSEC=doc
PKGDEP="boost bsh clucene coinmp cups curl dbus-glib desktop-file-utils glew glu \
        gpgmepp graphite gst-libav-1-0 gst-plugins-bad-1-0 \
        gst-plugins-base-1-0 gst-plugins-good-1-0 gst-plugins-ugly-1-0 \
        gstreamer-vaapi harfbuzz hicolor-icon-theme hunspell \
        hyphen icu lcms2 libabw libatomic-ops libcdr libcmis libe-book \
        libepubgen libetonyek libexttextcat libfreehand libjpeg-turbo \
        liblangtag libmspub libmwaw libodfgen liborcus libpagemaker libpaper \
        libqxp libstaroffice libtommath libvisio libwpd libwpg libwps libxslt \
        libzmf lpsolve mariadb mythes neon nspr nss openjdk pango poppler \
        postgresql-runtime python-3 redland sane-backends serf shared-mime-info \
        unixodbc xmlsec libnumbertext lxml vulkan abseil-cpp zxing-cpp md4c \
        fast-float liborcus afdko"
BUILDDEP="abseil-cpp apache-ant apr bluez cppunit dejavu-fonts doxygen gdb glm \
          gobject-introspection gperf icu liberation-fonts mdds \
          perl-archive-zip rxvt-unicode unzip zip rpmextract \
          gtk-3 kio libcuckoo llvm postgresql"
PKGDES="Open source productivity suite from the Document Foundation"
# The Postgresql is just for building the SDBC driver for LibreOffice Base
# and posslbly Calc. You don't need one installed and running to run them.
PKGSUG="postgresql"

PKGREP="libreoffice-help<=6.4.1.2 libreoffice-i18n<=5.0.4"
PKGBREAK="libreoffice-help<=6.4.1.2 libreoffice-i18n<=5.0.4"

# FIXME: configure: error: Your gcc is not -fvisibility=hidden safe. This is
# no longer supported.
NOLTO__AMD64=1
# FIXME: sw/source/core/text/inftxt.cxx:320:(.text+0xa7be14):
# relocation truncated to fit: R_MIPS_TLS_LDM against `pNoteURL'
NOLTO__LOONGSON3=1
