this repo has no description
1opam-version: "2.0"
2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3synopsis: "Official release of OCaml 5.3.0"
4maintainer: [
5 "David Allsopp <david@tarides.com>"
6 "Florian Angeletti <florian.angeletti@inria.fr>"
7]
8authors: [
9 "Xavier Leroy"
10 "Damien Doligez"
11 "Alain Frisch"
12 "Jacques Garrigue"
13 "Didier Rémy"
14 "KC Sivaramakrishnan"
15 "Jérôme Vouillon"
16]
17homepage: "https://ocaml.org"
18bug-reports: "https://github.com/ocaml/opam-repository/issues"
19dev-repo: "git+https://github.com/ocaml/ocaml.git#5.3"
20depends: [
21 # This is OCaml 5.3.0
22 "ocaml" {= "5.3.0" & post}
23
24 # General base- packages
25 "base-unix" {post}
26 "base-bigarray" {post}
27 "base-threads" {post}
28 "base-domains" {post}
29 "base-nnp" {post}
30 "base-effects" {post}
31
32 # Port selection (Windows)
33 # amd64 mingw-w64 / MSVC
34 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
35 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
36 ("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) |
37 # i686 mingw-w64 / MSVC
38 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} &
39 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
40 ("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) |
41 # Non-Windows systems need to install something to satisfy this formula, so
42 # repeat the base-unix dependency
43 "base-unix" {os != "win32" & post})
44
45 # All the 32-bit architectures are bytecode-only
46 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"}
47
48 # Support Packages
49 "flexdll" {>= "0.42" & os = "win32"}
50]
51setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
52x-env-path-rewrite: [
53 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
54]
55build-env: [
56 [MSYS2_ARG_CONV_EXCL = "*"]
57 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
58 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
59]
60build: [
61 [
62 "./configure"
63 "--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed}
64 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
65 "--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed}
66 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
67 "--prefix=%{prefix}%"
68 "--docdir=%{doc}%/ocaml"
69 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
70 "--with-winpthreads-msvc=%{winpthreads:share}%" {system-msvc:installed}
71 "-C"
72 "--with-afl" {ocaml-option-afl:installed}
73 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
74 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
75 "--enable-flambda" {ocaml-option-flambda:installed}
76 "--enable-frame-pointers" {ocaml-option-fp:installed}
77 "--without-zstd" {ocaml-option-no-compression:installed}
78 "--enable-tsan" {ocaml-option-tsan:installed}
79 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os = "openbsd" | os = "macos")}
80 "CC=clang" {ocaml-option-tsan:installed & (os="macos")}
81 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
82 "CFLAGS=-Os" {ocaml-option-musl:installed & arch != "arm64"}
83 "CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch = "arm64"}
84 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
85 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
86 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
87 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
88 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
89 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
90 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
91 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
92 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
93 "LIBS=-static" {ocaml-option-static:installed}
94 "--disable-warn-error"
95 ]
96 [make "-j%{jobs}%"]
97]
98install: [make "install"]
99url {
100 src: "https://github.com/ocaml/ocaml/releases/download/5.3.0/ocaml-5.3.0.tar.gz"
101 checksum: "sha256=22c1dd9de21bf43b62d1909041fb5fad648905227bf69550a6a6bef31e654f38"
102}
103depopts: [
104 "ocaml-option-32bit"
105 "ocaml-option-afl"
106 "ocaml-option-bytecode-only"
107 "ocaml-option-no-flat-float-array"
108 "ocaml-option-flambda"
109 "ocaml-option-fp"
110 "ocaml-option-no-compression"
111 "ocaml-option-musl"
112 "ocaml-option-leak-sanitizer"
113 "ocaml-option-address-sanitizer"
114 "ocaml-option-static"
115 "ocaml-option-tsan"
116]
117extra-source "ocaml-compiler.install" {
118 src:
119 "https://raw.githubusercontent.com/ocaml/ocaml/899b8f3bece45f55161dad72eaa223c2bb7202e8/ocaml-variants.install"
120 checksum: [
121 "sha256=7af3dc34e6f9f3be2ffd8d32cd64fa650d6a036c86c4821a7033d24a90fba11c"
122 "md5=781ea69255fd0cb643a9617ff56fd6ba"
123 ]
124}