opam-version: "2.0" synopsis: "OCaml 4.08.1 Secondary Switch Compiler" maintainer: "David Allsopp " authors: "Xavier Leroy and many contributors" license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception" homepage: "https://ocaml.org" bug-reports: "https://github.com/ocaml/opam-repository/issues" dev-repo: "git+https://github.com/ocaml/ocaml" build: [ [ "./configure" "--prefix=%{_:share}%" "--libdir=%{_:share}%/lib" "--disable-debugger" "--disable-installing-bytecode-programs" "--disable-debug-runtime" "--disable-instrumented-runtime" "--disable-graph-lib" "CC=cc" {os = "openbsd" | os = "freebsd" | os = "macos"} "ASPP=cc -c" {os = "openbsd" | os = "freebsd" | os = "macos"} ] [make "-j%{jobs}%" {os != "cygwin"} "world.opt"] ] install: [make "install"] url { src: "https://github.com/ocaml/ocaml/archive/4.08.1.tar.gz" checksum: [ "sha256=b53ed3d487b83fd49bc181bded066ae8e6fb592cf40514261d27d36050d5db85" "md5=723b6bfe8cf5abcbccc6911143f71055" ] } extra-source "alt-signal-stack.patch" { src: "https://github.com/ocaml/ocaml/commit/17df117b4939486d3285031900587afce5262c8c.patch?full_index=1" checksum: "sha256=92d747e6a9edffbe178d7c356a271c34f1c9e7597548ae8d6defc0815c56315a" } patches: [ "0001-Don-t-build-manpages-for-stdlib-docs.patch" "0001-Fix-failure-to-install-tools-links.patch" "fix-gcc10.patch" "alt-signal-stack.patch" ] available: !(os = "macos" & arch = "arm64") 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 & os != "cygwin"} "You can try installing again including --jobs=1 to force a sequential build instead." {failure & jobs > 1 & os != "cygwin" & opam-version >= "2.0.5"} ] description: "Installs an additional compiler to the opam switch in %{_:share}%/ocaml-secondary-compiler which can be accessed using `ocamlfind -toolchain secondary`." extra-source "fix-gcc10.patch" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-secondary-compiler/fix-gcc10.patch" checksum: [ "sha256=e5a116608a20558fcd6c70c05978dc0c0b792f8dc10cfff119ddd6cce4b7dda1" "md5=17ecd696a8f5647a4c543280599f6974" ] } extra-source "0001-Fix-failure-to-install-tools-links.patch" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-secondary-compiler/0001-Fix-failure-to-install-tools-links.patch" checksum: [ "sha256=82e40a32202f700d77873a932b9d9bdaf2c61a9129b091d0033e2975add256c2" "md5=e973762c0b3d62b0b25a26468086fae3" ] } extra-source "0001-Don-t-build-manpages-for-stdlib-docs.patch" { src: "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-secondary-compiler/0001-Don-t-build-manpages-for-stdlib-docs.patch" checksum: [ "sha256=08a213cff3a58007e223d341335e2bf1d1cace9ebd04fec9b9dd121c5f9aaf52" "md5=6caa580fe6031c109d2dc96b19bd40cd" ] }