2017-11-22 19:38:47 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.open-mpi.org
|
2020-06-23 21:21:32 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Open source Message Passing Interface implementation"
|
2019-01-26 00:10:08 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2017-11-22 19:38:47 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
2021-06-10 20:28:05 +02:00
|
|
|
TERMUX_PKG_VERSION=4.1.1
|
2022-03-27 15:32:55 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-09-13 22:11:30 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://download.open-mpi.org/release/open-mpi/v${TERMUX_PKG_VERSION:0:3}/openmpi-$TERMUX_PKG_VERSION.tar.gz
|
2021-06-10 20:28:05 +02:00
|
|
|
TERMUX_PKG_SHA256=d80b9219e80ea1f8bcfe5ad921bd9014285c4948c5965f4156a3831e60776444
|
2019-10-25 16:31:50 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-shmem"
|
2019-07-31 22:01:58 +02:00
|
|
|
TERMUX_PKG_BREAKS="openmpi-dev"
|
|
|
|
TERMUX_PKG_REPLACES="openmpi-dev"
|
2021-12-27 15:41:02 +01:00
|
|
|
TERMUX_PKG_GROUPS="science"
|
2019-02-03 15:25:47 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--without-x
|
2018-09-13 22:11:30 +02:00
|
|
|
--disable-dlopen
|
|
|
|
--disable-mpi-fortran
|
2019-10-25 16:31:50 +02:00
|
|
|
ac_cv_header_ifaddrs_h=no
|
2018-10-23 21:37:28 +02:00
|
|
|
ac_cv_member_struct_ifreq_ifr_hwaddr=no
|
2018-09-13 22:11:30 +02:00
|
|
|
"
|
2017-11-22 19:38:47 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
# rindex is an obsolete version of strrchr which is not available in Android:
|
2018-09-13 22:11:30 +02:00
|
|
|
CFLAGS+=" -Drindex=strrchr -Dbcmp=memcmp"
|
2022-03-27 15:32:55 +02:00
|
|
|
# This (--no-as-needed) may not be needed after fix in libandroid-shmem
|
|
|
|
# by commit 92668b208de7802da97221ace1107c4b5ae6cfc4.
|
2020-08-09 23:36:32 +02:00
|
|
|
LDFLAGS="${LDFLAGS/-Wl,--as-needed/}"
|
2020-01-11 10:23:09 +01:00
|
|
|
LDFLAGS+=" -landroid-shmem"
|
2018-09-14 08:02:22 +02:00
|
|
|
if [ $TERMUX_ARCH == "i686" ]; then
|
|
|
|
# fails with "undefined reference to __atomic..."
|
|
|
|
LDFLAGS+=" -latomic"
|
|
|
|
fi
|
2021-01-17 08:45:48 +01:00
|
|
|
|
|
|
|
./autogen.pl --force
|
2017-11-22 19:38:47 +01:00
|
|
|
}
|