arpack: optionally enable MPI
This commit is contained in:
parent
05611f75f5
commit
8cdba83059
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/jmq.pub
|
||||
RWTTPlFarK9CxLDcnSpaCDXVE51dUPzyZ+vYun+Gue0J94nqjWdF/QC63RCMKuJKuswNtt9NxHsuJO26besuMwfuU6kyIb/X4Ao=
|
||||
SHA256 (Pkgfile) = cf06df4a9a01f0ec60c3b4aff81b90f72c6867629458469b0adfe88a4f185276
|
||||
RWTTPlFarK9CxHahStD9iyglXXjBFxfekP2ouwxTZyRgamXq+97Xk9OXV08hzmeoMgcxu4OuwrmhaPGmXxVKhkZo1YZ93+tCMgg=
|
||||
SHA256 (Pkgfile) = f4d876290b2d284146e94205ae569c4ff55f2ed64c4179c17c6041c0cdd96ce5
|
||||
SHA256 (.footprint) = 8e5254dd79506227383f0a7cfa2ed5a3caf9bfebb359237538a3d7c058e2723d
|
||||
SHA256 (arpack-3.9.0.tar.gz) = 24f2a2b259992d3c797d80f626878aa8e2ed5009d549dad57854bbcfb95e1ed0
|
||||
|
@ -2,6 +2,7 @@
|
||||
# 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.0
|
||||
@ -10,19 +11,19 @@ source=(https://github.com/opencollab/arpack-ng/archive/refs/tags/$version.tar.g
|
||||
renames=($name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
mkdir build && cd build
|
||||
mkdir build && cd build
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
|
||||
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
|
||||
-DBUILD_SHARED_LIBS=on \
|
||||
-DEXAMPLES=off \
|
||||
-DMPI=off \
|
||||
../$name-ng-$version
|
||||
prt-get isinst openmpi && ARPACK_MPI="on" || ARPACK_MPI="off"
|
||||
|
||||
cmake --build .
|
||||
make DESTDIR=$PKG install
|
||||
cmake -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 \
|
||||
../$name-ng-$version
|
||||
|
||||
cmake --build .
|
||||
make DESTDIR=$PKG install
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user