opam-version: "2.0"
synopsis: "add open extensible types to OCaml"
maintainer: "platform@lists.ocaml.org"
depends: [
  "ocaml" {= "4.00.1" & post}
  "base-unix" {post}
  "base-bigarray" {post}
  "base-threads" {post}
  "base-ocamlbuild" {post}
]
conflict-class: "ocaml-core-compiler"
flags: compiler
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
build: [
  [
    "sed"
    "-ib"
    "-e"
    "s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
    "config/auto-aux/hasgot"
  ] {os = "macos"}
  ["./configure" "-prefix" prefix]
  [make "world" "world.opt"]
]
install: [make "install"]
url {
  src: "https://github.com/lpw25/ocaml/archive/4.00.1+open_types.tar.gz"
  checksum: "md5=58813a434956cf4b07e4a5d0d7ea906d"
}
available: !(os = "macos" & arch = "arm64")
