this repo has no description
1opam-version: "2.0"
2synopsis: "Official release 5.0.0"
3maintainer: [
4 "David Allsopp <david@tarides.com>"
5 "Florian Angeletti <florian.angeletti@inria.fr>"
6]
7license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
8authors: "Xavier Leroy and many contributors"
9homepage: "https://ocaml.org"
10bug-reports: "https://github.com/ocaml/opam-repository/issues"
11dev-repo: "git+https://github.com/ocaml/ocaml#5.0"
12depends: [
13 # This is OCaml 5.0.0
14 "ocaml" {= "5.0.0" & post}
15
16 # General base- packages
17 "base-unix" {post}
18 "base-bigarray" {post}
19 "base-threads" {post}
20 "base-domains" {post}
21 "base-nnp" {post}
22
23 # Port selection (Windows)
24 # amd64 mingw-w64 only
25 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
26 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
27 # i686 mingw-w64 only
28 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" &
29 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
30 # Non-Windows systems need to install something to satisfy this formula, so
31 # repeat the base-unix dependency
32 "base-unix" {os != "win32" & post})
33
34 # OCaml with default configuration (no flambda, TSAN, etc.)
35 "ocaml-options-vanilla" {post}
36 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
37
38 # Support Packages
39 "flexdll" {>= "0.42" & os = "win32"}
40]
41conflicts: "system-msvc"
42conflict-class: "ocaml-core-compiler"
43flags: compiler
44setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
45x-env-path-rewrite: [
46 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
47]
48build: [
49 [
50 "./configure"
51 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
52 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
53 "--prefix=%{prefix}%"
54 "--docdir=%{doc}%/ocaml"
55 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
56 "-C"
57 "CC=cc" {os = "openbsd" | os = "macos"}
58 "ASPP=cc -c" {os = "openbsd" | os = "macos"}
59 ]
60 [make "-j%{jobs}%"]
61]
62install: [make "install"]
63url {
64 src: "https://github.com/ocaml/ocaml/archive/5.0.0.tar.gz"
65 checksum: "sha256=72fa3d0ba19b82fcb9e6c62e0090b9d22e5905c4be0f94faf56904a9377a9e5b"
66}
67extra-source "ocaml-base-compiler.install" {
68 src:
69 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-base-compiler/ocaml-base-compiler.install"
70 checksum: [
71 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
72 "md5=3e969b841df1f51ca448e6e6295cb451"
73 ]
74}