opam-version: "1.2"
name: "ocamlbuild"
maintainer: "Gabriel Scherer <gabriel.scherer@gmail.com>"

authors: [
  "Nicolas Pouillard"
  "Berke Durak"
]

license: "LGPL-2 with OCaml linking exception"
dev-repo: "https://github.com/ocaml/ocamlbuild.git"
homepage: "https://github.com/ocaml/ocamlbuild/"
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"

build: [
  [make "-f" "configure.make" "Makefile.config"
    "OCAMLBUILD_PREFIX=%{prefix}%"
    "OCAMLBUILD_BINDIR=%{bin}%"
    "OCAMLBUILD_LIBDIR=%{lib}%"
    "OCAML_NATIVE=%{ocaml-native}%"
    "OCAML_NATIVE_TOOLS=%{ocaml-native}%"]
  [make "check-if-preinstalled" "all" "opam-install"]
]

doc: [
  "http://caml.inria.fr/pub/docs/manual-ocaml/ocamlbuild.html"
  "https://github.com/gasche/manual-ocamlbuild/blob/master/manual.md"
]

available: [ocaml-version >= "4.03"]
depends: [ ]
conflicts: [
  "base-ocamlbuild"
  "ocamlfind" {< "1.5"}
]

version: "dev"
