summaryrefslogtreecommitdiff
path: root/science/siesta/Makefile
blob: f04bdb0a021531b2d5ac7d1b4b12ecea41de745c (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
PORTNAME=	siesta
DISTVERSION=	4.0.2
PORTREVISION=	3
CATEGORIES=	science
MASTER_SITES=	https://launchpad.net/${PORTNAME}/${DISTVERSION:R}/${DISTVERSION}/+download/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Program to perform efficient electronic structure calculations

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/../COPYING

LIB_DEPENDS=	libblas.so:math/blas \
		liblapack.so:math/lapack

USES=		fortran gmake localbase:ldflags
GNU_CONFIGURE=	yes
CONFIGURE_SCRIPT=	../Src/configure
ALL_TARGET=	default

WRKSRC_SUBDIR=	Obj

MAKE_JOBS_UNSAFE=	yes

PLIST_FILES=	bin/${PORTNAME}

.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)).
FCFLAGS+=	-fallow-argument-mismatch
.endif

pre-configure:
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.post.mk>