Files
ports/science/libgridxc/Makefile
T
2026-10-04 04:07:15 +00:00

43 lines
1.1 KiB
Makefile

PORTNAME= libgridxc
DISTVERSION= 2.0.3
CATEGORIES= science
MASTER_SITES= https://gitlab.com/siesta-project/libraries/${PORTNAME}/-/archive/${DISTVERSION}/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library to compute the exchange and correlation energy and potentials
WWW= https://gitlab.com/siesta-project/libraries/libgridxc
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:testing fortran pkgconfig
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
OPTIONS_DEFINE= LIBXC
OPTIONS_DEFAULT= LIBXC MPICH
OPTIONS_SUB= yes
NOMPI_DESC= Build without parallel processing support
NOMPI_CMAKE_OFF= -DWITH_MPI=OFF
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
LIBXC_DESC= Use libxc for exchange-correlation functionals for DFT
LIBXC_CMAKE_BOOL= WITH_LIBXC
LIBXC_VARS= FCFLAGS+="-I${LOCALBASE}/include"
LIBXC_LIB_DEPENDS= libxc.so:science/libxc
# tests as of 2.0.3: 100% tests passed, 0 tests failed out of 9
.include <bsd.port.mk>