aboutsummaryrefslogtreecommitdiffstats
path: root/math/primesum/Makefile
blob: fea9a55fc1dbdac06ff3dd2d66df44577f8b74a6 (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
PORTNAME=	primesum
DISTVERSIONPREFIX=	v
DISTVERSION=	1.7-19
DISTVERSIONSUFFIX=	-gac22b96
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Sum of the primes below x
WWW=		https://github.com/kimwalisch/primesum

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_armv6=	compiler does not support int128_t
BROKEN_armv7=	compiler does not support int128_t
BROKEN_i386=	compiler does not support int128_t
BROKEN_powerpc=	compiler does not support int128_t

USES=		cmake:testing compiler:c++11-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	kimwalisch

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	BUILD_STATIC_LIBS

do-test:
	@cd ${TEST_WRKSRC} && \
		${SETENV} LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/bin/primesum --test

.include <bsd.port.mk>