1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/clad/Makefile
2023-07-19 11:26:04 -07:00

35 lines
797 B
Makefile

PORTNAME= clad
DISTVERSIONPREFIX= v
DISTVERSION= 1.2
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Automatic differentiation for C/C++
WWW= https://github.com/vgvassilev/clad
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/License.txt
USES= cmake:testing compiler:c++14-lang llvm:15,build,run
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= vgvassilev
CMAKE_ARGS= -DClang_DIR=${LLVM_PREFIX}/lib/cmake/clang \
-DLLVM_DIR=${LLVM_PREFIX}/lib/cmake/llvm \
-DLLVM_EXTERNAL_LIT=${LLVM_PREFIX}/bin/llvm-lit
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_TESTING_ON= FREEBSD_BUILD_TESTS FREEBSD_BUILD_DEMOS
CMAKE_TESTING_TARGET= check-clad
post-patch:
@${REINPLACE_CMD} \
-e ' \
s|import lit|&${LLVM_VERSION}|; \
s|lit\.|lit${LLVM_VERSION}.| \
' \
${WRKSRC}/test/lit.cfg
.include <bsd.port.mk>