summaryrefslogtreecommitdiff
path: root/extra/octave/PKGBUILD
blob: 0c921a15f29cad3036218002b9bb2018e0a2a0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id: PKGBUILD 103149 2010-12-15 21:12:17Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : shining <shiningxc.at.gmail.com>
# Contributor : cyberdune <cyberdune@gmail.com>

pkgname=octave
pkgver=3.2.4
pkgrel=2
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.octave.org"
license=('GPL')
depends=('fftw' 'pcre' 'curl' 'lapack' 'libx11' 'graphicsmagick' 'glpk' 'hdf5' 'gcc-libs')
makedepends=('texinfo' 'graphicsmagick' 'gcc-fortran' 'umfpack')
optdepends=('texinfo: for help-support in octave'
            'gnuplot: alternative plotting'
	    'umfpack: LU decomposition of some large sparse matrices')
source=("ftp://ftp.octave.org/pub/octave/octave-$pkgver.tar.bz2"
	'octave-3.2.0_as_needed.patch'  'octave-3.2.0_parallel_make.patch' 'imread.patch')
options=('!emptydirs')
install=octave.install
md5sums=('608196657f4fa010420227b77333bb71'
         '33c8886cd908ace40f8b60334df1c34f'
         'd59d783a8d7e8d8306caed4b2b8671a4'
         '72d33ba1a862244f970cf259923815d9')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  # gentoo patches
  patch -Np1 -i ${srcdir}/octave-3.2.0_as_needed.patch
  patch -Np1 -i ${srcdir}/octave-3.2.0_parallel_make.patch 
  patch -Np0 -i ${srcdir}/imread.patch
  
  # http://www.nabble.com/Random-rounding-errors-td16010966.html
  FFLAGS="-O -ffloat-store" \

  ./configure --prefix=/usr --libexecdir=/usr/lib \
  --enable-shared --disable-static

  make
}

package(){
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" install

}