1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/math/stanmath/Makefile
Yuri Victorovich 0415d9fd18 math/stanmath: update 4.7.0 → 4.8.1
Reported by:	portscout
2024-01-24 00:26:00 -08:00

39 lines
992 B
Makefile

PORTNAME= stanmath
DISTVERSIONPREFIX= v
DISTVERSION= 4.8.1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ template library for automatic differentiation
WWW= https://mc-stan.org/math/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
RUN_DEPENDS= ${LOCALBASE}/include/boost/math/constants/constants.hpp:devel/boost-libs \
${LOCALBASE}/include/tbb/task_arena.h:devel/onetbb # compiler define -DTBB_INTERFACE_NEW chooses oneTBB as opposed to TBB
TEST_DEPENDS= gmake:devel/gmake
USES= eigen:3,run gmake python:test shebangfix
USE_GITHUB= yes
GH_ACCOUNT= stan-dev
GH_PROJECT= math
SHEBANG_FILES= runTests.py
MAKE_ENV= TBB_LIB="${LOCALBASE}/lib"
BINARY_ALIAS= make=${GMAKE}
NO_BUILD= yes
NO_ARCH= yes
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} stan ${STAGEDIR}${PREFIX}/include
do-test: # fails to link with TBB, see https://github.com/stan-dev/math/issues/2851
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./runTests.py test/unit test/prob
.include <bsd.port.mk>