/
opam
44 lines (44 loc) · 1.13 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
opam-version: "2.0"
synopsis: "first beta of 4.05.0 with flambda activated"
maintainer: "David Allsopp <david@tarides.com>"
depends: [
"ocaml" {= "4.05.0" & post}
"base-unix" {post}
"base-bigarray" {post}
"base-threads" {post}
]
conflict-class: "ocaml-core-compiler"
flags: compiler
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
build: [
[
"sed"
"-ib"
"-e"
"s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
"config/auto-aux/hasgot"
] {os = "macos"}
["./configure" "-prefix" prefix "-with-debug-runtime" "-flambda"]
{os != "openbsd" & os != "freebsd" & os != "macos"}
[
"./configure"
"-prefix"
prefix
"-with-debug-runtime"
"-flambda"
"-cc"
"cc"
"-aspp"
"cc -c"
] {os = "openbsd" | os = "freebsd" | os = "macos"}
[make "world"]
[make "world.opt"]
]
install: [make "install"]
url {
src: "https://github.com/ocaml/ocaml/archive/4.05.0+beta1.tar.gz"
checksum: "md5=5cda3f2a3be4aaa8753e74eee73a15dc"
}
patches: ["fix-gcc10.patch"]
extra-files: [ ["fix-gcc10.patch" "md5=3791e3c17d11ec0f246fc6c5c5e5e2f3"] ]
available: !(os = "macos" & arch = "arm64" | os = "win32")