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.0" 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.0 21 "ocaml" {= "5.1.0" & 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} 75 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")} 76 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed} 77 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"} 78 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"} 79 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"} 80 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"} 81 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"} 82 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"} 83 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"} 84 "LIBS=-static" {ocaml-option-static:installed} 85 "--disable-warn-error" 86 ] 87 [make "-j%{jobs}%"] 88] 89install: [make "install"] 90url { 91 src: "https://github.com/ocaml/ocaml/archive/5.1.0.tar.gz" 92 checksum: "sha256=43a3ac7aab7f8880f2bb6221317be55319b356e517622fdc28359fe943e6a450" 93} 94conflicts: [ 95 "system-msvc" 96] 97depopts: [ 98 "ocaml-option-32bit" 99 "ocaml-option-afl" 100 "ocaml-option-bytecode-only" 101 "ocaml-option-no-flat-float-array" 102 "ocaml-option-flambda" 103 "ocaml-option-fp" 104 "ocaml-option-no-compression" 105 "ocaml-option-musl" 106 "ocaml-option-leak-sanitizer" 107 "ocaml-option-address-sanitizer" 108 "ocaml-option-static" 109] 110extra-source "ocaml-variants.install" { 111 src: 112 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install" 113 checksum: [ 114 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678" 115 "md5=3e969b841df1f51ca448e6e6295cb451" 116 ] 117} 118# Back-ported ocaml/ocaml#13100 (5.2.0) - fixes the misdetection of zstd with 119# ocaml-option-musl 120patches: ["zstd-detection.patch"] 121extra-source "zstd-detection.patch" { 122 src: "https://github.com/ocaml/ocaml/commit/baf65b91c51bb04b09ecc98b94ddd4ba3b446912.patch?full_index=1" 123 checksum: "sha256=958e061bc3b967e32a5606d5109ed7faacb9b793fe2de0e8f8697c23a178c5cf" 124}