z3: fix build_style

- the script is configure
- respect configure_args
- fix xlint errors about build_options_default
- fix xlint errors about post_install
This commit is contained in:
maxice8 2018-09-24 15:52:17 -03:00 committed by maxice8
parent 3bfd1e1025
commit c2ce9fe335

View file

@ -3,7 +3,8 @@ pkgname=z3
version=4.7.1
revision=3
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
build_style=configure
configure_args="--prefix=/usr -g --python $(vopt_if ocaml --ml)"
make_build_args="-C build all examples"
make_install_args="-C build install"
hostmakedepends="python3 $(vopt_if ocaml 'ocaml ocaml-findlib')"
@ -16,21 +17,18 @@ license="MIT"
homepage="https://github.com/Z3Prover/z3"
distfiles="https://github.com/Z3Prover/z3/archive/${pkgname}-${version}.tar.gz"
checksum=a353e3da00cdaffd258052cc1406efc854606855222ab4bfd5679c58af5c11c7
build_options="ocaml"
desc_option_ocaml="Enable support for OCaml bindings"
build_options_default="ocaml"
shlib_provides="libz3.so"
subpackages="$(vopt_if ocaml z3-ocaml)"
if [ "$CROSS_BUILD" ]; then
build_options_default=
if [ -z "$CROSS_BUILD" ]; then
build_options_default="ocaml"
fi
do_configure() {
LDFLAGS="$CFLAGS $LDFLAGS" ./configure --prefix=/usr -g --python $(vopt_if ocaml --ml)
}
post_install() {
post_install() {
vbin build/z3_tptp
vbin build/maxsat
if [ "$build_option_ocaml" ]; then