opam-version: "2.0"
synopsis: "A library manager for OCaml"
description: """\
Findlib is a library manager for OCaml. It provides a convention how
to store libraries, and a file format ("META") to describe the
properties of libraries. There is also a tool (ocamlfind) for
interpreting the META files, so that it is very easy to use libraries
in programs and scripts."""
maintainer: "Thomas Gazagnaire <thomas@gazagnaire.org>"
authors: "Gerd Stolpmann <gerd@gerd-stolpmann.de>"
homepage: "http://projects.camlcity.org/projects/findlib.html"
bug-reports: "https://gitlab.camlcity.org/gerd/lib-findlib/issues"
depends: [
  "ocaml" {>= "4.00.0"}
]
depopts: ["graphics"]
patches: ["fix-bsd.patch"]
build: [
  [
    "./configure"
    "-bindir"
    bin
    "-sitelib"
    lib
    "-mandir"
    man
    "-config"
    "%{lib}%/findlib.conf"
    "-no-custom"
    "-no-camlp4" {!ocaml:preinstalled & ocaml:version >= "4.02.0"}
    "-no-topfind" {ocaml:preinstalled}
  ]
  [make "all"]
  [make "opt"] {ocaml:native}
]
install: [
  [make "install"]
  ["install" "-m" "0755" "ocaml-stub" "%{bin}%/ocaml"] {ocaml:preinstalled}
]
extra-files: [
  ["fix-bsd.patch" "md5=00e4db61fceee51af794c3a36e4cef0e"]
]
available: false
dev-repo: "git+https://gitlab.camlcity.org/gerd/lib-findlib.git"
url {
  src: "https://github.com/ocaml/ocamlfind/archive/findlib-1.9.tar.gz"
  checksum: [
    "md5=9dfedf0fd192ec15d070781cb7b41e8d"
    "sha512=415208288c466faf47da07fc2492594399b35ba6430589233ffc86135ce3685bfa7944111777ab58f318ef34fa78353bed30539ccce6f9923478dd1fe97281eb"
  ]
}
