cruxports/octave/Pkgfile
2022-02-05 15:39:19 -05:00

32 lines
1.1 KiB
Plaintext

# Description: high-level programming language for scientific computing
# URL: https://www.gnu.org/software/octave
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: qt5 qscintilla-qt5 ghostscript gl2ps gnuplot graphicsmagick suitesparse
# Nice to have: fltk arpack fftw glpk glu hdf5 qhull qrupdate sundials portaudio libsndfile
name=octave
version=6.4.0
release=1
source=(https://ftpmirror.gnu.org/octave/$name-$version.tar.xz)
build() {
PKGMK_OCTAVE="--prefix=/usr --libexecdir=/usr/lib --enable-shared --disable-static --disable-docs"
prt-get isinst fftw || PKGMK_OCTAVE+=" --without-fftw3 --without-fftw3f"
prt-get isinst glpk || PKGMK_OCTAVE+=" --without-glpk"
prt-get isinst hdf5 || PKGMK_OCTAVE+=" --without-hdf5"
prt-get isinst qhull || PKGMK_OCTAVE+=" --without-qhull"
prt-get isinst qrupdate || PKGMK_OCTAVE+=" --without-qrupdate"
cd $name-$version
./configure $PKGMK_OCTAVE
make
make DESTDIR=$PKG install
# strip .la files
rm -f $PKG/usr/lib/$name/$version/*.la
mkdir -p $PKG/etc/ld.so.conf.d
echo "/usr/lib/$name/$version" > "$PKG/etc/ld.so.conf.d/$name.conf"
}