cruxports/arpack/Pkgfile

27 lines
829 B
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: Fortran77 subroutines for solving large scale eigenvalue problems
# URL: https://github.com/opencollab/arpack-ng
# Maintainer: John McQuah, jmcquah at disroot dot org
2022-04-26 07:51:12 -04:00
# Depends on: lapack
2023-07-13 19:12:14 -04:00
# Optional: openmpi
2022-02-05 15:39:19 -05:00
name=arpack
2023-10-21 19:48:32 -04:00
version=3.9.1
2022-02-05 15:39:19 -05:00
release=1
2023-10-21 19:48:32 -04:00
source=(https://github.com/opencollab/arpack-ng/archive/$version/$name-$version.tar.gz)
2022-02-05 15:39:19 -05:00
build() {
2023-07-13 19:12:14 -04:00
prt-get isinst openmpi && ARPACK_MPI="on" || ARPACK_MPI="off"
2023-02-11 20:58:06 -05:00
2023-10-21 19:48:32 -04:00
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
2023-07-13 19:12:14 -04:00
2023-10-21 19:48:32 -04:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2022-02-05 15:39:19 -05:00
}