opam-version: "1.2"
maintainer: "jeremie@dimino.org"
authors: ["Daniel de Rauglaudre" "Nicolas Pouillard"]
homepage: "https://github.com/ocaml/camlp4"
bug-reports: "https://github.com/ocaml/camlp4/issues"
license: "LGPLv2"
dev-repo: "https://github.com/ocaml/camlp4.git"
build: [
  [
    "./configure"
    "--bindir=%{bin}%"
    "--libdir=%{lib}%/ocaml"
    "--pkgdir=%{lib}%"
  ]
  [make "clean"]
  [make "all"] {ocaml-native-dynlink}
  [make "byte"] {!ocaml-native-dynlink}
]
install: [make "install" "install-META"]
remove: [
  ["ocamlfind" "remove" "camlp4"]
  ["rm" "-rf" "%{lib}%/ocaml/camlp4"]
  [
    "rm"
    "-f"
    "%{bin}%/camlp4"
    "%{bin}%/camlp4boot"
    "%{bin}%/mkcamlp4"
    "%{bin}%/camlp4r"
    "%{bin}%/camlp4rf"
    "%{bin}%/camlp4orf"
    "%{bin}%/camlp4o"
    "%{bin}%/camlp4of"
    "%{bin}%/camlp4oof"
    "%{bin}%/camlp4prof"
  ]
]
depends: [
  "ocamlbuild" {build}
]
patches: "f0ea53725465260556832398096cef8d3f20b49d.patch"
available: [ocaml-version >= "4.06" & ocaml-version < "4.07"]
