opam-version: "2.0" synopsis: "Official release 5.1.1" maintainer: [ "David Allsopp " "Florian Angeletti " ] license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception" authors: "Xavier Leroy and many contributors" homepage: "https://ocaml.org" bug-reports: "https://github.com/ocaml/opam-repository/issues" dev-repo: "git+https://github.com/ocaml/ocaml#5.1" depends: [ # This is OCaml 5.1.1 "ocaml" {= "5.1.1" & post} # General base- packages "base-unix" {post} "base-bigarray" {post} "base-threads" {post} "base-domains" {post} "base-nnp" {post} # Port selection (Windows) # amd64 mingw-w64 only (("arch-x86_64" {os = "win32" & arch = "x86_64"} & "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | # i686 mingw-w64 only ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" & "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | # Non-Windows systems need to install something to satisfy this formula, so # repeat the base-unix dependency "base-unix" {os != "win32" & post}) # OCaml with default configuration (no flambda, TSAN, etc.) "ocaml-options-vanilla" {post} "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64"} # Support Packages "flexdll" {>= "0.42" & os = "win32"} ] conflicts: "system-msvc" conflict-class: "ocaml-core-compiler" flags: compiler setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs" x-env-path-rewrite: [ [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"] ] build: [ [ "./configure" "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed} "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed} "--prefix=%{prefix}%" "--docdir=%{doc}%/ocaml" "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed} "-C" "CC=cc" {os = "openbsd" | os = "macos"} "ASPP=cc -c" {os = "openbsd" | os = "macos"} ] [make "-j%{jobs}%"] ] install: [make "install"] url { src: "https://github.com/ocaml/ocaml/archive/5.1.1.tar.gz" checksum: "sha256=57f7b382b3d71198413ede405d95ef3506f1cdc480cda1dca1e26b37cb090e17" } extra-source "ocaml-base-compiler.install" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-base-compiler/ocaml-base-compiler.install" checksum: [ "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678" "md5=3e969b841df1f51ca448e6e6295cb451" ] }