math/mppp: Add optional dependencies math/mpc, math/arb; Turn on the IPO option

This commit is contained in:
Yuri Victorovich
2020-06-09 17:38:49 +00:00
parent 410746a8a8
commit 3ffa9799b7
+10 -7
View File
@@ -3,6 +3,7 @@
PORTNAME= mppp
DISTVERSIONPREFIX= v
DISTVERSION= 0.20
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
@@ -11,18 +12,20 @@ COMMENT= Multiprecision for modern C++
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/COPYING
# build only checks that the headers exist, and then they are included in the run time
BUILD_DEPENDS= ${LOCALBASE}/include/gmp.h:math/gmp \
${LOCALBASE}/include/mpfr.h:math/mpfr
RUN_DEPENDS= ${LOCALBASE}/include/gmp.h:math/gmp \
${LOCALBASE}/include/mpfr.h:math/mpfr
LIB_DEPENDS= libarb.so:math/arb \
libflint.so:math/flint2 \
libgmp.so:math/gmp \
libmpc.so:math/mpc \
libmpfr.so:math/mpfr
USES= cmake compiler:c++14-lang
USE_GITHUB= yes
GH_ACCOUNT= bluescarni
TEST_ARGS= -DMPPP_BUILD_TESTS=ON -DMPPP_WITH_MPFR=ON -DMPPP_WITH_QUADMATH=OFF # no quad-precision fp type on FreeBSD, requested __float128 reinstantiation, bug#238129
BENCHMARK_ARGS= -DMPPP_BUILD_BENCHMARKS=ON -DMPPP_BENCHMARK_BOOST=OFF
CMAKE_ON= MPPP_WITH_ARB MPPP_WITH_MPC MPPP_WITH_MPFR MPPP_ENABLE_IPO
CMAKE_OFF= MPPP_WITH_QUADMATH # no quad-precision fp type on FreeBSD, requested __float128 reinstantiation, bug#238129
TEST_ARGS= -DMPPP_BUILD_TESTS=ON -DMPPP_WITH_QUADMATH=OFF
BENCHMARK_ARGS= -DMPPP_BUILD_BENCHMARKS=ON -DMPPP_BENCHMARK_FLINT=ON -DMPPP_BENCHMARK_BOOST=ON
do-test:
@cd ${BUILD_WRKSRC} && \