opam-version: "2.0"
synopsis: "BER-N111 MetaOCaml"
maintainer: "yallop@gmail.com"
depends: [
  "ocaml" {= "4.11.1" & post}
  "base-unix" {post}
  "base-bigarray" {post}
  "base-threads" {post}
  "base-metaocaml-ocamlfind" {post}
]
conflict-class: "ocaml-core-compiler"
flags: compiler
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
build: [
  ["./configure" "-prefix" "%{prefix}%"]
    {os != "openbsd" & os != "macos"}
  ["./configure" "-prefix" "%{prefix}%" "CC=cc" "ASPP=cc -c"]
    {os = "openbsd" | os = "macos"}
  [make "world.opt"]
  [make "-C" "ber-metaocaml-111" "all"]
]
install: [
  [make "-i" "install"]
  [make "-C" "ber-metaocaml-111" "install" "install.opt"]
]
url {
  src: "https://github.com/metaocaml/ber-metaocaml/archive/ber-n111.tar.gz"
  checksum: "md5=3362d3bab70e662defc92d493effe5e1"
}
post-messages: [
  "A failure in the middle of the build may be caused by build parallelism
   (enabled by default).
   Please file a bug report at https://github.com/ocaml/opam-repository/issues"
  {failure & jobs > 1}
  "You can try installing again including --jobs=1
   to force a sequential build instead."
  {failure & jobs > 1 & opam-version >= "2.0.5"}
]
available: !(os = "macos" & arch = "arm64")
