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.2.1"
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 "Jérôme Vouillon"
15]
16homepage: "https://ocaml.org"
17bug-reports: "https://github.com/ocaml/opam-repository/issues"
18dev-repo: "git+https://github.com/ocaml/ocaml.git#5.2"
19depends: [
20 # This is OCaml 5.2.1
21 "ocaml" {= "5.2.1" & post}
22
23 # General base- packages
24 "base-unix" {post}
25 "base-bigarray" {post}
26 "base-threads" {post}
27 "base-domains" {post}
28 "base-nnp" {post}
29
30 # Port selection (Windows)
31 # amd64 mingw-w64 only
32 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
33 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
34 # i686 mingw-w64 only
35 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} &
36 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
37 # Non-Windows systems need to install something to satisfy this formula, so
38 # repeat the base-unix dependency
39 "base-unix" {os != "win32" & post})
40
41 # All the 32-bit architectures are bytecode-only
42 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"}
43
44 # Support Packages
45 "flexdll" {>= "0.42" & os = "win32"}
46]
47conflict-class: "ocaml-core-compiler"
48flags: compiler
49setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
50x-env-path-rewrite: [
51 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
52]
53build-env: [
54 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
55 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
56]
57build: [
58 [
59 "./configure"
60 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
61 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
62 "--prefix=%{prefix}%"
63 "--docdir=%{doc}%/ocaml"
64 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
65 "-C"
66 "--with-afl" {ocaml-option-afl:installed}
67 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
68 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
69 "--enable-flambda" {ocaml-option-flambda:installed}
70 "--enable-frame-pointers" {ocaml-option-fp:installed}
71 "--without-zstd" {ocaml-option-no-compression:installed}
72 "--enable-tsan" {ocaml-option-tsan:installed}
73 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
74 "CC=clang" {ocaml-option-tsan:installed & (os="macos")}
75 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
76 "CFLAGS=-Os" {ocaml-option-musl:installed & arch!="arm64"}
77 "CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch="arm64"}
78 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
79 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
80 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
81 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
82 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
83 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
84 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
85 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
86 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
87 "LIBS=-static" {ocaml-option-static:installed}
88 "--disable-warn-error"
89 ]
90 [make "-j%{jobs}%"]
91]
92install: [make "install"]
93url {
94 src: "https://github.com/ocaml/ocaml/releases/download/5.2.1/ocaml-5.2.1.tar.gz"
95 checksum: "sha256=2d0f8090951a97a2c0e5b8a11e90096c0e1791d2e471e4a67f87e3b974044cd0"
96}
97conflicts: [
98 "system-msvc"
99]
100depopts: [
101 "ocaml-option-32bit"
102 "ocaml-option-afl"
103 "ocaml-option-bytecode-only"
104 "ocaml-option-no-flat-float-array"
105 "ocaml-option-flambda"
106 "ocaml-option-fp"
107 "ocaml-option-no-compression"
108 "ocaml-option-musl"
109 "ocaml-option-leak-sanitizer"
110 "ocaml-option-address-sanitizer"
111 "ocaml-option-static"
112 "ocaml-option-tsan"
113]
114extra-source "ocaml-variants.install" {
115 src:
116 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install"
117 checksum: [
118 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
119 "md5=3e969b841df1f51ca448e6e6295cb451"
120 ]
121}