mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
Re-add port: science/abinit: Full-featured atomic-scale first-principles simulation software
The taball for the 8.10.3 version was replaced on the upstream website with significant updates in it. The new tarball doesn't compile. I preserved the previous 8.10.3 version tarball so that the package can build. The new, 9.x version is upcoming.
This commit is contained in:
parent
a90c3c69b1
commit
4896dfbb92
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=535843
1
MOVED
1
MOVED
@ -14818,7 +14818,6 @@ print/pmw||2020-05-05|Has expired: Broken for more than 6 months
|
||||
print/rprint||2020-05-05|Has expired: Broken for more than 6 months
|
||||
russian/p5-cyrillic||2020-05-05|Has expired: Broken for more than 6 months
|
||||
russian/tidyup-mail||2020-05-05|Has expired: Broken for more than 6 months
|
||||
science/abinit||2020-05-05|Has expired: Broken for more than 6 months
|
||||
science/atom||2020-05-05|Has expired: Broken for more than 6 months
|
||||
science/cp2k||2020-05-05|Has expired: Broken for more than 6 months
|
||||
science/esys-particle||2020-05-05|Has expired: Broken for more than 6 months
|
||||
|
@ -22,6 +22,7 @@
|
||||
SUBDIR += R-cran-snow
|
||||
SUBDIR += R-cran-som
|
||||
SUBDIR += R-cran-udunits2
|
||||
SUBDIR += abinit
|
||||
SUBDIR += afni
|
||||
SUBDIR += agrum
|
||||
SUBDIR += aircraft-datcom
|
||||
|
44
science/abinit/Makefile
Normal file
44
science/abinit/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# Created by: NAKATA Maho <maho@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= abinit
|
||||
DISTVERSION= 8.10.3
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= science
|
||||
MASTER_SITES= LOCAL/yuri/ # https://www.abinit.org/sites/default/files/packages/ has the updated 8.10.3 tarball that doesn't compile
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Full-featured atomic-scale first-principles simulation software
|
||||
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
BROKEN_i386= Type mismatch in argument 'block_displ', see https://github.com/abinit/abinit/issues/19
|
||||
|
||||
LIB_DEPENDS= liblapack.so:math/lapack \
|
||||
libblas.so:math/blas
|
||||
RUN_DEPENDS= atompaw:science/atompaw
|
||||
|
||||
USES= fortran gmake localbase:ldflags
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
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= -lomp
|
||||
|
||||
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
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC}/tests && ./configure && ${GMAKE} check
|
||||
|
||||
.include <bsd.port.mk>
|
3
science/abinit/distinfo
Normal file
3
science/abinit/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1550812825
|
||||
SHA256 (abinit-8.10.3.tar.gz) = 922e38edab95e1763c4d504a927f7ea4e19da3143e5b33c5d6e4b41210bf5a9d
|
||||
SIZE (abinit-8.10.3.tar.gz) = 88310400
|
11
science/abinit/files/patch-Makefile.in
Normal file
11
science/abinit/files/patch-Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in.orig 2018-06-14 05:16:42 UTC
|
||||
+++ Makefile.in
|
||||
@@ -876,7 +876,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
|
||||
@abi_ac_distcheck@ \
|
||||
PYFLAGS="@PYFLAGS@ -B"
|
||||
|
||||
-SUBDIRS = fallbacks src abichecks tests
|
||||
+SUBDIRS = fallbacks src abichecks
|
||||
|
||||
# Additional files to clean
|
||||
CLEANFILES = config.optim config.fc_info.tmp
|
11
science/abinit/files/patch-src_02__clib_md5.c
Normal file
11
science/abinit/files/patch-src_02__clib_md5.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/02_clib/md5.c.orig 2017-02-28 12:02:53 UTC
|
||||
+++ src/02_clib/md5.c
|
||||
@@ -47,7 +47,7 @@
|
||||
#ifdef HAVE_MALLOC_MALLOC_H
|
||||
# include <malloc/malloc.h>
|
||||
#else
|
||||
-# include <malloc.h>
|
||||
+# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include "md5.h"
|
14
science/abinit/pkg-descr
Normal file
14
science/abinit/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
ABINIT is a package whose main program allows one to find the total energy,
|
||||
charge density and electronic structure of systems made of electrons and nuclei
|
||||
(molecules and periodic solids) within Density Functional Theory (DFT), using
|
||||
pseudopotentials and a planewave or wavelet basis. ABINIT also includes options
|
||||
to optimize the geometry according to the DFT forces and stresses, or to perform
|
||||
molecular dynamics simulations using these forces, or to generate dynamical
|
||||
matrices, Born effective charges, and dielectric tensors, based on
|
||||
Density-Functional Perturbation Theory, and many more properties. Excited states
|
||||
can be computed within the Many-Body Perturbation Theory (the GW approximation
|
||||
and the Bethe-Salpeter equation), and Time-Dependent Density Functional Theory
|
||||
(for molecules). In addition to the main ABINIT code, different utility programs
|
||||
are provided.
|
||||
|
||||
WWW: https://www.abinit.org
|
23
science/abinit/pkg-plist
Normal file
23
science/abinit/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
bin/abinit
|
||||
bin/aim
|
||||
bin/anaddb
|
||||
bin/band2eps
|
||||
bin/bsepostproc
|
||||
bin/conducti
|
||||
bin/cut3d
|
||||
bin/dummy_tests
|
||||
bin/fftprof
|
||||
bin/fold2Bloch
|
||||
bin/ioprof
|
||||
bin/lapackprof
|
||||
bin/macroave
|
||||
bin/mrgddb
|
||||
bin/mrgdv
|
||||
bin/mrggkk
|
||||
bin/mrgscr
|
||||
bin/multibinit
|
||||
bin/optic
|
||||
bin/tdep
|
||||
bin/ujdet
|
||||
bin/vdw_kernelgen
|
||||
libdata/pkgconfig/abinit.pc
|
Loading…
Reference in New Issue
Block a user