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