summaryrefslogtreecommitdiff
path: root/math/spectra/Makefile
blob: 409b5d68f122b8c9072eb1d39717493dec2a0a27 (plain)
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

PORTNAME=	spectra
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.0
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++ library for large scale eigenvalue problems

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	gmake>0:devel/gmake

USES=		eigen:3,run
USE_GITHUB=	yes
GH_ACCOUNT=	yixuan

NO_BUILD=	yes
NO_ARCH=	yes

do-install:
	cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}

do-test: # some tests are known to fail: https://github.com/yixuan/spectra/issues/47
	@cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} CXXFLAGS=-I${LOCALBASE}/include/eigen3 ${GMAKE} all test

.include <bsd.port.mk>