2010-10-12 06:31:40 +08:00
|
|
|
pkgname=octave
|
2015-06-02 20:06:10 +08:00
|
|
|
pkgver=4.0.0
|
2015-06-09 06:06:54 +08:00
|
|
|
pkgrel=3
|
2010-10-12 06:31:40 +08:00
|
|
|
pkgdesc="A high-level language, primarily intended for numerical computations."
|
2012-11-06 01:54:55 +08:00
|
|
|
arch=('x86_64')
|
2010-10-12 06:31:40 +08:00
|
|
|
url="http://www.octave.org"
|
|
|
|
license=('GPL')
|
2015-06-09 05:51:02 +08:00
|
|
|
depends=('atlas-lapack' 'readline' 'glu' 'fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'fltk' 'suitesparse' 'arpack' 'pcre' 'qt' 'fontconfig' 'zlib' 'qrupdate' 'freetype2' 'qscintilla' 'gl2ps')
|
2015-06-02 20:06:10 +08:00
|
|
|
makedepends=('texlive-core' 'gcc-fortran' 'texinfo' 'gnuplot')
|
2013-07-28 00:51:03 +08:00
|
|
|
optdepends=('texinfo: for help-support in octave'
|
2015-06-09 05:51:02 +08:00
|
|
|
'gnuplot: alternative plotting')
|
2015-06-08 00:25:08 +08:00
|
|
|
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.xz)
|
2010-10-12 06:31:40 +08:00
|
|
|
options=('!emptydirs')
|
2012-11-06 01:54:55 +08:00
|
|
|
install='octave.install'
|
2015-06-08 00:25:08 +08:00
|
|
|
sha1sums=('795c7ef1fb8d92f4cf9cae9eabba374a0328b1a9')
|
2010-10-12 06:31:40 +08:00
|
|
|
|
2013-07-28 00:51:03 +08:00
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2015-06-08 00:25:08 +08:00
|
|
|
|
2015-06-09 05:51:02 +08:00
|
|
|
autoreconf -vfi
|
|
|
|
|
2013-07-28 00:51:03 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
2015-06-09 06:06:54 +08:00
|
|
|
# This needs atlas-lapack/blas support to be enabled first, check FS#174 comments:
|
|
|
|
# --enable-64\
|
2013-07-28 00:51:03 +08:00
|
|
|
--with-umfpack="-lumfpack -lsuitesparseconfig"
|
2015-06-09 05:51:02 +08:00
|
|
|
MOC=moc UIC=uic
|
|
|
|
|
2012-11-22 01:14:06 +08:00
|
|
|
LANG=C make
|
2011-06-23 10:07:43 +08:00
|
|
|
}
|
2010-10-12 06:31:40 +08:00
|
|
|
|
2011-06-23 10:07:43 +08:00
|
|
|
package(){
|
2012-11-22 01:14:06 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2010-10-12 06:31:40 +08:00
|
|
|
|
2011-06-23 10:07:43 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2012-11-22 01:14:06 +08:00
|
|
|
|
|
|
|
# add path to ld.so.conf.d
|
|
|
|
install -d "${pkgdir}/etc/ld.so.conf.d"
|
|
|
|
echo "/usr/lib/${pkgname}/${pkgver}" > "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf"
|
2010-10-12 06:31:40 +08:00
|
|
|
}
|