sundials: disable MPI in all environments

This commit is contained in:
Markus Mützel
2024-03-13 19:16:17 +01:00
parent b8ac2516f8
commit a9e82b2cc8

View File

@@ -1,5 +1,15 @@
# Maintainer: Gene Harvey <gharveymn@gmail.com>
_enable_mpi=no
if [[ ${CARCH} != x86_64 ]]; then
# There are currently no msmpi libraries for Windows on ARM.
# See: https://github.com/microsoft/Microsoft-MPI/issues/66
# So even if it were enabled for other targets above, don't build the features
# that require msmpi for ARM targets.
_enable_mpi=no
fi
_realname=sundials
pkgbase="mingw-w64-${_realname}"
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
@@ -21,12 +31,12 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-openblas"
"${MINGW_PACKAGE_PREFIX}-omp"
"${MINGW_PACKAGE_PREFIX}-suitesparse"
$([[ ${CARCH} != x86_64 ]] || echo \
$([[ "$_enable_mpi" == "yes" ]] && echo \
"${MINGW_PACKAGE_PREFIX}-petsc" \
"${MINGW_PACKAGE_PREFIX}-superlu_dist"))
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
$([[ ${CARCH} != x86_64 ]] || echo "${MINGW_PACKAGE_PREFIX}-msmpi"))
$([[ "$_enable_mpi" == "yes" ]] && echo "${MINGW_PACKAGE_PREFIX}-msmpi"))
optdepends=("${MINGW_PACKAGE_PREFIX}-python: for running examples")
source=(https://github.com/LLNL/sundials/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz
'0002-sundials-missing-export.patch'
@@ -68,15 +78,13 @@ build() {
export FFLAGS="-Qunused-arguments"
fi
if [[ ${CARCH} != x86_64 ]]; then
# There are currently no msmpi libraries for Windows on ARM.
# See: https://github.com/microsoft/Microsoft-MPI/issues/66
# Dont' build the features that require msmpi.
if [[ "$_enable_mpi" != "yes" ]]; then
_extra_config+=("-DENABLE_MPI=OFF"
"-DENABLE_PETSC=OFF"
"-DENABLE_SUPERLUDIST=OFF")
else
_extra_config+=("-DBUILD_NVECTOR_MPIMANYVECTOR=ON"
_extra_config+=("-DBUILD_NVECTOR_MANYVECTOR=ON"
"-DBUILD_NVECTOR_MPIMANYVECTOR=ON"
"-DBUILD_NVECTOR_MPIPLUSX=ON"
"-DBUILD_NVECTOR_PARALLEL=ON"
"-DENABLE_MPI=ON"
@@ -102,7 +110,6 @@ build() {
-D BUILD_IDA=ON \
-D BUILD_IDAS=ON \
-D BUILD_KINSOL=ON \
-D BUILD_NVECTOR_MANYVECTOR=ON \
-D BUILD_NVECTOR_OPENMP=ON \
-D BUILD_NVECTOR_PTHREADS=ON \
-D BUILD_SHARED_LIBS=ON \