mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
math/z3: Improve port
* Use upstream release archive * Change USES= compiler:c++11-lang to compiler:c++20-lang * Do some slight rearragement of port Makefile to more closely follow Porters Handbook * Respect CPUTYPE set by framework Note: Upstream is inconsistent about versioning but 4.13.4.0 is defined in project files. PR: 283858 Reviewed by: arrowd (maintainer)
This commit is contained in:
parent
06074a9e7b
commit
a7559a88b5
3 changed files with 35 additions and 13 deletions
|
@ -1,7 +1,8 @@
|
||||||
PORTNAME= z3
|
PORTNAME= z3
|
||||||
DISTVERSIONPREFIX= z3-
|
DISTVERSION= 4.13.4.0
|
||||||
DISTVERSION= 4.13.4
|
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
|
MASTER_SITES= https://github.com/Z3Prover/z3/releases/download/${PORTNAME}-${DISTVERSION:R}/
|
||||||
|
DISTNAME= ${PORTNAME}_solver-${DISTVERSION}
|
||||||
|
|
||||||
MAINTAINER= arrowd@FreeBSD.org
|
MAINTAINER= arrowd@FreeBSD.org
|
||||||
COMMENT= Z3 Theorem Prover
|
COMMENT= Z3 Theorem Prover
|
||||||
|
@ -10,18 +11,17 @@ WWW= https://github.com/Z3Prover/z3
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||||
|
|
||||||
USES= cmake compiler:c++11-lang localbase:ldflags
|
USES= cmake compiler:c++20-lang localbase:ldflags
|
||||||
USE_GITHUB= yes
|
|
||||||
GH_ACCOUNT= Z3Prover
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= GMP
|
WRKSRC_SUBDIR= core
|
||||||
|
|
||||||
OPTIONS_SUB= yes
|
CMAKE_OFF= Z3_ENABLE_EXAMPLE_TARGETS
|
||||||
|
CMAKE_ARGS= -DCMAKE_INSTALL_PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= GMP
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
GMP_DESC= Use GMP library for AP arithmetic
|
|
||||||
GMP_CMAKE_BOOL= Z3_USE_LIB_GMP
|
GMP_CMAKE_BOOL= Z3_USE_LIB_GMP
|
||||||
GMP_LIB_DEPENDS= libgmp.so:math/gmp
|
GMP_LIB_DEPENDS= libgmp.so:math/gmp
|
||||||
|
|
||||||
CMAKE_ARGS= -DCMAKE_INSTALL_PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1736070226
|
TIMESTAMP = 1736078545
|
||||||
SHA256 (Z3Prover-z3-z3-4.13.4_GH0.tar.gz) = 4071977e66e9f3d239b7b098ceddfe62ffdf3c71e345e9524a4a5001d1f4adf3
|
SHA256 (z3_solver-4.13.4.0.tar.gz) = 66944689398d19f831f94524e95e99961d998afa27cfef1918a5a441029ea73f
|
||||||
SIZE (Z3Prover-z3-z3-4.13.4_GH0.tar.gz) = 5766645
|
SIZE (z3_solver-4.13.4.0.tar.gz) = 4969872
|
||||||
|
|
22
math/z3/files/patch-CMakeLists.txt
Normal file
22
math/z3/files/patch-CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Let Framework control CPU-specific optimizations
|
||||||
|
|
||||||
|
--- CMakeLists.txt.orig 2025-01-05 12:12:08 UTC
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -269,7 +269,7 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-################################################################################
|
||||||
|
+#[[ ################################################################################
|
||||||
|
# FP math
|
||||||
|
################################################################################
|
||||||
|
# FIXME: Support ARM "-mfpu=vfp -mfloat-abi=hard"
|
||||||
|
@@ -286,7 +286,7 @@ if ((TARGET_ARCHITECTURE STREQUAL "x86_64") OR (TARGET
|
||||||
|
list(APPEND Z3_COMPONENT_CXX_FLAGS ${SSE_FLAGS})
|
||||||
|
endif()
|
||||||
|
unset(SSE_FLAGS)
|
||||||
|
-endif()
|
||||||
|
+endif() ]]
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Threading support
|
Loading…
Add table
Reference in a new issue