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.0.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.0" 19depends: [ 20 # This is OCaml 5.0.0 21 "ocaml" {= "5.0.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" & post}) | 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" & post}) | 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 # Only amd64 and arm64 support the native compiler 42 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"} 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 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")} 71 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"} 72 "CFLAGS=-Os" {ocaml-option-musl:installed & arch!="arm64"} 73 "CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch="arm64"} 74 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")} 75 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed} 76 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"} 77 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"} 78 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"} 79 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"} 80 "ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")} 81 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"} 82 "ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"} 83 "ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"} 84 "AS=as --32" {ocaml-option-32bit:installed & os="linux"} 85 "AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"} 86 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"} 87 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"} 88 "PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"} 89 "LIBS=-static" {ocaml-option-static:installed} 90 "--disable-warn-error" 91 ] 92 [make "-j%{jobs}%"] 93] 94install: [make "install"] 95url { 96 src: "https://github.com/ocaml/ocaml/archive/5.0.0.tar.gz" 97 checksum: "sha256=72fa3d0ba19b82fcb9e6c62e0090b9d22e5905c4be0f94faf56904a9377a9e5b" 98} 99conflicts: [ 100 "ocaml-option-fp" 101 "system-msvc" 102] 103depopts: [ 104 "ocaml-option-32bit" 105 "ocaml-option-afl" 106 "ocaml-option-bytecode-only" 107 "ocaml-option-no-flat-float-array" 108 "ocaml-option-flambda" 109 "ocaml-option-musl" 110 "ocaml-option-leak-sanitizer" 111 "ocaml-option-address-sanitizer" 112 "ocaml-option-static" 113] 114extra-source "ocaml-variants.install" { 115 src: 116 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install" 117 checksum: [ 118 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678" 119 "md5=3e969b841df1f51ca448e6e6295cb451" 120 ] 121}