this repo has no description
1opam-version: "2.0"
2synopsis: "4.10.2 release with specific features for ReScript development"
3maintainer: [
4 "David Allsopp <david@tarides.com>"
5 "Hongbo Zhang <bob.hongbo.zhang@foxmail.com>"
6]
7authors: "Xavier Leroy and many contributors"
8homepage: "https://ocaml.org"
9bug-reports: "https://github.com/ocaml/opam-repository/issues"
10dev-repo: "git+https://github.com/ocaml/ocaml"
11depends: [
12 "ocaml" {= "4.10.2" & post}
13 "base-unix" {post}
14 "base-bigarray" {post}
15 "base-threads" {post}
16]
17conflict-class: "ocaml-core-compiler"
18flags: compiler
19setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
20build: [
21 ["./configure" "--prefix=%{prefix}%" "--enable-flambda"]
22 {os != "openbsd" & os != "freebsd" & os != "macos"}
23 [
24 "./configure"
25 "--prefix=%{prefix}%"
26 "CC=cc"
27 "ASPP=cc -c"
28 "--enable-flambda"
29 ] {os = "openbsd" | os = "freebsd" | os = "macos"}
30 [make "-j%{jobs}%" "world"]
31 [make "-j%{jobs}%" "world.opt"]
32]
33install: [make "install"]
34url {
35 src: "https://github.com/ocaml/ocaml/archive/4.10.2.tar.gz"
36 checksum: "sha256=7aa26e0d70f36f0338df92cf5aaeb2704f3443bfe910a3d02a5dca9162f1d866"
37}
38patches: ["add-conditional-compilation.patch" "alt-signal-stack.patch"]
39post-messages: [
40 "A failure in the middle of the build may be caused by build parallelism
41 (enabled by default).
42 Please file a bug report at https://github.com/ocaml/opam-repository/issues"
43 {failure & jobs > 1}
44 "You can try installing again including --jobs=1
45 to force a sequential build instead."
46 {failure & jobs > 1 & opam-version >= "2.0.5"}
47]
48license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
49extra-source "alt-signal-stack.patch" {
50 src: "https://github.com/ocaml/ocaml/commit/4b4c643d1d5d28738f6d900cd902851ed9dc5364.patch?full_index=1"
51 checksum: "sha256=355fa7bd55ce5646db1365b116082aee31f9b466f0ffc27723f5971d03c14a53"
52}
53extra-source "add-conditional-compilation.patch" {
54 src:
55 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/add-conditional-compilation.patch.4.10.2+rescript"
56 checksum: [
57 "sha256=665cae3af74c455aa4c9fb11900ef38b928b5184d28e18797396874fd2a1f739"
58 "md5=7f32529556c09e554bc766e9c17cd44f"
59 ]
60}