PORTNAME= siesta DISTVERSION= 4.1.5 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 BROKEN_FreeBSD_13_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890 BROKEN_FreeBSD_13_powerpc64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug#255890 BROKEN_FreeBSD_13_powerpc64le= 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 .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