cruxports/arpack/Pkgfile

27 lines
829 B
Plaintext

# Description: Fortran77 subroutines for solving large scale eigenvalue problems
# URL: https://github.com/opencollab/arpack-ng
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: lapack
# Optional: openmpi
name=arpack
version=3.9.1
release=1
source=(https://github.com/opencollab/arpack-ng/archive/$version/$name-$version.tar.gz)
build() {
prt-get isinst openmpi && ARPACK_MPI="on" || ARPACK_MPI="off"
cmake -S $name-ng-$version -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
-DBUILD_SHARED_LIBS=on \
-DEXAMPLES=off -DMPI=$ARPACK_MPI
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
}