summaryrefslogtreecommitdiff
path: root/extra/maxima/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/maxima/PKGBUILD')
-rw-r--r--extra/maxima/PKGBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/extra/maxima/PKGBUILD b/extra/maxima/PKGBUILD
index 28a98b68e..51a6873d9 100644
--- a/extra/maxima/PKGBUILD
+++ b/extra/maxima/PKGBUILD
@@ -6,10 +6,14 @@ pkgname=maxima
pkgver=5.32.1
pkgrel=2
pkgdesc="A sophisticated computer algebra system"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://maxima.sourceforge.net"
-depends=('sbcl=1.1.15' 'texinfo' 'sh')
+if [ "${CARCH}" == "mips64el" ] ; then
+ depends=('clisp' 'texinfo' 'sh')
+else
+ depends=('sbcl=1.1.15' 'texinfo' 'sh')
+fi
makedepends=('python2')
optdepends=('gnuplot: plotting capabilities' 'rlwrap: readline support via /usr/bin/rmaxima' 'tk: graphical xmaxima interface')
# needs rebuild when bash changes version
@@ -26,8 +30,13 @@ build() {
# set correct python executable to create docs
sed -i "s|${PYTHONBIN:-python}|python2|" doc/info/extract_categories.sh
+ if [ "${CARCH}" == "mips64el" ] ; then
+ lisp="--enable-clisp --with-default-lisp=clisp"
+ else
+ lisp="--enable-sbcl --with-default-lisp=sbcl"
+ fi
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
- --libexecdir=/usr/lib --enable-sbcl --with-default-lisp=sbcl
+ --libexecdir=/usr/lib $lisp
# help avoid (re)running makeinfo/tex
touch doc/info/maxima.info