aboutsummaryrefslogtreecommitdiff
path: root/science/triqs/Makefile
blob: 20a165feeab47eb8899edc69dbb37c60fc2f3d29 (plain) (blame)
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
41
42
43
44
45
46
47
48
# $FreeBSD$

PORTNAME=	triqs
DISTVERSION=	2.0
PORTREVISION=	1
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Toolbox for Research on Interacting Quantum Systems

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

BROKEN_FreeBSD_10=	fatal error: 'optional' file not found
BROKEN_i386=		error: no matching function for call to 'max': https://github.com/TRIQS/triqs/issues/596

BUILD_DEPENDS=	boost-libs>=1.53:devel/boost-libs \
		${PYNUMPY}
LIB_DEPENDS=	libcpp2py.so:devel/cpp2py \
		libfftw3.so:math/fftw3 \
		libgmp.so:math/gmp \
		libhdf5.so:science/hdf5 \
		libmpi.so:net/openmpi \
		libopa.so:net/mpich2 \
		libopenblas.so:math/openblas \
		libsz.so:science/szip
RUN_DEPENDS=	${PYNUMPY}

PORTSCOUT=	limit:^[0-9]+\.[0-9].*$$

USES=		cmake:outsource,noninja fortran gettext-runtime python:2.7- # python:2.7- matches that in devel/cpp2py
USE_GITHUB=	yes
GH_ACCOUNT=	${PORTNAME:tu}
USE_LDCONFIG=	yes

# It requires c++17, which might be missing in compilers choosable with USES=compiler
LLVM_VER=	60
BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
CPP=		clang-cpp${LLVM_VER}
CC=		clang${LLVM_VER}
CXX=		clang++${LLVM_VER}

post-install:
	@cd ${STAGEDIR}${PREFIX} && ${RM} include/gtest.h lib/libgtest.so
	@cd ${STAGEDIR}${PREFIX} && ${RM} share/triqs.modulefile share/triqsvars.sh # https://github.com/TRIQS/triqs/issues/590
	@cd ${STAGEDIR}${PREFIX} && ${RM} share/cmake/run_test.cmake

.include <bsd.port.mk>