2018-07-18 23:47:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= quantum-espresso
|
|
|
|
DISTVERSIONPREFIX= qe-
|
2019-03-06 04:17:45 +01:00
|
|
|
DISTVERSION= 6.4
|
2018-07-18 23:47:12 +02:00
|
|
|
CATEGORIES= science
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Package for research in electronic structure, simulation, optimization
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/License
|
|
|
|
|
|
|
|
BUILD_DEPENDS= fox-xml>0:textproc/fox-xml \
|
|
|
|
bash:shells/bash
|
2018-09-22 18:36:38 +02:00
|
|
|
LIB_DEPENDS= libmpich.so:net/mpich \
|
2018-07-18 23:47:12 +02:00
|
|
|
libblas.so:math/blas \
|
|
|
|
liblapack.so:math/lapack
|
|
|
|
|
|
|
|
USES= fortran gmake python shebangfix
|
2019-03-06 04:17:45 +01:00
|
|
|
SHEBANG_FILES= configure
|
2018-07-18 23:47:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= QEF
|
|
|
|
GH_PROJECT= q-e
|
|
|
|
|
|
|
|
MAKE_ARGS= TOPDIR=${WRKSRC}
|
|
|
|
BINARY_ALIAS= make=gmake cpp=/usr/local/bin/cpp${GCC_DEFAULT}
|
|
|
|
FFLAGS+= -x f95-cpp-input
|
|
|
|
LDFLAGS+= ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so -lm
|
|
|
|
|
|
|
|
MAKE_JOBS_UNSAFE= yes # https://github.com/QEF/q-e/issues/9
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/archive/lapack-3.6.1.tgz
|
|
|
|
@cd ${WRKSRC} && ${MKDIR} FoX && ${LN} -s ${LOCALBASE}/include FoX/finclude
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${REINPLACE_CMD} -i '' -e ' \
|
|
|
|
s|$$(CPP) $$(CPPFLAGS)|$$(CPP) -P -traditional $$(CPPFLAGS)| ; \
|
|
|
|
s|LD *=.*|LD=${CC}| ; \
|
|
|
|
s|LAPACK_LIBS *=.*|LAPACK_LIBS=-L${LOCALBASE}/lib -llapack -lblas|' \
|
|
|
|
${WRKSRC}/make.inc
|
|
|
|
|
2018-07-19 12:18:07 +02:00
|
|
|
run-examples: build
|
|
|
|
.for c in PP PW PWCOND PHonon
|
|
|
|
@cd ${WRKSRC}/$c/examples && PREFIX=${STAGEDIR}${PREFIX} ./run_all_examples
|
|
|
|
.endfor
|
2018-07-18 23:47:12 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|