this repo has no description
1opam-version: "2.0"
2synopsis: "4.06.1 release, with specific features for ReScript development"
3maintainer: [
4 "David Allsopp <david@tarides.com>"
5 "Hongbo Zhang <bob.hongbo.zhang@foxmail.com>"
6]
7depends: [
8 "ocaml" {= "4.06.1" & post}
9 "base-unix" {post}
10 "base-bigarray" {post}
11 "base-threads" {post}
12]
13conflict-class: "ocaml-core-compiler"
14flags: compiler
15setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
16build: [
17 [
18 "sed"
19 "-ib"
20 "-e"
21 "s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
22 "config/auto-aux/hasgot"
23 ] {os = "macos"}
24 ["./configure" "-prefix" prefix "-with-debug-runtime" "-flambda"]
25 {os != "openbsd" & os != "freebsd" & os != "macos"}
26 [
27 "./configure"
28 "-prefix"
29 prefix
30 "-with-debug-runtime"
31 "-flambda"
32 "-cc"
33 "cc"
34 "-aspp"
35 "cc -c"
36 ] {os = "openbsd" | os = "freebsd" | os = "macos"}
37 [make "world"]
38 [make "world.opt"]
39]
40install: [make "install"]
41url {
42 src: "https://github.com/ocaml/ocaml/archive/4.06.1.tar.gz"
43 checksum: [
44 "sha256=fef12a65cab5f6d15ea22a72e328349530e179308f1005100e45e50a228d72c4"
45 "md5=d02eb67b828de22c3f97d94b3c46acba"
46 ]
47}
48patches: [
49 "fix-gcc10.patch"
50 "add-conditional-compilation.patch"
51 "alt-signal-stack.patch"
52]
53available: !(os = "macos" & arch = "arm64")
54license: "QPL-1.0 AND LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
55authors: [
56 "Xavier Leroy"
57 "Damien Doligez"
58 "Alain Frisch"
59 "Jacques Garrigue"
60 "Didier Rémy"
61 "Jérôme Vouillon"
62]
63bug-reports: "https://github.com/ocaml/opam-repository/issues"
64homepage: "https://ocaml.org"
65dev-repo: "git+https://github.com/ocaml/ocaml.git#4.06"
66extra-source "alt-signal-stack.patch" {
67 src: "https://github.com/ocaml/ocaml/commit/137a4ad167f25fe1bee792977ed89f30d19bcd74.patch?full_index=1"
68 checksum: "sha256=c0c1c64bed4cc2413be21ce8bfe52bb9caff4d1bcd7e7a72f9bcb113c231bc91"
69}
70extra-source "fix-gcc10.patch" {
71 src:
72 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-base-compiler/fix-gcc10.patch.4.06.1"
73 checksum: [
74 "sha256=860a3e47b86a11a71e75d18d46f17f8343c58ee9297342d6ea885128f393dac6"
75 "md5=171b510547baa777839b2ad50608a3ee"
76 ]
77}
78extra-source "add-conditional-compilation.patch" {
79 src:
80 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/add-conditional-compilation.patch.4.06.1+rescript"
81 checksum: [
82 "sha256=b5f02e0d312cb2a27b8f5a60513ff6e8c15b5e8de39d01e8719078af6015179a"
83 "md5=0d4f23c1c71a232e3e7fecf991f45162"
84 ]
85}