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 4.13.1"
4maintainer: [
5 "David Allsopp <david@tarides.com>"
6 "Florian Angeletti <florian.angeletti@inria.fr>"
7]
8authors: ["Xavier Leroy" "Damien Doligez" "Alain Frisch" "Jacques Garrigue" "Didier Rémy" "Jérôme Vouillon"]
9homepage: "https://ocaml.org"
10bug-reports: "https://github.com/ocaml/opam-repository/issues"
11dev-repo: "git+https://github.com/ocaml/ocaml.git#4.13"
12depends: [
13 # This is OCaml 4.13.1
14 "ocaml" {= "4.13.1" & post}
15
16 # General base- packages
17 "base-unix" {post}
18 "base-bigarray" {post}
19 "base-threads" {post}
20
21 # Port selection (Windows)
22 # amd64 mingw-w64 / MSVC
23 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
24 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
25 "system-msvc")) |
26 # i686 mingw-w64 / MSVC
27 ("arch-x86_32" {os = "win32"} &
28 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
29 "system-msvc")) |
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 # Support Packages
35 "flexdll" {>= "0.36" & os = "win32"}
36]
37conflict-class: "ocaml-core-compiler"
38flags: compiler
39build-env: MSYS2_ARG_CONV_EXCL = "*"
40setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
41x-env-path-rewrite: [
42 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
43]
44build: [
45 [
46 "./configure"
47 "--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed}
48 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
49 "--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed}
50 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
51 "--prefix=%{prefix}%"
52 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
53 "-C"
54 "--with-afl" {ocaml-option-afl:installed}
55 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
56 "--disable-force-safe-string" {ocaml-option-default-unsafe-string:installed}
57 "DEFAULT_STRING=unsafe" {ocaml-option-default-unsafe-string:installed}
58 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
59 "--enable-flambda" {ocaml-option-flambda:installed}
60 "--enable-frame-pointers" {ocaml-option-fp:installed}
61 "--disable-naked-pointers" {ocaml-option-nnp:installed}
62 "--enable-naked-pointers-checker" {ocaml-option-nnpchecker:installed}
63 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
64 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
65 "CFLAGS=-Os" {ocaml-option-musl:installed}
66 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
67 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
68 "ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
69 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
70 "ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"}
71 "ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"}
72 "AS=as --32" {ocaml-option-32bit:installed & os="linux"}
73 "AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"}
74 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
75 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
76 "PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"}
77 "LIBS=-static" {ocaml-option-static:installed}
78 ]
79 [make "-j%{jobs}%"]
80]
81install: [make "install"]
82url {
83 src: "https://github.com/ocaml/ocaml/archive/4.13.1.tar.gz"
84 checksum: "sha256=194c7988cc1fd1c64f53f32f2f7551e5309e44d914d6efc7e2e4d002296aeac4"
85}
86post-messages: [
87 "A failure in the middle of the build may be caused by build parallelism
88 (enabled by default).
89 Please file a bug report at https://github.com/ocaml/opam-repository/issues"
90 {failure & jobs > 1}
91 "You can try installing again including --jobs=1
92 to force a sequential build instead."
93 {failure & jobs > 1 & opam-version >= "2.0.5"}
94]
95depopts: [
96 "ocaml-option-32bit"
97 "ocaml-option-afl"
98 "ocaml-option-bytecode-only"
99 "ocaml-option-default-unsafe-string"
100 "ocaml-option-no-flat-float-array"
101 "ocaml-option-flambda"
102 "ocaml-option-fp"
103 "ocaml-option-musl"
104 "ocaml-option-static"
105 "ocaml-option-nnp"
106 "ocaml-option-nnpchecker"
107]
108extra-source "ocaml-variants.install" {
109 src:
110 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install"
111 checksum: [
112 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
113 "md5=3e969b841df1f51ca448e6e6295cb451"
114 ]
115}