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:
parent
3bfd1e1025
commit
c2ce9fe335
1 changed files with 7 additions and 9 deletions
|
@ -3,7 +3,8 @@ pkgname=z3
|
||||||
version=4.7.1
|
version=4.7.1
|
||||||
revision=3
|
revision=3
|
||||||
wrksrc="${pkgname}-${pkgname}-${version}"
|
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_build_args="-C build all examples"
|
||||||
make_install_args="-C build install"
|
make_install_args="-C build install"
|
||||||
hostmakedepends="python3 $(vopt_if ocaml 'ocaml ocaml-findlib')"
|
hostmakedepends="python3 $(vopt_if ocaml 'ocaml ocaml-findlib')"
|
||||||
|
@ -16,21 +17,18 @@ license="MIT"
|
||||||
homepage="https://github.com/Z3Prover/z3"
|
homepage="https://github.com/Z3Prover/z3"
|
||||||
distfiles="https://github.com/Z3Prover/z3/archive/${pkgname}-${version}.tar.gz"
|
distfiles="https://github.com/Z3Prover/z3/archive/${pkgname}-${version}.tar.gz"
|
||||||
checksum=a353e3da00cdaffd258052cc1406efc854606855222ab4bfd5679c58af5c11c7
|
checksum=a353e3da00cdaffd258052cc1406efc854606855222ab4bfd5679c58af5c11c7
|
||||||
|
|
||||||
build_options="ocaml"
|
build_options="ocaml"
|
||||||
desc_option_ocaml="Enable support for OCaml bindings"
|
desc_option_ocaml="Enable support for OCaml bindings"
|
||||||
build_options_default="ocaml"
|
|
||||||
shlib_provides="libz3.so"
|
shlib_provides="libz3.so"
|
||||||
subpackages="$(vopt_if ocaml z3-ocaml)"
|
subpackages="$(vopt_if ocaml z3-ocaml)"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
build_options_default=
|
build_options_default="ocaml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_configure() {
|
post_install() {
|
||||||
LDFLAGS="$CFLAGS $LDFLAGS" ./configure --prefix=/usr -g --python $(vopt_if ocaml --ml)
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
vbin build/z3_tptp
|
vbin build/z3_tptp
|
||||||
vbin build/maxsat
|
vbin build/maxsat
|
||||||
if [ "$build_option_ocaml" ]; then
|
if [ "$build_option_ocaml" ]; then
|
||||||
|
|
Loading…
Reference in a new issue