Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= abinit |
4 |
PORTNAME= abinit |
5 |
DISTVERSION= 8.10.3 |
5 |
DISTVERSION= 9.2.2 |
6 |
PORTREVISION= 6 |
|
|
7 |
CATEGORIES= science |
6 |
CATEGORIES= science |
8 |
MASTER_SITES= LOCAL/yuri/ # https://www.abinit.org/sites/default/files/packages/ has the updated 8.10.3 tarball that doesn't compile |
|
|
9 |
|
7 |
|
10 |
MAINTAINER= yuri@FreeBSD.org |
8 |
MAINTAINER= yuri@FreeBSD.org |
11 |
COMMENT= Full-featured atomic-scale first-principles simulation software |
9 |
COMMENT= Full-featured atomic-scale first-principles simulation software |
Lines 13-45
Link Here
|
13 |
LICENSE= GPLv3 |
11 |
LICENSE= GPLv3 |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
13 |
|
16 |
ONLY_FOR_ARCHS= amd64 i386 |
14 |
ONLY_FOR_ARCHS= amd64 |
17 |
BROKEN= fails to build |
|
|
18 |
BROKEN_i386= Type mismatch in argument 'block_displ', see https://github.com/abinit/abinit/issues/19 |
19 |
|
15 |
|
20 |
LIB_DEPENDS= liblapack.so:math/lapack \ |
16 |
BUILD_DEPENDS= gm4:devel/m4 \ |
21 |
libblas.so:math/blas |
17 |
${PYNUMPY} \ |
|
|
18 |
${PY_PYGMENTS} \ |
19 |
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}graphviz>0:graphics/py-graphviz@${PY_FLAVOR} |
21 |
LIB_DEPENDS= libelpa.so:math/elpa \ |
22 |
libsz.so:science/szip \ |
23 |
libelpa.so:math/elpa \ |
24 |
libxc.so:science/libxc \ |
25 |
libfftw3.so:math/fftw3 \ |
26 |
libhdf5.so:science/hdf5 \ |
27 |
libxml2.so:textproc/libxml2 \ |
28 |
libnetcdf.so:science/netcdf \ |
29 |
libxmlf90.so:textproc/xmlf90 \ |
30 |
libwannier90.so:science/wannier90 \ |
31 |
libnetcdff.so:science/netcdf-fortran |
22 |
RUN_DEPENDS= atompaw:science/atompaw |
32 |
RUN_DEPENDS= atompaw:science/atompaw |
|
|
33 |
TEST_DEPENDS= ${PYNUMPY} \ |
34 |
libyaml>0:textproc/libyaml |
23 |
|
35 |
|
24 |
USES= fortran gmake localbase:ldflags |
36 |
USE_GITHUB= yes |
|
|
37 |
|
38 |
USES= autoreconf:build blaslapack:netlib fortran gmake gnome localbase:ldflags \ |
39 |
python:3.6+ shebangfix |
40 |
USE_GNOME= libxml2 |
41 |
SHEBANG_FILES= config/scripts/* doc/tutorial/paral_gspw_assets/abinit.sub.* |
42 |
SHEBANG_GLOB= *.py |
25 |
GNU_CONFIGURE= yes |
43 |
GNU_CONFIGURE= yes |
26 |
|
44 |
CONFIGURE_ENV= CC_LDFLAGS="${LDFLAGS}" CXX_LDFLAGS="${LDFLAGS}" FC_LDFLAGS="${LDFLAGS}" \ |
27 |
CONFIGURE_ENV= CC_LDFLAGS="${LDFLAGS}" CXX_LDFLAGS="${LDFLAGS}" FC_LDFLAGS="${LDFLAGS}" |
45 |
LINALG_FCFLAGS="-I${LOCALBASE}/include/elpa-2019.05.002/modules" \ |
28 |
CONFIGURE_ARGS= --enable-shared --disable-static |
46 |
LINALG_LIBS="${BLASLIB} ${LAPACKLIB} -lelpa" \ |
|
|
47 |
NETCDF_FORTRAN_FCFLAGS=-I${LOCALBASE}/include \ |
48 |
XMLF90_FCFLAGS=-I${LOCALBASE}/include \ |
49 |
WANNIER90_LIBS="${BLASLIB} ${LAPACKLIB} -lwannier90" |
50 |
CONFIGURE_ARGS= --with-fft --with-libxc --with-libxml2 --with-netcdf \ |
51 |
--with-netcdf-fortran --with-wannier90 --with-xmlf90 |
29 |
FCFLAGS+= -ffree-line-length-none |
52 |
FCFLAGS+= -ffree-line-length-none |
|
|
53 |
TEST_TARGET= tests_abirules tests_buildsys |
54 |
TEST_WRKSRC= ${WRKSRC}/abichecks |
55 |
PORTDOCS= * |
30 |
|
56 |
|
31 |
OPTIONS_DEFINE= OPENMP MPI |
57 |
OPTIONS_DEFINE= DOCS OPENMP MPI |
32 |
OPTIONS_DEFAULT= OPENMP MPI |
58 |
OPTIONS_DEFAULT= OPENMP MPI |
33 |
|
59 |
|
34 |
OPENMP_CONFIGURE_ENABLE= openmp |
60 |
OPENMP_CONFIGURE_ENABLE= openmp |
35 |
OPENMP_LDFLAGS= -lomp |
61 |
OPENMP_LDFLAGS= -lomp |
36 |
|
62 |
|
37 |
MPI_CONFIGURE_ENABLE= mpi |
63 |
MPI_CONFIGURE_WITH= mpi=yes |
38 |
MPI_VARS= FFLAGS+=-I${LOCALBASE}/include FCFLAGS+=-I${LOCALBASE}/include |
64 |
# fftw3 not enabled because libfftw3_mpi is required but not packaged |
39 |
MPI_LDFLAGS= ${LOCALBASE}/lib/libmpich.so ${LOCALBASE}/lib/libmpicxx.so ${LOCALBASE}/lib/libmpifort.so |
65 |
MPI_VARS= FFLAGS+=-I${LOCALBASE}/include FCFLAGS+=-I${LOCALBASE}/include \ |
|
|
66 |
CONFIGURE_ENV+=MPI_LIBS="`pkg-config --libs mpich` -lmpifort" \ |
67 |
CONFIGURE_ENV+MPI_LDFLAGS="`pkg-config --libs mpich` -lmpifort" |
40 |
MPI_LIB_DEPENDS= libmpi.so:net/mpich |
68 |
MPI_LIB_DEPENDS= libmpi.so:net/mpich |
41 |
|
69 |
|
42 |
do-test: |
70 |
.if defined(WITH_LEVMAR) |
43 |
@cd ${WRKSRC}/tests && ./configure && ${GMAKE} check |
71 |
# --with-levmar seems deprecated |
|
|
72 |
LIB_DEPENDS+= liblevmar.so:math/levmar |
73 |
CONFIGURE_ENV+= LEVMAR_LIBS="-llevmar ${BLASLIB} ${LAPACKLIB}" |
74 |
CONFIGURE_ARGS+= --with-levmar |
75 |
.endif |
44 |
|
76 |
|
|
|
77 |
pre-configure: |
78 |
(cd ${WRKSRC} && ./autogen.sh) |
79 |
|
80 |
post-install-DOCS-on: |
81 |
${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ |
82 |
${WRKSRC}/doc/tutorial/paral_moldyn_assets/diag_moldyn.py |
83 |
${RM} ${WRKSRC}/doc/tutorial/paral_moldyn_assets/diag_moldyn.py.bak |
84 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
85 |
${CP} -R ${WRKSRC}/doc/tutorial ${STAGEDIR}${DOCSDIR} |
86 |
|
87 |
pre-test: |
88 |
${TOUCH} ${TEST_WRKSRC}/make.log |
89 |
|
45 |
.include <bsd.port.mk> |
90 |
.include <bsd.port.mk> |