mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
science/hypre: Fix build with openmpi
- specify full path to mpicc/mpicxx when setting CC/CXX - specify mpi include/lib dirs - set WRKSRC_SUBDIR instead of WRKSRC - whitespace changes Approved by: pfg (maintainer)
This commit is contained in:
parent
088a545fd4
commit
ca72394d1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442952
@ -16,21 +16,27 @@ USES= blaslapack fortran localbase
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
WRKSRC_SUBDIR= src
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-blas --with-blas-lib=${BLASLIB} \
|
||||
--with-lapack --with-lapack-lib=${LAPACKLIB} \
|
||||
--enable-shared
|
||||
CONFIGURE_ENV= CC=mpicc CXX=mpicxx
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_SINGLE= MPI
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_SINGLE= MPI
|
||||
OPTIONS_SINGLE_MPI= MPICH2 OPENMPI
|
||||
OPTIONS_DEFAULT= MPICH2
|
||||
|
||||
MPICH2_LIB_DEPENDS= libmpich.so.8:net/mpich2
|
||||
MPICH2_CONFIGURE_ENV= CC=${LOCALBASE}/bin/mpicc CXX=${LOCALBASE}/bin/mpicxx
|
||||
MPICH2_CONFIGURE_WITH= MPI-include=${LOCALBASE}/include \
|
||||
MPI-lib-dirs=${LOCALBASE}/lib
|
||||
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
|
||||
OPENMPI_CONFIGURE_ENV= CC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
|
||||
CXX=${LOCALBASE}/mpi/openmpi/bin/mpicxx
|
||||
OPENMPI_CONFIGURE_WITH= MPI-include=${LOCALBASE}/mpi/openmpi/include \
|
||||
MPI-lib-dirs=${LOCALBASE}/mpi/openmpi/lib
|
||||
|
||||
.ifdef MAINTAINER_MODE
|
||||
TEST_TARGET= check
|
||||
|
Loading…
Reference in New Issue
Block a user