Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2019 05:37:34 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494021 - head/science/abinit
Message-ID:  <201902270537.x1R5bYXU034906@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Feb 27 05:37:33 2019
New Revision: 494021
URL: https://svnweb.freebsd.org/changeset/ports/494021

Log:
  science/abinit: Add OPENMP and MPI options

Modified:
  head/science/abinit/Makefile

Modified: head/science/abinit/Makefile
==============================================================================
--- head/science/abinit/Makefile	Wed Feb 27 05:07:52 2019	(r494020)
+++ head/science/abinit/Makefile	Wed Feb 27 05:37:33 2019	(r494021)
@@ -3,6 +3,7 @@
 
 PORTNAME=	abinit
 DISTVERSION=	8.10.3
+PORTREVISION=	1
 CATEGORIES=	science
 MASTER_SITES=	https://www.abinit.org/sites/default/files/packages/
 
@@ -20,8 +21,21 @@ RUN_DEPENDS=	atompaw:science/atompaw
 
 USES=		fortran gmake localbase:ldflags
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-shared --disable-static
 
+CONFIGURE_ENV=	CC_LDFLAGS="${LDFLAGS}" CXX_LDFLAGS="${LDFLAGS}" FC_LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS=	--enable-shared --disable-static
 FCFLAGS+=	-ffree-line-length-none
+
+OPTIONS_DEFINE=			OPENMP MPI
+OPTIONS_DEFAULT=		OPENMP MPI
+
+OPENMP_CONFIGURE_ENABLE=	openmp
+OPENMP_LDFLAGS=			${LOCALBASE}/lib/libomp.so
+OPENMP_LIB_DEPENDS=		libomp.so:devel/openmp
+
+MPI_CONFIGURE_ENABLE=		mpi
+MPI_VARS=			FFLAGS+=-I${LOCALBASE}/include FCFLAGS+=-I${LOCALBASE}/include
+MPI_LDFLAGS=			${LOCALBASE}/lib/libmpich.so ${LOCALBASE}/lib/libmpicxx.so ${LOCALBASE}/lib/libmpifort.so
+MPI_LIB_DEPENDS=		libmpi.so:net/mpich
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902270537.x1R5bYXU034906>