opam-version: "2.0"
maintainer: "francois.bobot@cea.fr"
authors: [
  "Michele Alberti"
  "Gergö Barany"
  "Patrick Baudin"
  "François Bobot"
  "Richard Bonichon"
  "David Bühler"
  "Loïc Correnson"
  "Julien Crétin"
  "Pascal Cuoq"
  "Zaynah Dargaye"
  "Jean-Christophe Filliâtre"
  "Philippe Herrmann"
  "Florent Kirchner"
  "Tristan Le Gall"
  "Jean-Christophe Léchenet"
  "Matthieu Lemerre"
  "David Maison"
  "Claude Marché"
  "André Maroneze"
  "Benjamin Monate"
  "Yannick Moy"
  "Anne Pacalet"
  "Valentin Perrelle"
  "Guillaume Petiot"
  "Virgile Prevosto"
  "Armand Puccetti"
  "Muriel Roger"
  "Julien Signoles"
  "Kostyantyn Vorobyov"
  "Boris Yakobowski"
]
homepage: "http://frama-c.com/"
license: "LGPL-2.1-only"
dev-repo: "git+https://github.com/Frama-C/Frama-C-snapshot.git"
doc: ["http://frama-c.com/download/user-manual-Phosphorus-20170501.pdf"]
bug-reports: "https://bts.frama-c.com/"
tags: [
  "deductive"
  "program verification"
  "formal specification"
  "automated theorem prover"
  "interactive theorem prover"
  "C"
  "plugins"
  "abstract interpretation"
  "slicing"
  "weakest precondition"
  "ACSL"
  "dataflow analysis"
  "runtime verification"
]

build: [
  ["sh" "-eux" "./run_autoconf_if_needed.sh"]
  [
    "./configure"
    "--prefix"
    prefix
    "--disable-gui"
      {!conf-gtksourceview:installed | !conf-gnomecanvas:installed}
  ]
  [make "-j%{jobs}%"]
  [make "-C" "doc" "download"] {with-doc}
]
install: [
  [make "install"]
  [make "-C" "doc" "FRAMAC_DOCDIR=%{frama-c-base:doc}%" "install"] {with-doc}
]
remove: [
  ["sh" "-eux" "./run_autoconf_if_needed.sh"] # when used in pinned mode,
                                              # the configure *cannot* yet be
                                              # generated
  ["./configure" "--prefix" prefix
                 "--disable-gui" { !conf-gtksourceview:installed |
                                   !conf-gnomecanvas:installed }
]
  [make "uninstall"]
  ["rm" "-rf" frama-c-base:doc]
]

depends: [
  "ocaml" {>= "4.02.3" & < "4.06"}
  "ocamlgraph" {>= "1.8.5" & < "1.9~"}
  "ocamlfind"
  "zarith"
  "conf-autoconf"
]
depopts: [
  "lablgtk"
  "conf-gtksourceview"
  "conf-gnomecanvas"
  "coq" { build }
  "why3" { build }
]

messages: [
   "Why3 can be used by the WP plug-in for running additional automatic solvers" { !why3:installed }
   "Coq can be used with the WP plug-in for proving interactively proof obligations" { !coq:installed }
]

conflicts: [
  "why3-base" { < "0.86" } #for WP plug-in
  "coq"      { < "8.4.6" } #for WP plug-in
  "coq"      { >= "8.7"  } #for WP plug-in
  "lablgtk" { < "2.18.2" } #for ocaml >= 4.02.1
  "frama-c-e-acsl" #avoid mixing old releases of E-ACSL, it is already
                   #distributed with this version of Frama-C
]

synopsis: "Platform dedicated to the analysis of source code written in C."
description: """
Frama-C gathers several analysis techniques in a single collaborative
framework, based on analyzers (called "plug-ins") that can build upon the
results computed by other analyzers in the framework.
Thanks to this approach, Frama-C provides sophisticated tools, including:
- an analyzer based on abstract interpretation (EVA plug-in);
- a program proof framework based on weakest precondition calculus (WP plug-in);
- a program slicer (Slicing plug-in);
- a tool for verification of temporal (LTL) properties (Aoraï plug-in);
- a runtime verification tool (E-ACSL plug-in);
- several tools for code base exploration and dependency analysis
  (plug-ins From, Impact, Metrics, Occurrence, Scope, etc.).
These plug-ins communicate between each other via the Frama-C API
and via ACSL (ANSI/ISO C Specification Language) properties."""
extra-files: [
  "run_autoconf_if_needed.sh" "md5=8896537e4468e4228e7b0112f1cfd0ed"
]
url {
  src: "http://frama-c.com/download/frama-c-Phosphorus-20170501.tar.gz"
  checksum: "md5=996a4690cce7c4812dae74837cf0faa3"
}
