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