diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2017-06-08 03:22:39 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2017-06-08 03:22:39 +0000 |
commit | 16600d0c13ebb140a18e1e559ddf3ae9c0ed9f6d (patch) | |
tree | 644d8f4522e41375f690ddf9bda015b0596caa35 /science/hypre/Makefile | |
parent | fb0bb89695700709462792c4d47e4da9dbe8eaa6 (diff) | |
download | ports-16600d0c13ebb140a18e1e559ddf3ae9c0ed9f6d.tar.gz ports-16600d0c13ebb140a18e1e559ddf3ae9c0ed9f6d.zip |
Notes
Diffstat (limited to 'science/hypre/Makefile')
-rw-r--r-- | science/hypre/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/science/hypre/Makefile b/science/hypre/Makefile new file mode 100644 index 000000000000..96f9cb75f679 --- /dev/null +++ b/science/hypre/Makefile @@ -0,0 +1,53 @@ +# Created by: Pedro Giffuni +# $FreeBSD$ + +PORTNAME= hypre +DISTVERSION= 2.11.2 +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= ${WRKDIR}/${DISTNAME}/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_SINGLE_MPI= MPICH2 OPENMPI +OPTIONS_DEFAULT= MPICH2 + +MPICH2_LIB_DEPENDS= libmpich.so.8:net/mpich2 +OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi + +.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> |