this repo has no description
1opam-version: "2.0"
2synopsis: "4.02.1 release compiled with musl-gcc -static"
3description:
4 "Requires musl-gcc to be installed (package musl on Arch Linux, musl-tools on Debian, musl-dev on Alpine)"
5maintainer: "David Allsopp <david@tarides.com>"
6depends: [
7 "ocaml" {= "4.02.1" & post}
8 "base-unix" {post}
9 "base-bigarray" {post}
10 "base-threads" {post}
11 "base-ocamlbuild" {post}
12]
13depexts: [
14 ["musl-tools"] {os-family = "debian"}
15 ["musl"] {os-distribution = "arch"}
16 ["musl-dev"] {os-distribution = "alpine"}
17]
18conflict-class: "ocaml-core-compiler"
19flags: compiler
20setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
21build: [
22 [
23 "sed"
24 "-ib"
25 "-e"
26 "s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
27 "config/auto-aux/hasgot"
28 ] {os = "macos"}
29 [
30 "./configure"
31 "-prefix"
32 prefix
33 "-with-debug-runtime"
34 "-cc"
35 "musl-gcc -Os" {os-distribution != "alpine"}
36 "gcc -Os" {os-distribution = "alpine"}
37 "-aspp"
38 "musl-gcc -c" {os-distribution != "alpine"}
39 "gcc -c" {os-distribution = "alpine"}
40 "-libs"
41 "-static"
42 "-no-curses"
43 "-no-graph"
44 ]
45 [make "world.opt"]
46]
47install: [make "install"]
48url {
49 src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.1.tar.gz"
50 checksum: [
51 "sha256=3cbc7af5a3886c8c5af8dab5568d6256a191d89ecbd4aea18eaf5b47034c6138"
52 "md5=3c35318eefd201f96797c093c920b343"
53 ]
54}
55patches: ["fix-gcc10.patch" "gpr1330.patch" "alt-signal-stack.patch"]
56available: !(os = "macos" & arch = "arm64")
57license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
58authors: [
59 "Xavier Leroy"
60 "Damien Doligez"
61 "Alain Frisch"
62 "Jacques Garrigue"
63 "Didier Rémy"
64 "Jérôme Vouillon"
65]
66bug-reports: "https://github.com/ocaml/opam-repository/issues"
67homepage: "https://ocaml.org"
68dev-repo: "git+https://github.com/ocaml/ocaml.git#4.02"
69extra-source "alt-signal-stack.patch" {
70 src: "https://github.com/ocaml/ocaml/commit/9de2b77472aee18a94b41cff70caee27fb901225.patch?full_index=1"
71 checksum: "sha256=91841447cc2d11ebe67a078ace677a18f06432ebf15c4c6d5a09e04b67dd041a"
72}
73extra-source "gpr1330.patch" {
74 src: "https://github.com/ocaml/ocaml/commit/bcc7a767279ff70518b3f4219cc0b9bffec7dd43.patch?full_index=1"
75 checksum: "sha256=594d4dd6c192fe77e9fc025674b51e3de74d70326b2e750a249a09eeded68716"
76}
77extra-source "fix-gcc10.patch" {
78 src:
79 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-base-compiler/fix-gcc10.patch.4.02.1"
80 checksum: [
81 "sha256=70a506f8f44a472fc27cf4d7097d5fa47d15ea584dd956a39b73c0e8cf1e35b4"
82 "md5=4afa0ebb0a06b65e95e4906e1dced628"
83 ]
84}