diff options
author | yuri <yuri@FreeBSD.org> | 2018-09-03 09:09:21 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-09-03 09:09:21 +0800 |
commit | 8f7d3acded798169527c845a08c467f1ac8011a7 (patch) | |
tree | 5f2c6d4d5f3fa67fa1c2b7ee250056350a7e4af2 /science | |
parent | d914776e868a7b61ca348fd438c232f70ed5e703 (diff) | |
download | freebsd-ports-gnome-8f7d3acded798169527c845a08c467f1ac8011a7.tar.gz freebsd-ports-gnome-8f7d3acded798169527c845a08c467f1ac8011a7.tar.zst freebsd-ports-gnome-8f7d3acded798169527c845a08c467f1ac8011a7.zip |
science/fleur: Add port options for libraries: mpi, scalapack, elpa, hdf5
Diffstat (limited to 'science')
-rw-r--r-- | science/fleur/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/science/fleur/Makefile b/science/fleur/Makefile index 42d1c8bd2532..832d544cde46 100644 --- a/science/fleur/Makefile +++ b/science/fleur/Makefile @@ -2,6 +2,7 @@ PORTNAME= fleur DISTVERSION= 0.27-3 # Release 3 of Version 0.27 +PORTREVISION= 1 CATEGORIES= science MASTER_SITES= http://www.flapw.de/pm/uploads/FLEUR/ DISTNAME= fleurMaXR${DISTVERSION:C/.*-//} @@ -17,8 +18,39 @@ LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake:outsource,noninja fortran localbase:ldflags tar:tgz USE_GNOME= libxml2 +FFLAGS= -I${LOCALBASE}/include + WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= HDF5 MPI SCALAPACK ELPA +OPTIONS_DEFAULT= MPI SCALAPACK ELPA + +HDF5_CONFIGURE_ENV= FLEUR_USE_HDF5=1 HDF5_ROOT=${LOCALBASE}/lib +HDF5_CONFIGURE_ENV_OFF= FLEUR_USE_HDF5=0 +HDF5_CMAKE_ARGS= -DHDF5_INCLUDE_DIRS=${LOCALBASE}/include +HDF5_LDFLAGS= -lhdf5 +HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 +HDF5_BROKEN= Missing hdf5.mod in hdf5 + +MPI_CONFIGURE_ENV= FLEUR_USE_MPI=1 +MPI_CONFIGURE_ENV_OFF= FLEUR_USE_MPI=0 +MPI_LDFLAGS= -lmpich +MPI_LIB_DEPENDS= libmpich.so:net/mpich2 +MPI_PLIST_FILES= bin/fleur_MPI + +SCALAPACK_DESC= Use the ScaLAPACK Scalable LAPACK library +SCALAPACK_CMAKE_BOOL= FREEBSD_USE_SCALAPACK +SCALAPACK_LDFLAGS= -lscalapack +SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack +SCALAPACK_IMPLIES= MPI + +ELPA_DESC= Use libelpa, Eigenvalue SoLver for Petaflop Applications +ELPA_CMAKE_BOOL= FREEBSD_USE_ELPA +ELPA_VARS= FFLAGS+=-I${LOCALBASE}/include/elpa-2018.05.001/modules +ELPA_LDFLAGS= -lelpa +ELPA_LIB_DEPENDS= libelpa.so:math/elpa +ELPA_IMPLIES= MPI + PLIST_FILES= bin/fleur \ bin/inpgen |