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: "https://forge.ocamlcore.org/tracker/?group_id=105"
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: [
  ["ocamlfind" "remove" "archimedes"]
]
depends: [
  "ocaml" {< "4.03"}
  "base-bigarray"
  "ocamlfind" {build}
  "camlp4" {build}
  "ocamlbuild" {build}
]
depopts: [
  "cairo2"
  "graphics"
]
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."""
flags: light-uninstall
extra-files: ["archimedes.install" "md5=77a877e7628a37723cfe5460c4090831"]
url {
  src:
    "https://download.ocamlcore.org/archimedes/archimedes/0.4.17/archimedes-0.4.17.tar.gz"
  checksum: "md5=14b6cf3d52326af03952c2b5038d1d29"
}
