this repo has no description
1opam-version: "2.0"
2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3synopsis: "Latest 4.14 development"
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#4.14"
19depends: [
20 # This is OCaml 4.14.3
21 "ocaml" {= "4.14.3" & post}
22
23 # General base- packages
24 "base-unix" {post}
25 "base-bigarray" {post}
26 "base-threads" {post}
27
28 "ocaml-beta" {opam-version < "2.1.0"}
29
30 # Architecture (non-Windows)
31 # opam-repository at present requires that ocaml-base-compiler is installed
32 # using an architecture which matches the machine's, since arch is used in
33 # available fields. Cross-compilation at this stage is an unstable accident.
34 "host-arch-arm32" {arch = "arm32" & post}
35 "host-arch-arm64" {arch = "arm64" & post}
36 "host-arch-ppc64" {arch = "ppc64" & post}
37 "host-arch-riscv64" {arch = "riscv64" & post}
38 "host-arch-s390x" {arch = "s390x" & post}
39 # The Windows ports explicitly select the architecture (see below) this
40 # facility is not yet available for other platforms.
41 "host-arch-x86_32" {os != "win32" & arch = "x86_32" & post}
42 ("host-arch-x86_64" {os != "win32" & arch = "x86_64" & post} |
43 ("host-arch-x86_32" {os != "win32" & arch = "x86_64" & post} & "ocaml-option-32bit" {os != "win32" & arch = "x86_64"}))
44 "host-arch-unknown" {os != "win32" & arch != "arm32" & arch != "arm64" & arch != "ppc64" & arch != "riscv64" & arch != "s390x" & arch != "x86_32" & arch != "x86_64" & post}
45
46 # Port selection (Windows)
47 # amd64 mingw-w64 / MSVC
48 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
49 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
50 "system-msvc")) |
51 # i686 mingw-w64 / MSVC
52 ("arch-x86_32" {os = "win32"} &
53 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & post}) |
54 "system-msvc")) |
55 # Non-Windows systems
56 "host-system-other" {os != "win32" & post})
57
58 # Support Packages
59 "flexdll" {>= "0.36" & os = "win32"}
60]
61conflict-class: "ocaml-core-compiler"
62flags: [ compiler avoid-version ]
63build-env: MSYS2_ARG_CONV_EXCL = "*"
64setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
65x-env-path-rewrite: [
66 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
67]
68build: [
69 [
70 "./configure"
71 "--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed}
72 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
73 "--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed}
74 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
75 "--prefix=%{prefix}%"
76 "--docdir=%{doc}%/ocaml"
77 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
78 "-C"
79 "--with-afl" {ocaml-option-afl:installed}
80 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
81 "--disable-force-safe-string" {ocaml-option-default-unsafe-string:installed}
82 "DEFAULT_STRING=unsafe" {ocaml-option-default-unsafe-string:installed}
83 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
84 "--enable-flambda" {ocaml-option-flambda:installed}
85 "--enable-frame-pointers" {ocaml-option-fp:installed}
86 "--disable-naked-pointers" {ocaml-option-nnp:installed}
87 "--enable-naked-pointers-checker" {ocaml-option-nnpchecker:installed}
88 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
89 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
90 "CFLAGS=-Os" {ocaml-option-musl:installed}
91 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
92 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
93 "ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
94 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
95 "ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"}
96 "ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"}
97 "AS=as --32" {ocaml-option-32bit:installed & os="linux"}
98 "AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"}
99 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
100 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
101 "PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"}
102 "LIBS=-static" {ocaml-option-static:installed}
103 "--disable-warn-error"
104 ]
105 [make "-j%{jobs}%"]
106]
107install: [make "install"]
108url {
109 src: "https://github.com/ocaml/ocaml/archive/4.14.tar.gz"
110}
111depopts: [
112 "ocaml-option-32bit"
113 "ocaml-option-afl"
114 "ocaml-option-bytecode-only"
115 "ocaml-option-default-unsafe-string"
116 "ocaml-option-no-flat-float-array"
117 "ocaml-option-flambda"
118 "ocaml-option-fp"
119 "ocaml-option-musl"
120 "ocaml-option-static"
121 "ocaml-option-nnp"
122 "ocaml-option-nnpchecker"
123]