aboutsummaryrefslogtreecommitdiff
path: root/math/mpfrc++/Makefile
blob: 6d637679307a7f4d0f072079b92ea640e0966249 (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
PORTNAME=	mpfrc++
DISTVERSIONPREFIX=	${PORTNAME}-
DISTVERSION=	3.7.0
CATEGORIES=	math devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	High-performance C++ interface for MPFR library
WWW=		http://www.holoborodko.com/pavel/mpfr/

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

RUN_DEPENDS=	${PREFIX}/include/mpfr.h:math/mpfr
TEST_DEPENDS=	${PREFIX}/include/mpfr.h:math/mpfr

USE_GITHUB=	yes
GH_ACCOUNT=	advanpix
GH_PROJECT=	mpreal

NO_BUILD=	yes
NO_ARCH=	yes

PLIST_FILES=	include/mpreal.h

do-install:
	${INSTALL_DATA} ${WRKSRC}/mpreal.h ${STAGEDIR}${PREFIX}/include/

do-test:
	@${CXX} -o ${WRKDIR}/test \
		-I${PREFIX}/include -I ${STAGEDIR}${PREFIX}/include \
		-L${PREFIX}/lib -lmpfr \
		${WRKSRC}/example/example.cpp && \
	${WRKDIR}/test && \
	${ECHO} "Test succeeded"

.include <bsd.port.mk>