2018-07-23 16:15:02 +00:00
|
|
|
PORTNAME= quantlib
|
2020-10-29 16:51:31 +00:00
|
|
|
PORTVERSION= 1.20
|
2022-08-12 14:46:53 +00:00
|
|
|
PORTREVISION= 2
|
2018-07-23 16:15:02 +00:00
|
|
|
CATEGORIES= finance math devel
|
|
|
|
MASTER_SITES= https://dl.bintray.com/${PORTNAME}/releases/
|
|
|
|
DISTNAME= QuantLib-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
COMMENT= C++ library for quantitative finance
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://www.quantlib.org/
|
2018-07-23 16:15:02 +00:00
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
|
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs
|
|
|
|
|
2019-06-17 11:38:44 +00:00
|
|
|
USES= compiler:c++11-lang libtool
|
2018-07-23 16:15:02 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= EMACS=no
|
|
|
|
MAKE_ENV+= AM_MAKEFLAGS=${_MAKE_JOBS}
|
|
|
|
TEST_TARGET= check-examples check
|
2020-10-29 16:51:31 +00:00
|
|
|
TEST_ARGS+= -j1 # Tests use OpenMP - do not parallelize them
|
|
|
|
TEST_ENV+= OMP_NUM_THREADS=${MAKE_JOBS_NUMBER}
|
2018-07-23 16:15:02 +00:00
|
|
|
OPTIONS_SUB= please
|
|
|
|
|
2020-10-29 16:51:31 +00:00
|
|
|
OPTIONS_DEFAULT=OPENMP EXAMPLES BENCHMARK
|
2018-07-23 16:15:02 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= TRACING INDEXED_COUPONS
|
|
|
|
OPTIONS_DEFINE+=EXTRA_SAFETY_CHECKS SESSIONS INTRADAY
|
|
|
|
OPTIONS_DEFINE+=THREAD_SAFE_OBSERVER_PATTERN
|
|
|
|
OPTIONS_DEFINE+=THREAD_SAFE_SINGLETON_INIT
|
|
|
|
OPTIONS_DEFINE+=${OPTIONS_DEFAULT}
|
|
|
|
|
|
|
|
BENCHMARK_DESC= Install benchmark (it is always built)
|
|
|
|
EXTRA_SAFETY_CHECKS_DESC=Trade performance for run-time checks
|
|
|
|
INDEXED_COUPONS_DESC= Use indexed rather than par coupons
|
|
|
|
INTRADAY_DESC= Time precision of msecs, instead of days
|
|
|
|
TRACING_DESC= Trade performance for more detailed errors
|
|
|
|
SESSIONS_DESC= See help
|
|
|
|
|
|
|
|
EXAMPLES_CONFIGURE_WITH=lispdir=${EXAMPLESDIR}
|
2020-10-29 16:51:31 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-unity-build
|
2018-07-23 16:15:02 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-parallel-unit-test-runner
|
|
|
|
CONFIGURE_ARGS+= --with-boost-include=${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --with-boost-lib=${LOCALBASE}/lib
|
2020-10-29 16:51:31 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-std-classes # Prefer C++11 to Boost
|
2018-07-23 16:15:02 +00:00
|
|
|
|
|
|
|
.for o in ${OPTIONS_DEFINE}
|
|
|
|
$o_CONFIGURE_ENABLE= ${o:S/_/-/g:tl}
|
|
|
|
.endfor
|
|
|
|
|
2019-03-05 21:36:27 +00:00
|
|
|
CXXFLAGS_i386= -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
|
|
|
|
|
2018-07-23 16:15:02 +00:00
|
|
|
.include <bsd.port.mk>
|