opam-version: "2.0"

maintainer: "alt-ergo@ocamlpro.com"
authors: "Alt-Ergo developers"
license: ["OCamlPro Non-Commercial License" "Apache-1.0+"]
homepage: "http://alt-ergo.ocamlpro.com/"
bug-reports: "https://github.com/OCamlPro/alt-ergo/issues"
dev-repo: "git+https://github.com/OCamlPro/alt-ergo.git"
build:
[
        ["autoconf"]
        ["./configure" "-prefix" "%{prefix}%"]
	[make]
]

install:
[
	[make "install" "MANDIR=%{man}%"]
]

remove: [
        ["autoconf"]
        ["./configure" "-prefix" "%{prefix}%"]
	[make "uninstall" "MANDIR=%{man}%"]
]

depends: [
  "ocaml" {>= "4.04.0"}
  "num"
  "zarith"
  "camlzip" {< "1.08"}
  "ocplib-simplex" {>= "0.4"}
  "menhir"
  "conf-autoconf" {build}
]
depopts: [
        "lablgtk"
        "conf-gtksourceview"
]

conflicts: [
	"alt-ergo" {< "2.1.0" }
	"altgr-ergo" {< "2.1.0" }
	"satML-plugin" {< "2.1.0" }
	"profiler-plugin" {< "2.1.0" }
	"fm-simplex-plugin" {< "2.1.0" }
]


patches:[
  "compile-with-OCaml-4.04.patch"
]
synopsis: "Alt-Ergo, an SMT Solver for Software Verification"
description: """
Alt-Ergo is an automatic prover of mathematical formulas used behind software verification tools such as Frama-C, SPARK, Why3, Atelier-B and Caveat.

Since Alt-Ergo 2.0.0, this package provides the binaries (command-line
and GUI), the plugins and the preludes of Alt-Ergo.

Usage of the command-line:

```alt-ergo [options] <file.why>```

Usage of the GUI:

```altgr-ergo [options] <file.why>```

Usage of the "old" Tableaux-like SAT solver:

```alt-ergo -sat-solver Tableaux [other-options] <file.why>```

Usage of the FM-Simplex plugin, an alternative to Fourier-Motzkin algorithm for linear integer arithmetic

```alt-ergo -inequalities-plugin fm-simplex-plugin.cmxs [other-options] <file.why>```

Usage of the command-line with FPA reasoning:

```alt-ergo -use-fpa -prelude fpa-theory-2017-01-04-16h00.why [other-options] <file.why>```"""
extra-files: [
  "compile-with-OCaml-4.04.patch" "md5=af89ed061460cc47a2fa22b33c99eadf"
]
url {
  src:
    "http://alt-ergo.ocamlpro.com/http/alt-ergo-2.1.0/alt-ergo-2.1.0.tar.gz"
  checksum: "md5=6486220cc9ff5ce4ffa378b04fb7110e"
}
