summaryrefslogtreecommitdiff
path: root/extra/libreoffice/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libreoffice/PKGBUILD')
-rw-r--r--extra/libreoffice/PKGBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/extra/libreoffice/PKGBUILD b/extra/libreoffice/PKGBUILD
index 4dc5d797b..5ad89c952 100644
--- a/extra/libreoffice/PKGBUILD
+++ b/extra/libreoffice/PKGBUILD
@@ -10,13 +10,10 @@ pkgname=('libreoffice-common'
'libreoffice-impress'
'libreoffice-kde4'
'libreoffice-math'
- 'libreoffice-sdk'
- 'libreoffice-sdk-doc'
'libreoffice-writer'
'libreoffice-en-US'
'libreoffice-postgresql-connector'
'libreoffice-extension-pdfimport'
- 'libreoffice-extension-presenter-screen'
'libreoffice-extension-presentation-minimizer'
'libreoffice-extension-report-builder'
'libreoffice-scripting-beanshell'
@@ -44,6 +41,8 @@ makedepends=( # makedepends
# http://download.documentfoundation.org/mirrors/all.html
# http://wiki.documentfoundation.org/Mirrors
+[ "${CARCH}" != "mips64el" ] && makedepends+=('hsqldb-java' 'apache-ant' 'beanshell' 'junit' 'mesa' 'java-environment' 'libgl' 'lucene')
+
_mirror="http://download.documentfoundation.org/libreoffice/src/${pkgver}"
#_mirror="http://dev-builds.libreoffice.org/pre-releases/src"
_additional_source_url="http://dev-www.libreoffice.org/src"
@@ -147,9 +146,14 @@ md5sums=('61afc900785dd7d071b96d9ab0af46f3'
build() {
+ if [ "${CARCH}" != "mips64el" ] ; then
unset J2REDIR; unset J2SDKDIR; unset JAVA_HOME; unset CLASSPATH; unset EXTRAOPTS
[ -z "${JAVA_HOME}" ] && . /etc/profile.d/jdk.sh || . /etc/profile.d/openjdk6.sh
[ -z "${ANT_HOME}" ] && . /etc/profile.d/apache-ant.sh
+ extraconf="--enable-opengl --enable-ext-scripting-beanshell --with-system-lucene --with-ant-home=\"/usr/share/java/apache-ant\" --with-lucene-core-jar=/usr/share/java/lucene-core.jar --with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar --with-java-target-version=1.5 --enable-odk --enable-ext-diagram --enable-ext-google-docs --enable-ext-nlpsolver --enable-ext-report-builder --enable-ext-scripting-javascript --enable-ext-validator --enable-ext-watch-window --enable-ext-wiki-publisher"
+ else
+ extraconf="--disable-opengl --without-java --without-system-lucene --without-system-hsqldb --without-system-beanshell --without-system-jfreereport --without-system-saxon --without-system-mesa-headers --without-junit"
+ fi
cd ${srcdir}/libreoffice-core-$_LOver
@@ -169,6 +173,8 @@ build() {
patch -Np1 -i ${srcdir}/smp_buildfix.diff
# https://bugs.archlinux.org/task/29854 based on 3.6/master patch http://cgit.freedesktop.org/libreoffice/core/patch/?id=20c24114143d6d38774b56a142fd4ae05094308e
patch -Np1 -i ${srcdir}/fix_broken_hebrew_wordwrapping.diff
+# Checks if --hash-style is accepted, not if --hash-style=both is accepted.
+ [ "${CARCH}" = "mips64el" ] && sed -i 's/--hash-style=both/--hash-style=sysv/' ${srcdir}/build/solenv/gbuild/platform/unxgcc.mk
# unset C(XX)FLAGS
# http://www.openoffice.org/issues/show_bug.cgi?id=103205
@@ -190,9 +196,8 @@ build() {
# non-SMP test build
# export MAKEFLAGS="-j1"
- #./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
# touch autogen.lastrun
- ./autogen.sh --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
+ ./autogen.sh --with-build-version="${_LOver} Parabola GNU/Linux-libre build-${pkgrel}" --with-vendor="Parabola GNU/Linux-libre" \
--with-unix-wrapper="libreoffice" \
--enable-split-app-modules \
--with-max-jobs=${MAKEFLAGS/-j/} --with-num-cpus=${MAKEFLAGS/-j/} \
@@ -235,7 +240,6 @@ build() {
--with-external-thes-dir=/usr/share/mythes \
--with-system-beanshell \
--with-system-cppunit\
- --with-system-graphite\
--with-system-libwpg \
--with-system-libwps \
--with-system-redland\
@@ -255,6 +259,7 @@ build() {
--with-lucene-core-jar=/usr/share/java/lucene-core.jar\
--with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar\
--with-java-target-version=1.5 \
+ $extraconf
$EXTRAOPTS
# --disable-ext-lightproof \
@@ -292,8 +297,8 @@ package_libreoffice-common() {
'nspr' 'libsm' 'redland' 'hyphen' 'graphite' "icu>=49.1"
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'orbit2')
#'saxon'
+ [ "${CARCH}" != "mips64el" ] && depends+=('libgl')
optdepends=('libreoffice-langpack: additional language support'
- 'java-runtime: adds java support'
'libcups: adds printing support'
'gconf: adds additional gnome support'
'nss: adds support for signed files/macros'
@@ -308,6 +313,10 @@ package_libreoffice-common() {
'sane: for scanner access'
'unixodbc: adds ODBC database support'
'gstreamer0.10-base: + some gstr-plugins to support multimedia content, e.g. in impress')
+ [ "${CARCH}" != "mips64el" ] && optdepends+=('java-runtime: adds java support' \
+ 'hsqldb-java: default database format for OpenOffice.org' \
+ 'beanshell: interactive java -- good for prototyping /macros' \
+ 'lucene: full-text search engine library for Java needed in the help section')
backup=(etc/libreoffice/sofficerc
etc/libreoffice/bootstraprc
etc/libreoffice/psprint.conf)
@@ -472,7 +481,7 @@ package_libreoffice-impress() {
pkgdesc="Presentation Application for LibreOffice."
install=libreoffice-impress.install
depends=('libreoffice-common')
- optdepends=('mesa: for the OGLTrans extension')
+ [ "${CARCH}" != "mips64el" ] && optdepends=('mesa: for the OGLTrans extension')
backup=()
groups=('libreoffice')
replaces=('libreoffice')