View | Details | Raw Unified | Return to bug 252162 | Differences between
and this patch

Collapse All | Expand All

(-)science/wannier90/Makefile (-7 / +14 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	wannier90
3
PORTNAME=	wannier90
4
PORTVERSION=	3.1.0
4
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
5
DISTVERSION=	3.1.0
6
PORTREVISION=	1
6
CATEGORIES=	science
7
CATEGORIES=	science
7
8
8
MAINTAINER=	yuri@FreeBSD.org
9
MAINTAINER=	yuri@FreeBSD.org
Lines 11-39 Link Here
11
LICENSE=	GPLv2
12
LICENSE=	GPLv2
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
14
LIB_DEPENDS=	libblas.so:math/blas \
15
USES=		blaslapack:netlib fortran gmake python:test shebangfix
15
		liblapack.so:math/lapack
16
17
USES=		fortran gmake
18
USE_GITHUB=	yes
16
USE_GITHUB=	yes
19
GH_ACCOUNT=	wannier-developers
17
GH_ACCOUNT=	wannier-developers
18
SHEBANG_FILES=	test-suite/run_tests test-suite/clean_tests	\
19
		test-suite/tools/fprettify-wrapper.py	\
20
		test-suite/testcode/bin/testcode.py	\
21
		test-suite/library-mode-test/compare_results.py	\
22
		utility/k_mapper.py utility/gw2wannier90.py
20
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
21
24
22
MAKE_ARGS=	FCOPTS="-fPIC -O3"
25
MAKE_ARGS=	FCOPTS="-fPIC -O3"
26
TEST_TARGET=	tests
23
27
24
PLIST_FILES=	bin/postw90.x \
28
PLIST_FILES=	bin/postw90.x \
25
		bin/w90chk2chk.x \
29
		bin/w90chk2chk.x \
26
		bin/wannier90.x \
30
		bin/wannier90.x \
27
		lib/libwannier.so
31
		lib/libwannier.so \
32
		lib/libwannier.so.0
28
33
29
post-patch:
34
post-patch:
30
	@${REINPLACE_CMD} 's|F90 = gfortran|&${GCC_DEFAULT}|' ${WRKSRC}/config/make.inc.gfort
35
	@${REINPLACE_CMD} 's|F90 = gfortran|&${GCC_DEFAULT}|' ${WRKSRC}/config/make.inc.gfort
31
	@${RLN} ${WRKSRC}/config/make.inc.gfort ${WRKSRC}/make.inc
36
	@${RLN} ${WRKSRC}/config/make.inc.gfort ${WRKSRC}/make.inc
37
	@${REINPLACE_CMD} 's|make|${GMAKE}|' ${WRKSRC}/test-suite/run_tests
32
38
33
do-install:
39
do-install:
34
.for p in wannier90.x postw90.x w90chk2chk.x
40
.for p in wannier90.x postw90.x w90chk2chk.x
35
	${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p}
41
	${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p}
36
.endfor
42
.endfor
37
	${INSTALL_LIB} ${WRKSRC}/src/obj/libwannier.so ${STAGEDIR}${PREFIX}/lib
43
	${INSTALL_LIB} ${WRKSRC}/src/obj/libwannier.so ${STAGEDIR}${PREFIX}/lib/libwannier.so.0
44
	${LN} -sf libwannier.so.0 ${STAGEDIR}${PREFIX}/lib/libwannier.so
38
45
39
.include <bsd.port.mk>
46
.include <bsd.port.mk>

Return to bug 252162