1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/science/hypre/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

61 lines
1.7 KiB
Makefile

# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= hypre
DISTVERSION= 2.11.2
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/download/
MAINTAINER= pfg@FreeBSD.org
COMMENT= Scalable Linear Solvers and Multigrid Methods
LICENSE= LGPL21
LICENSE_FILE= ${WRKDIR}/${DISTNAME}/COPYING.LESSER
USES= blaslapack fortran localbase
USE_LDCONFIG= yes
WRKSRC_SUBDIR= src
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-blas --with-blas-lib=${BLASLIB} \
--with-lapack --with-lapack-lib=${LAPACKLIB} \
--enable-shared
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
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/hypre/include/* ${STAGEDIR}${PREFIX}/include
${INSTALL_LIB} ${WRKSRC}/hypre/lib/libHYPRE-2.11.2.so \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so.2.11
${RLN} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.2.11 \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so.2
${RLN} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.2.11 \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/*.pdf \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>