diff options
Diffstat (limited to 'extra/ocaml/PKGBUILD')
-rw-r--r-- | extra/ocaml/PKGBUILD | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/extra/ocaml/PKGBUILD b/extra/ocaml/PKGBUILD index d097464e6..a4cd361d0 100644 --- a/extra/ocaml/PKGBUILD +++ b/extra/ocaml/PKGBUILD @@ -2,23 +2,31 @@ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgbase='ocaml' -pkgname=('ocaml' 'ocaml-compiler-libs') +pkgname=('ocaml') +# Needs optimized build. +[ "$CARCH" = "mips64el" ] || pkgname+=('ocaml-compiler-libs') pkgver=4.01.0 pkgrel=3 pkgdesc="A functional language with OO extensions" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('LGPL2.1' 'custom: QPL-1.0') url="http://caml.inria.fr/" depends=('gdbm') makedepends=('tk>=8.6.0' 'ncurses>=5.6-7' 'libx11') optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features') -source=(http://caml.inria.fr/distrib/ocaml-4.01/${pkgname}-${pkgver}.tar.gz) +source=(http://caml.inria.fr/distrib/ocaml-4.01/${pkgname}-${pkgver}.tar.gz + fix-caml_int64_float_of_bits-n32.patch) options=('!makeflags' '!emptydirs' 'staticlibs') build() { cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/fix-caml_int64_float_of_bits-n32.patch" ./configure -prefix /usr -x11include /usr/include - make world.opt + if [ "${CARCH}" == "mips64el" ] ; then + make world + else + make world.opt + fi } package_ocaml() { @@ -54,4 +62,5 @@ optdepends=() install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" } -md5sums=('04dfdd7da189462a4f10ec6530359cef') +md5sums=('04dfdd7da189462a4f10ec6530359cef' + 'e2c8bc316efe40532c5b9d7f9a1d8d62') |