blob: fa6ef53f143bda6bc1534f45d68cf0cc3499552b (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
PORTNAME= symengine
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.0
PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast symbolic manipulation library, written in C++
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
CMAKE_ON= WITH_SYMENGINE_THREAD_SAFE BUILD_SHARED_LIBS BUILD_FOR_DISTRIBUTION
CMAKE_OFF= BUILD_BENCHMARKS WITH_COTIRE
OPTIONS_DEFINE= ARB ECM LLVM MPC TCMALLOC ASSERT
OPTIONS_SINGLE= INTCLASS
OPTIONS_SINGLE_INTCLASS= GMP GMPXX BOOSTMP FLINT PIRANHA
OPTIONS_DEFAULT= ARB ECM LLVM MPC TCMALLOC FLINT # FLINT choice is based on best performance
INTCLASS_DESC= Integer class, use integers from:
ARB_DESC= Build with Arb (interval arithmetic library)
ARB_CMAKE_BOOL= WITH_ARB
ARB_LIB_DEPENDS= libarb.so:math/arb \
libflint.so:math/flint2 \
libmpfr.so:math/mpfr
ECM_DESC= Build with ECM support (Elliptic Curve Method)
ECM_CMAKE_BOOL= WITH_ECM
ECM_LIB_DEPENDS= libecm.so:math/gmp-ecm
LLVM_DESC= Build with LLVM
LLVM_CMAKE_BOOL= WITH_LLVM
LLVM_CMAKE_ON= -DLLVM_INCLUDE_DIRS:STRING=${LOCALBASE}/llvm${LLVM_VERSION}/include
LLVM_BUILD_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
MPC_DESC= Build with MPC
MPC_CMAKE_BOOL= WITH_MPC
MPC_LIB_DEPENDS= libmpc.so:math/mpc
TCMALLOC_DESC= Use tcmalloc from google-perftools (improves performance)
TCMALLOC_CMAKE_BOOL= WITH_TCMALLOC
TCMALLOC_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools
ASSERT_CMAKE_BOOL= WITH_SYMENGINE_ASSERT
GMP_DESC= gmp (supports arbitrary fp precision)
GMP_CMAKE_ON= -DINTEGER_CLASS:STRING=gmp
GMP_LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr
GMPXX_DESC= gmpxx
GMPXX_CMAKE_ON= -DINTEGER_CLASS:STRING=gmpxx
GMPXX_LIB_DEPENDS= libgmp.so:math/gmp
BOOSTMP_DESC= boostmp (no arbitrary fp precision)
BOOSTMP_CMAKE_ON= -DINTEGER_CLASS:STRING=boostmp
BOOSTMP_BUILD_DEPENDS= ${LOCALBASE}/include/boost/multiprecision/cpp_int.hpp:devel/boost-libs
FLINT_DESC= flint (supports arbitrary fp precision, best performance)
FLINT_CMAKE_ON= -DINTEGER_CLASS:STRING=flint
FLINT_LIB_DEPENDS= libflint.so:math/flint2 \
libgmp.so:math/gmp \
libmpfr.so:math/mpfr
PIRANHA_DESC= piranha
PIRANHA_CMAKE_ON= -DINTEGER_CLASS:STRING=piranha
PIRANHA_BUILD_DEPENDS= piranha>0:math/piranha
LLVM_VERSION= ${LLVM_DEFAULT}
do-test: # one test fails: https://github.com/symengine/symengine/issues/1697
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|