1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/science/hypre/Makefile
Piotr Kubaj e2bc976155 science/hypre: fix build on powerpc64*
Collision with machine/frame.h's lr:
In file included from /wrkdirs/usr/ports/science/hypre/work/hypre-2.23.0/src/distributed_ls/pilut/parilut.c:53:
In file included from /wrkdirs/usr/ports/science/hypre/work/hypre-2.23.0/src/distributed_ls/pilut/ilu.h:29:
In file included from /usr/include/signal.h:40:
In file included from /usr/include/sys/signal.h:48:
In file included from /usr/include/machine/signal.h:45:
/usr/include/machine/frame.h:54:13: error: expected ')'
        register_t lr;
2021-11-07 12:15:02 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Pedro Giffuni
PORTNAME= hypre
DISTVERSIONPREFIX= v
DISTVERSION= 2.23.0
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= Scalable Linear Solvers and Multigrid Methods
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/../LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE-MIT
USES= blaslapack cmake:testing fortran localbase
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= hypre-space
WRKSRC_SUBDIR= src
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP
CMAKE_TESTING_ON= HYPRE_BUILD_TESTS # tests are only built and not run, see https://github.com/hypre-space/hypre/issues/502
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
NOMPI_DESC= Build without parallel processing support
NOMPI_CMAKE_ON= -DHYPRE_WITH_MPI=OFF
MPICH_LIB_DEPENDS= libmpich.so:net/mpich
MPICH_CONFIGURE_ENV= CC=${LOCALBASE}/bin/mpicc CXX=${LOCALBASE}/bin/mpicxx
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_CONFIGURE_ENV= CC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
CXX=${LOCALBASE}/mpi/openmpi/bin/mpicxx
OPENMPI_BROKEN= doesn't switch to openmpi in cmake build
PORTDOCS= *
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} usr-manual ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>