blob: 11d1f5909b77f2f63d9bbc9731589b517502d739 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= siesta
DISTVERSION= 4.1.5
PORTREVISION= 1
CATEGORIES= science # chemistry
MASTER_SITES= https://gitlab.com/siesta-project/${PORTNAME}/-/releases/v${DISTVERSION}/downloads/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Program to perform efficient electronic structure calculations
WWW= https://icmab.es/siesta
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../COPYING
BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
BROKEN_FreeBSD_12_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
USES= fortran gmake localbase:ldflags
ALL_TARGET= default
WRKSRC_SUBDIR= Obj
PLIST_FILES= bin/${PORTNAME}
BINARY_ALIAS= gfortran=gfortran${GCC_DEFAULT} gcc=gcc${GCC_DEFAULT}
.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)).
FFLAGS+= -fallow-argument-mismatch
MAKE_ARGS= FFLAGS="${FFLAGS} -O2 -fPIC -ftree-vectorize"
.endif
pre-configure:
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh && \
${LN} -s gfortran.make arch.make
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.post.mk>
|