From 3ffa9799b7bac2b3bc5a58ca8ec4dd26684e561a Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 9 Jun 2020 17:38:49 +0000 Subject: [PATCH] math/mppp: Add optional dependencies math/mpc, math/arb; Turn on the IPO option --- math/mppp/Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/math/mppp/Makefile b/math/mppp/Makefile index 04660dd7c936..65723835458b 100644 --- a/math/mppp/Makefile +++ b/math/mppp/Makefile @@ -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} && \