summaryrefslogtreecommitdiff
path: root/extra/libreoffice
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-11-01 17:39:28 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-11-01 17:39:28 +0100
commit7bd0feec7cdd93f21e48688ac323d8cb812d7bb6 (patch)
tree0d82c7f6d8cbcbc79b03d7e62ca992776175de5b /extra/libreoffice
parent1192f92b3117f045d8a6e01bdc18a71d4ce7e980 (diff)
Build libreoffice without Java on mips64el (mostly untested).
Diffstat (limited to 'extra/libreoffice')
-rw-r--r--extra/libreoffice/PKGBUILD78
1 files changed, 35 insertions, 43 deletions
diff --git a/extra/libreoffice/PKGBUILD b/extra/libreoffice/PKGBUILD
index 15b67b82a..86bff1feb 100644
--- a/extra/libreoffice/PKGBUILD
+++ b/extra/libreoffice/PKGBUILD
@@ -10,48 +10,48 @@ pkgname=('libreoffice-common'
'libreoffice-impress'
'libreoffice-kde4'
'libreoffice-math'
- 'libreoffice-sdk'
- 'libreoffice-sdk-doc'
'libreoffice-writer'
'libreoffice-en-US'
#'libreoffice-extension-barcode' #
- 'libreoffice-extension-diagram'
- 'libreoffice-extension-google-docs'
'libreoffice-extension-hunart'
#'libreoffice-extension-lightproof' # no source integration
#'libreoffice-extension-mysql-connector' # missing libmysqlcppconn-dev configure: error: mysql_driver.h not found. install MySQL C++ Connectivity
- 'libreoffice-extension-nlpsolver'
'libreoffice-extension-ct2n'
'libreoffice-extension-numbertext'
'libreoffice-extension-oooblogger'
'libreoffice-extension-pdfimport'
- 'libreoffice-extension-presenter-screen'
'libreoffice-extension-presentation-minimizer'
- 'libreoffice-extension-report-builder'
- 'libreoffice-extension-scripting-beanshell'
- 'libreoffice-extension-scripting-javascript'
'libreoffice-extension-scripting-python'
- 'libreoffice-extension-typo'
- 'libreoffice-extension-validator'
- 'libreoffice-extension-watch-window'
+ 'libreoffice-extension-typo')
+[ "${CARCH}" != "mips64el" ] && pkgname+=('libreoffice-sdk' \
+ 'libreoffice-sdk-doc' \
+ 'libreoffice-extension-diagram' \
+ 'libreoffice-extension-google-docs' \
+ 'libreoffice-extension-nlpsolver' \
+ 'libreoffice-extension-presenter-screen' \
+ 'libreoffice-extension-report-builder' \
+ 'libreoffice-extension-scripting-beanshell' \
+ 'libreoffice-extension-scripting-javascript' \
+ 'libreoffice-extension-validator' \
+ 'libreoffice-extension-watch-window' \
'libreoffice-extension-wiki-publisher')
_LOver=3.4.3.2
pkgver=3.4.3
pkgrel=4
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
#_LO_tree="3.4"
_OFFICEUPD="340"
license=('LGPL3')
url="http://www.libreoffice.org/"
makedepends=( # makedepends
- 'sane' 'perl-archive-zip' 'zip' 'unzip' 'xulrunner' 'unixodbc' 'hsqldb-java' #'boost' - we use internal one for now that has some gcc4.6 fixes.
- 'apache-ant' 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit' #'libmysqlclient'
- 'beanshell' 'vigra' 'libldap' 'lucene' 'libmythes' 'junit' 'libwpg' 'imagemagick'
- 'mesa' 'gstreamer0.10-base' 'java-environment'
+ 'sane' 'perl-archive-zip' 'zip' 'p7zip-libre' 'xulrunner' 'unixodbc' #'boost' - we use internal one for now that has some gcc4.6 fixes.
+ 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit' #'libmysqlclient'
+ 'vigra' 'libldap' 'libmythes' 'libwpg' 'imagemagick'
+ 'gstreamer0.10-base'
#'saxon' - currently broken
# the depends from libreoffice main pkg
"curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libwpd>=0.9.2' 'libwps' 'libxaw' "neon>=0.28.6"
- 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'dbus-glib' "icu>=4.6" 'libxslt'
+ 'pango' 'nspr' 'libjpeg' 'libxrandr' 'dbus-glib' "icu>=4.6" 'libxslt'
'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'libtextcat' #'libgraphite'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2' # keep gtk2 for install script
'ttf-dejavu') # to satisfy regression tests
@@ -59,6 +59,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://hg.services.openoffice.org/binaries"
@@ -222,10 +224,15 @@ md5sums=('7c2e73f1197d169519f86efe422e5df9'
build() {
+ if [ "${CARCH}" != "mips64el" ] ; then
unset J2REDIR; unset J2SDKDIR; unset JAVA_HOME; unset CLASSPATH; unset EXTRAOPTS
[ -z "${JAVA_HOME}" ] && . /etc/profile.d/openjdk6.sh || . /etc/profile.d/jdk7-openjdk.sh
[ -z "${MOZ_PLUGIN_PATH}" ] && . /etc/profile.d/mozilla-common.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
# move all LibO sources into one build directory
mkdir ${srcdir}/build && cd ${srcdir}/build
@@ -286,7 +293,7 @@ build() {
# non-SMP test build
# export MAKEFLAGS="-j1"
- ./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
+ ./configure --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/} \
@@ -306,31 +313,19 @@ build() {
--enable-kde4\
--enable-ldap \
--enable-lockdown\
- --enable-opengl \
- --enable-odk\
- --enable-opengl\
--enable-ext-barcode \
- --enable-ext-diagram \
- --enable-ext-google-docs \
--enable-ext-hunart \
--disable-ext-lightproof \
--disable-ext-mysql-connector \
--with-system-mysql \
- --enable-ext-nlpsolver \
--enable-ext-ct2n \
--enable-ext-numbertext \
--enable-ext-oooblogger \
--enable-ext-pdfimport \
--enable-ext-presenter-console \
--enable-ext-presenter-minimizer \
- --enable-ext-report-builder \
- --enable-ext-scripting-beanshell \
- --enable-ext-scripting-javascript \
--enable-ext-scripting-python \
--enable-ext-typo \
- --enable-ext-validator \
- --enable-ext-watch-window \
- --enable-ext-wiki-publisher \
--without-fonts\
--without-afms\
--without-ppds\
@@ -349,7 +344,6 @@ build() {
--with-system-libtextcat \
--with-external-libtextcat-data \
--with-openldap\
- --with-ant-home="/usr/share/java/apache-ant"\
--without-system-boost\
--with-system-cairo\
--with-system-libs\
@@ -358,10 +352,7 @@ build() {
--with-system-xrender-headers\
--with-system-headers\
--with-alloc=system\
- --with-system-lucene\
- --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 || return 1
#--enable-split-opt-features Split file lists for some optional features, .e.g. pyuno, testtool
@@ -392,29 +383,30 @@ package_libreoffice-common() {
pkgdesc="common files for LibreOffice - a productivity suite that is compatible with other major office suites"
install=${pkgbase}.install
depends=('libreoffice-langpack' "curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libxaw' "neon>=0.28.6"
- 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'libxslt' "icu>=4.6"
+ 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libxslt' "icu>=4.6"
'redland' 'hyphen' 'gcc-libs' 'sh' 'libtextcat' #'libgraphite'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2') # keep gtk2 for install script
#'java-runtime'
#'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'
'pstoedit: translates PostScript and PDF graphics into other vector formats'
'poppler: for shipped pdfimport extension'
'libmythes: for use in thesaurus'
- 'hsqldb-java: default database format for OpenOffice.org'
- 'beanshell: interactive java -- good for prototyping /macros'
'vigra: C++ computer vision library, usable in Basebmp'
'libmspack: library for Microsoft compression formats for use in FontOOo'
'libwpg: library for importing and converting Corel WordPerfect(tm) Graphics images'
'libldap: to get profiles via ldap'
- 'lucene: full-text search engine library for Java needed in the help section'
'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)
@@ -547,7 +539,7 @@ package_libreoffice-gnome() {
package_libreoffice-impress() {
pkgdesc="Presentation Application for LibreOffice."
depends=('libreoffice-common')
- optdepends=('mesa: for the OGLTrans extension')
+ [ "${CARCH}" != "mips64el" ] && optdepends=('mesa: for the OGLTrans extension')
backup=()
groups=('libreoffice')
replaces=('libreoffice')
@@ -629,7 +621,7 @@ package_libreoffice-sdk() {
mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
done
- # fix ArchLinux LibreOffice installation paths
+ # fix installation paths
sed -i -e "s,@OO_SDK_NAME@,libreoffice-sdk," \
-e "s,@OO_SDK_HOME@,/usr/lib/libreoffice/basis3.4/sdk," \
-e "s,@OFFICE_HOME@,/usr/lib/libreoffice," \