freebsd-ports/science/quantum-espresso/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

51 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= quantum-espresso
DISTVERSIONPREFIX= qe-
DISTVERSION= 6.3
PORTREVISION= 5
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
LIB_DEPENDS= libmpich.so:net/mpich \
libblas.so:math/blas \
liblapack.so:math/lapack
USES= fortran gmake python shebangfix
SHEBANG_FILES= configure PW/tools/cell2ibrav.py
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
run-examples: build
.for c in PP PW PWCOND PHonon
@cd ${WRKSRC}/$c/examples && PREFIX=${STAGEDIR}${PREFIX} ./run_all_examples
.endfor
.include <bsd.port.mk>