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 5.1.1" 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#5.1" 19depends: [ 20 # This is OCaml 5.1.1 21 "ocaml" {= "5.1.1" & post} 22 23 # General base- packages 24 "base-unix" {post} 25 "base-bigarray" {post} 26 "base-threads" {post} 27 "base-domains" {post} 28 "base-nnp" {post} 29 30 # Port selection (Windows) 31 # amd64 mingw-w64 only 32 (("arch-x86_64" {os = "win32" & arch = "x86_64"} & 33 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | 34 # i686 mingw-w64 only 35 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} & 36 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | 37 # Non-Windows systems need to install something to satisfy this formula, so 38 # repeat the base-unix dependency 39 "base-unix" {os != "win32" & post}) 40 41 # POWER and all the 32-bit architectures are bytecode-only 42 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64"} 43 44 # Support Packages 45 "flexdll" {>= "0.42" & os = "win32"} 46] 47conflict-class: "ocaml-core-compiler" 48flags: compiler 49setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs" 50x-env-path-rewrite: [ 51 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"] 52] 53build-env: [ 54 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"] 55 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"] 56] 57build: [ 58 [ 59 "./configure" 60 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed} 61 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed} 62 "--prefix=%{prefix}%" 63 "--docdir=%{doc}%/ocaml" 64 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed} 65 "-C" 66 "--with-afl" {ocaml-option-afl:installed} 67 "--disable-native-compiler" {ocaml-option-bytecode-only:installed} 68 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed} 69 "--enable-flambda" {ocaml-option-flambda:installed} 70 "--enable-frame-pointers" {ocaml-option-fp:installed} 71 "--without-zstd" {ocaml-option-no-compression:installed} 72 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")} 73 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"} 74 "CFLAGS=-Os" {ocaml-option-musl:installed & arch!="arm64"} 75 "CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch="arm64"} 76 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")} 77 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed} 78 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"} 79 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"} 80 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"} 81 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"} 82 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"} 83 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"} 84 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"} 85 "LIBS=-static" {ocaml-option-static:installed} 86 "--disable-warn-error" 87 ] 88 [make "-j%{jobs}%"] 89] 90install: [make "install"] 91url { 92 src: "https://github.com/ocaml/ocaml/archive/5.1.1.tar.gz" 93 checksum: "sha256=57f7b382b3d71198413ede405d95ef3506f1cdc480cda1dca1e26b37cb090e17" 94} 95conflicts: [ 96 "system-msvc" 97] 98depopts: [ 99 "ocaml-option-32bit" 100 "ocaml-option-afl" 101 "ocaml-option-bytecode-only" 102 "ocaml-option-no-flat-float-array" 103 "ocaml-option-flambda" 104 "ocaml-option-fp" 105 "ocaml-option-no-compression" 106 "ocaml-option-musl" 107 "ocaml-option-leak-sanitizer" 108 "ocaml-option-address-sanitizer" 109 "ocaml-option-static" 110] 111extra-source "ocaml-variants.install" { 112 src: 113 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install" 114 checksum: [ 115 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678" 116 "md5=3e969b841df1f51ca448e6e6295cb451" 117 ] 118} 119# Back-ported ocaml/ocaml#13100 (5.2.0) - fixes the misdetection of zstd with 120# ocaml-option-musl 121patches: ["zstd-detection.patch"] 122extra-source "zstd-detection.patch" { 123 src: "https://github.com/ocaml/ocaml/commit/baf65b91c51bb04b09ecc98b94ddd4ba3b446912.patch?full_index=1" 124 checksum: "sha256=958e061bc3b967e32a5606d5109ed7faacb9b793fe2de0e8f8697c23a178c5cf" 125}