46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'z3'
|
|
pkgname=z3
|
|
version=4.5.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
hostmakedepends="python"
|
|
makedepends="libgomp-devel gmp-devel"
|
|
depends="python python-setuptools"
|
|
pycompile_module="z3"
|
|
short_desc="Z3 theorem prover and SMT solver (command line + Python module)"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/Z3Prover/z3"
|
|
distfiles="https://github.com/Z3Prover/z3/archive/${pkgname}-${version}.tar.gz"
|
|
checksum=aeae1d239c5e06ac183be7dd853775b84698db1265cb2258e5918a28372d4a0c
|
|
|
|
do_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) : good ;;
|
|
*)
|
|
sed -i 's/-msse\|-msse2\|-mfpmath=sse//g' scripts/mk_util.py
|
|
sed -i '/define USE_INTRINSICS\|emmintrin.h/d' src/util/hwf.cpp
|
|
esac
|
|
|
|
LDFLAGS="$CFLAGS $LDFLAGS" ./configure --prefix=/usr -g
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} -C build all examples
|
|
}
|
|
|
|
do_install() {
|
|
vbin build/z3
|
|
vbin build/z3_tptp
|
|
vbin build/maxsat
|
|
vinstall build/libz3.so 0644 usr/lib
|
|
for f in src/api/z3*.h; do
|
|
vinstall $f 0644 usr/include
|
|
done
|
|
vinstall src/api/c++/z3++.h 0644 usr/include
|
|
for f in build/python/z3/*; do
|
|
vinstall $f 0644 usr/lib/python2.7/site-packages/z3
|
|
done
|
|
vlicense LICENSE.txt
|
|
}
|