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
|
untrusted comment: verify with /etc/ports/jmq.pub
|
||||||
RWTTPlFarK9CxLDcnSpaCDXVE51dUPzyZ+vYun+Gue0J94nqjWdF/QC63RCMKuJKuswNtt9NxHsuJO26besuMwfuU6kyIb/X4Ao=
|
RWTTPlFarK9CxHahStD9iyglXXjBFxfekP2ouwxTZyRgamXq+97Xk9OXV08hzmeoMgcxu4OuwrmhaPGmXxVKhkZo1YZ93+tCMgg=
|
||||||
SHA256 (Pkgfile) = cf06df4a9a01f0ec60c3b4aff81b90f72c6867629458469b0adfe88a4f185276
|
SHA256 (Pkgfile) = f4d876290b2d284146e94205ae569c4ff55f2ed64c4179c17c6041c0cdd96ce5
|
||||||
SHA256 (.footprint) = 8e5254dd79506227383f0a7cfa2ed5a3caf9bfebb359237538a3d7c058e2723d
|
SHA256 (.footprint) = 8e5254dd79506227383f0a7cfa2ed5a3caf9bfebb359237538a3d7c058e2723d
|
||||||
SHA256 (arpack-3.9.0.tar.gz) = 24f2a2b259992d3c797d80f626878aa8e2ed5009d549dad57854bbcfb95e1ed0
|
SHA256 (arpack-3.9.0.tar.gz) = 24f2a2b259992d3c797d80f626878aa8e2ed5009d549dad57854bbcfb95e1ed0
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# URL: https://github.com/opencollab/arpack-ng
|
# URL: https://github.com/opencollab/arpack-ng
|
||||||
# Maintainer: John McQuah, jmcquah at disroot dot org
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
||||||
# Depends on: lapack
|
# Depends on: lapack
|
||||||
|
# Optional: openmpi
|
||||||
|
|
||||||
name=arpack
|
name=arpack
|
||||||
version=3.9.0
|
version=3.9.0
|
||||||
@ -12,15 +13,15 @@ renames=($name-$version.tar.gz)
|
|||||||
build() {
|
build() {
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
||||||
|
prt-get isinst openmpi && ARPACK_MPI="on" || ARPACK_MPI="off"
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
|
|
||||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
|
||||||
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
|
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
|
||||||
-DBUILD_SHARED_LIBS=on \
|
-DBUILD_SHARED_LIBS=on \
|
||||||
-DEXAMPLES=off \
|
-DEXAMPLES=off -DMPI=$ARPACK_MPI \
|
||||||
-DMPI=off \
|
|
||||||
../$name-ng-$version
|
../$name-ng-$version
|
||||||
|
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
Loading…
Reference in New Issue
Block a user