My Arch User Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.9 KiB

# $Id: PKGBUILD 196805 2013-10-19 13:44:27Z bpiotrowski $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : shining <shiningxc.at.gmail.com>
# Contributor : cyberdune <cyberdune@gmail.com>
# Contributor : Markus Bergholz <markuman@gmail.com>
pkgname=octave
pkgver=3.8.0
pkgrel=3
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('i686' 'x86_64')
url="http://www.octave.org"
license=('GPL')
depends=('fftw>=3.2.2' 'curl' 'fltk' 'hdf5' 'glpk' 'arpack' 'gl2ps' 'qt4'
'qrupdate' 'qscintilla' 'qhull' 'graphicsmagick' 'java-environment'
'glu')
makedepends=('pcre' 'mercurial' 'gcc-fortran' 'gperf' 'perl' 'rsync'
'transfig' 'epstool')
optdepends=('texinfo: for help-support in octave'
'gnuplot: alternative plotting')
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2{,.sig}
mex-gcc-4.8.patch llvm-3.4.patch::http://savannah.gnu.org/bugs/download.php?file_id=30296)
options=('!emptydirs')
install=octave.install
sha1sums=('ebb03485b72d97fa01f105460f81016f94680f77'
'692885dcbdebceadc2676c7b2ead6590a81c710e'
'SKIP'
'7b6a3a3b67951834a4cbb3d04d7e28e19b267417')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < $srcdir/llvm-3.4.patch
export LC_NUMERIC=C
autoconf
./configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared --enable-jit --enable-gui\
--with-umfpack="-lumfpack -lsuitesparseconfig -lrt" \
--enable-qhull --enable-java MOC=moc-qt4 UIC=uic-qt4 \
--with-java-homedir=/usr/lib/jvm/java-7-openjdk \
--with-java-includedir=/usr/lib/jvm/java-7-openjdk/include \
--with-java-libdir=//usr/lib/jvm/java-7-openjdk/lib
CXXFLAGS+="-fexceptions `llvm-config --cxxflags`" make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# add octave library 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"
}