martin 06df3f73c5 - reenable fortran support
- switch COMPILER to ports-gcc only, due to limitations in the
  build system, MODULES=fortran requires ports-gcc anyway. If problems
  with C++ ever show up, we might make a version with fortran disabled
  and base-clang only. Compiling mpi applications with base-clang is still
  possible.
- adjust SHARED_LIBS accordingly, add @so lib markers while there
- add a simple README with example code

joint effort with j@bitminer.ca
2020-01-28 13:50:08 +00:00

54 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2020/01/28 13:50:08 martin Exp $
COMMENT = open source MPI-3.1 implementation
V = 4.0.2
DISTNAME = openmpi-$V
REVISION = 0
SHARED_LIBS += mca_common_dstore 0.0 # 1.1
SHARED_LIBS += mca_common_monitoring 0.0 # 60.0
SHARED_LIBS += mca_common_ompio 0.0 # 60.2
SHARED_LIBS += mca_common_sm 2.0 # 60.0
SHARED_LIBS += mpi 2.0 # 60.2
SHARED_LIBS += mpi_mpifh 0.0 # 60.2
SHARED_LIBS += mpi_usempi_ignore_tkr 0.0 # 60.0
SHARED_LIBS += mpi_usempif08 0.0 # 60.1
SHARED_LIBS += ompitrace 0.0 # 60.0
SHARED_LIBS += open-pal 2.0 # 60.2
SHARED_LIBS += open-rte 2.0 # 60.2
CATEGORIES = devel
HOMEPAGE = https://www.open-mpi.org/
MAINTAINER = Martin Reindl <martin@catai.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += c execinfo m pciaccess pthread util z
MASTER_SITES = ${HOMEPAGE}/software/ompi/v${V:C/^([0-9]+\.[0-9]+).*/\1/}/downloads/
COMPILER = ports-gcc
# MODULES=fortran always uses ports-gcc (and overrides COMPILER)
# the openmpi applications and libraries will be built with ports-gcc, but
# are compatible with base-clang on archs where it is available
MODULES = fortran
MODFORTRAN_COMPILER = gfortran
BUILD_DEPENDS = devel/libtool,-ltdl
LIB_DEPENDS = devel/libexecinfo
CONFIGURE_ARGS += --enable-mpi-fortran=usempif08 \
FC=egfortran \
CC=egcc
MAKE_FLAGS = V=1
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/openmpi/
CONFIGURE_STYLE = gnu
SEPARATE_BUILD = Yes
.include <bsd.port.mk>