2018-09-03 19:51:32 +02:00
|
|
|
PORTNAME= siesta
|
2021-04-29 03:41:07 +02:00
|
|
|
DISTVERSION= 4.1.5
|
2018-09-03 19:51:32 +02:00
|
|
|
CATEGORIES= science
|
2021-04-29 03:41:07 +02:00
|
|
|
MASTER_SITES= https://gitlab.com/siesta-project/${PORTNAME}/-/releases/v${DISTVERSION}/downloads/
|
2018-09-03 19:51:32 +02:00
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Program to perform efficient electronic structure calculations
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/../COPYING
|
|
|
|
|
2021-05-19 05:58:56 +02:00
|
|
|
.for arch in aarch64 powerpc powerpc64 powerpc64le
|
|
|
|
BROKEN_${arch}= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
|
|
|
|
.endfor
|
2021-05-13 20:59:14 +02:00
|
|
|
|
2018-09-03 19:51:32 +02:00
|
|
|
LIB_DEPENDS= libblas.so:math/blas \
|
|
|
|
liblapack.so:math/lapack
|
|
|
|
|
|
|
|
USES= fortran gmake localbase:ldflags
|
2021-04-29 03:41:07 +02:00
|
|
|
|
2018-09-03 19:51:32 +02:00
|
|
|
ALL_TARGET= default
|
|
|
|
|
|
|
|
WRKSRC_SUBDIR= Obj
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2021-04-29 03:41:07 +02:00
|
|
|
BINARY_ALIAS= gfortran=gfortran${GCC_DEFAULT} gcc=gcc${GCC_DEFAULT}
|
|
|
|
|
2020-11-17 23:40:45 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${GCC_DEFAULT} >= 10
|
|
|
|
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)).
|
2021-04-29 03:41:07 +02:00
|
|
|
FFLAGS+= -fallow-argument-mismatch
|
|
|
|
MAKE_ARGS= FFLAGS="${FFLAGS} -O2 -fPIC -ftree-vectorize"
|
2020-11-17 23:40:45 +01:00
|
|
|
.endif
|
|
|
|
|
2018-09-03 19:51:32 +02:00
|
|
|
pre-configure:
|
2021-04-29 03:41:07 +02:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh && \
|
|
|
|
${LN} -s gfortran.make arch.make
|
2018-09-03 19:51:32 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
2020-11-17 23:40:45 +01:00
|
|
|
.include <bsd.port.post.mk>
|