2019-11-08 05:59:14 +01:00
|
|
|
PORTNAME= mpfrc++
|
2020-11-14 22:31:57 +01:00
|
|
|
DISTVERSIONPREFIX= ${PORTNAME}-
|
2022-01-31 18:48:27 +01:00
|
|
|
DISTVERSION= 3.6.9
|
2019-11-08 05:59:14 +01:00
|
|
|
CATEGORIES= math devel
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= High-performance C++ interface for MPFR library
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= http://www.holoborodko.com/pavel/mpfr/
|
2019-11-08 05:59:14 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/copying.txt
|
|
|
|
|
2022-01-31 18:48:27 +01:00
|
|
|
RUN_DEPENDS= ${PREFIX}/include/mpfr.h:math/mpfr
|
|
|
|
TEST_DEPENDS= ${PREFIX}/include/mpfr.h:math/mpfr
|
|
|
|
|
2020-11-14 22:31:57 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= advanpix
|
|
|
|
GH_PROJECT= mpreal
|
2019-11-08 05:59:14 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
PLIST_FILES= include/mpreal.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mpreal.h ${STAGEDIR}${PREFIX}/include/
|
|
|
|
|
2022-01-31 18:48:27 +01:00
|
|
|
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"
|
|
|
|
|
2019-11-08 05:59:14 +01:00
|
|
|
.include <bsd.port.mk>
|