879e75a659
benefit from the improved situation where libgcc_s is only used when absolutely necessary. Suggested by: tijl
38 lines
884 B
Makefile
38 lines
884 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= wannier90
|
|
DISTVERSION= 2.1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= science
|
|
MASTER_SITES= http://www.wannier.org/code/
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Maximally-localized Wannier functions (MLWFs) and Wannier90
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libblas.so:math/blas \
|
|
liblapack.so:math/lapack
|
|
|
|
USES= fortran gmake
|
|
USE_LDCONFIG= yes
|
|
|
|
MAKE_ARGS= FCOPTS="-fPIC -O3"
|
|
|
|
PLIST_FILES= bin/postw90.x \
|
|
bin/w90chk2chk.x \
|
|
bin/wannier90.x \
|
|
lib/libwannier.so
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|F90 = gfortran|&${GCC_DEFAULT}|' ${WRKSRC}/config/make.inc.gfort
|
|
@${RLN} ${WRKSRC}/config/make.inc.gfort ${WRKSRC}/make.inc
|
|
|
|
do-install:
|
|
.for p in wannier90.x postw90.x w90chk2chk.x
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p}
|
|
.endfor
|
|
${INSTALL_LIB} ${WRKSRC}/libwannier.so ${STAGEDIR}${PREFIX}/lib
|
|
|
|
.include <bsd.port.mk>
|