kumquat-buildroot/package/z3/z3.mk
Julien Olivain 2ad68ff8df package/z3: new package
Z3, also known as the Z3 Theorem Prover, is a cross-platform
satisfiability modulo theories (SMT) solver.

https://github.com/Z3Prover/z3

Signed-off-by: Julien Olivain <ju.o@free.fr>
[yann.morin.1998@free.fr:
  - python bindings 'depends on' python, not 'select' it
  - fix check-package in test_z3.py
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-11-20 14:54:58 +01:00

23 lines
608 B
Makefile

################################################################################
#
# z3
#
################################################################################
Z3_VERSION = 4.11.2
Z3_SITE = $(call github,Z3Prover,z3,z3-$(Z3_VERSION))
Z3_LICENSE = MIT
Z3_LICENSE_FILES = LICENSE.txt
Z3_INSTALL_STAGING = YES
Z3_SUPPORTS_IN_SOURCE_BUILD = NO
ifeq ($(BR2_PACKAGE_Z3_PYTHON),y)
Z3_CONF_OPTS += \
-DCMAKE_INSTALL_PYTHON_PKG_DIR=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
-DZ3_BUILD_PYTHON_BINDINGS=ON
else
Z3_CONF_OPTS += -DZ3_BUILD_PYTHON_BINDINGS=OFF
endif
$(eval $(cmake-package))