2018-09-04 17:03:13 +02:00
|
|
|
PORTNAME= libgridxc
|
2023-01-04 16:55:01 +01:00
|
|
|
DISTVERSION= 1.1.0
|
2023-04-23 11:09:58 +02:00
|
|
|
PORTREVISION= 1
|
2018-09-04 17:03:13 +02:00
|
|
|
CATEGORIES= science
|
2023-01-04 16:55:01 +01:00
|
|
|
MASTER_SITES= https://gitlab.com/siesta-project/libraries/${PORTNAME}/-/archive/${DISTVERSION}/
|
2018-09-04 17:03:13 +02:00
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Library to compute the exchange and correlation energy and potentials
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://gitlab.com/siesta-project/libraries/libgridxc
|
2018-09-04 17:03:13 +02:00
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
2021-04-24 03:27:32 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2018-09-04 17:03:13 +02:00
|
|
|
|
2023-01-04 16:55:01 +01:00
|
|
|
USES= cmake fortran pkgconfig
|
2018-09-04 17:03:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2023-01-04 16:55:01 +01:00
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
2018-09-04 17:03:13 +02:00
|
|
|
|
2023-01-04 16:55:01 +01:00
|
|
|
OPTIONS_SINGLE= MPI
|
|
|
|
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
|
|
|
|
OPTIONS_DEFINE= LIBXC
|
|
|
|
OPTIONS_DEFAULT= LIBXC MPICH
|
|
|
|
OPTIONS_SUB= yes
|
2018-09-04 17:03:13 +02:00
|
|
|
|
2023-01-04 16:55:01 +01:00
|
|
|
NOMPI_DESC= Build without parallel processing support
|
2018-09-04 17:03:13 +02:00
|
|
|
|
2023-01-04 16:55:01 +01:00
|
|
|
MPICH_USES= mpi:mpich
|
|
|
|
MPICH_CMAKE_ON= -DWITH_MPI=ON
|
|
|
|
MPICH_VARS= FFLAGS+=-fallow-argument-mismatch
|
|
|
|
|
|
|
|
OPENMPI_USES= mpi:openmpi
|
|
|
|
OPENMPI_CMAKE_ON= -DWITH_MPI=ON
|
|
|
|
OPENMPI_VARS= FFLAGS+=-fallow-argument-mismatch
|
2018-09-04 17:03:13 +02:00
|
|
|
|
|
|
|
LIBXC_DESC= Use libxc for exchange-correlation functionals for DFT
|
2023-01-04 16:55:01 +01:00
|
|
|
LIBXC_CMAKE_BOOL= WITH_LIBXC
|
2021-04-24 03:27:32 +02:00
|
|
|
LIBXC_VARS= FCFLAGS+="-I${LOCALBASE}/include" LDFLAGS+="-L${LOCALBASE}/lib -lxcf90"
|
2018-09-04 17:03:13 +02:00
|
|
|
LIBXC_LIB_DEPENDS= libxc.so:science/libxc
|
|
|
|
|
2021-04-24 03:27:32 +02:00
|
|
|
.include <bsd.port.mk>
|