sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2018/10/24 14:28:00 sthen Exp $
BROKEN-hppa = error: Could not determine global symbol label prefix
BROKEN-powerpc = checking if Fortran 77 compiler works... no
COMMENT = open source MPI-2 implementation
V= 1.4.1
DISTNAME = openmpi-$V
REVISION = 7
SHARED_LIBS = mca_common_sm 1.0 \
mpi 0.1 \
mpi_cxx 0.0 \
mpi_f77 0.0 \
open-pal 0.0 \
open-rte 0.0
CATEGORIES = devel
HOMEPAGE = http://www.open-mpi.org/
MODULES = fortran
MODFORTRAN_COMPILER = g77
BUILD_DEPENDS += ${MODFORTRAN_BUILD_DEPENDS}
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m pthread ${COMPILER_LIBCXX} util z
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${HOMEPAGE}/software/ompi/v${V:C/^([0-9]+\.[0-9]+).*/\1/}/downloads/
# XXX: uses a locally modified libtool.
USE_LIBTOOL = No
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/openmpi/
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = F77=${MODFORTRAN_COMPILER}
# openmpi's otfinfo conflicts with the one from texlive
post-install:
mv ${PREFIX}/bin/otfinfo ${PREFIX}/bin/otfinfompi
.include <bsd.port.mk>