opam-version: "2.0"
maintainer: "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
authors: [ "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
           "Pierre Hauweele <pierre@hauweele.net>"
           "Fabian Pijcke <fabian.pijcke@gmail.com>"
           "Noémie Meunier <noemie_6462@hotmail.com>"
           "Bertrand Desmons <bibi-6@hotmail.fr>"
           "Xavier Deschuyteneer <xavier.deschuyteneer@gmail.com>" ]
license: "LGPL-3.0-only with OCaml-LGPL-linking-exception"
homepage: "http://forge.ocamlcore.org/projects/archimedes/"
dev-repo:
  "git+http://forge.ocamlcore.org/anonscm/git/archimedes/archimedes.git"
bug-reports: "http://forge.ocamlcore.org/projects/archimedes/"
build: [
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--prefix"
    prefix
    "--%{graphics:enable}%-graphics"
    "--%{cairo2:enable}%-cairo2"
  ]
  ["ocaml" "setup.ml" "-build"]
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--enable-tests"
    "--%{graphics:enable}%-graphics"
    "--%{cairo2:enable}%-cairo2"
  ] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocaml" "%{etc}%/archimedes/_oasis_remove_.ml" "%{etc}%/archimedes"]
]
depends: [
  "ocaml"
  "base-bigarray"
  "camlp4"
  "ocamlbuild" {build}
  "ocamlfind" {build}
]
depopts: [
  "graphics"
  "cairo2"
]
conflicts: [
  "cairo2" {>= "0.6"}
]
synopsis: "Extensible 2D plotting library."
description: """
Archimedes is a high quality, platform-independent, extensible 2D
plotting library. It provides dynamically loaded backends such as
Graphics and Cairo."""
url {
  src:
    "https://download.ocamlcore.org/archimedes/archimedes/0.4.18/archimedes-0.4.18.tar.gz"
  checksum: "md5=2013720e3df3fa3eaa098710a64dbf1d"
}
