Files
ports/math/z3/Makefile
T
2026-02-21 11:06:07 +03:00

35 lines
802 B
Makefile

PORTNAME= z3
DISTVERSION= 4.16.0.0
CATEGORIES= math
MASTER_SITES= https://github.com/Z3Prover/z3/releases/download/${PORTNAME}-${DISTVERSION:R}/
DISTNAME= ${PORTNAME}_solver-${DISTVERSION}
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Z3 Theorem Prover
WWW= https://z3prover.github.io/ \
https://github.com/Z3Prover/z3/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake:testing compiler:c++20-lang localbase:ldflags
CMAKE_ARGS= -DCMAKE_INSTALL_PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig
CMAKE_OFF= Z3_ENABLE_EXAMPLE_TARGETS
CMAKE_TESTING_TARGET= test-z3
WRKSRC_SUBDIR= core
PLIST_SUB= SOVERSION=${DISTVERSION}
OPTIONS_DEFINE= GMP
OPTIONS_SUB= yes
GMP_LIB_DEPENDS= libgmp.so:math/gmp
GMP_CMAKE_BOOL= Z3_USE_LIB_GMP
post-test:
cd ${BUILD_WRKSRC} && ./test-z3 /a
.include <bsd.port.mk>