termux-packages/packages/openmpi/build.sh
2021-12-04 14:36:35 +01:00

24 lines
1006 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.open-mpi.org
TERMUX_PKG_DESCRIPTION="The Open MPI Project is an open source Message Passing Interface implementation that is developed and maintained by a consortium of academic, research, and industry partners"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
TERMUX_PKG_VERSION=3.1.3
TERMUX_PKG_SRCURL=https://download.open-mpi.org/release/open-mpi/v${TERMUX_PKG_VERSION:0:3}/openmpi-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=0254627d8a9b12a8f50213ed01e7a94dd7e91b340abf5c53bcf0b89afe6fb77d
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x
ac_cv_header_ifaddrs_h=no
--disable-dlopen
--disable-mpi-fortran
ac_cv_member_struct_ifreq_ifr_hwaddr=no
"
termux_step_pre_configure () {
# rindex is an obsolete version of strrchr which is not available in Android:
CFLAGS+=" -Drindex=strrchr -Dbcmp=memcmp"
LDFLAGS+=" -llog"
if [ $TERMUX_ARCH == "i686" ]; then
# fails with "undefined reference to __atomic..."
LDFLAGS+=" -latomic"
fi
}