···
3
+
"OCaml cross-compiler and libraries from the DKML distribution that works with at least Win32 and macOS"
5
+
The DKML distribution of the OCaml bytecode and native compiler, Stdlib and the other OCaml libraries (str, unix, bigarray, etc.).
6
+
A cross-compiler for macOS x86_64 to macOS arm64 is included; for build consistency the regular OCaml compiler will be for x86_64 regardless of whether the build machine is Apple Silicon.
7
+
Install with something like: opam switch create dkml-4.12.1 '--formula="dkml-base-compiler" {>= "4.12.1~" & < "4.13.0~"}'"""
8
+
maintainer: "opensource+diskuv-ocaml@support.diskuv.com"
9
+
authors: "Diskuv, Inc. <opensource+diskuv-ocaml@support.diskuv.com>"
10
+
license: "Apache-2.0"
11
+
homepage: "https://github.com/diskuv/dkml-compiler"
12
+
bug-reports: "https://github.com/diskuv/dkml-compiler/issues"
14
+
"ocaml" {= "4.12.1" & post}
16
+
"base-bigarray" {post}
17
+
"base-threads" {post}
18
+
"dkml-runtime-common" {= "1.0.2~prerel7"}
20
+
depopts: ["ocaml-option-32bit"]
21
+
conflict-class: "ocaml-core-compiler"
23
+
opam-version >= "2.1.0" &
24
+
(arch = "x86_64" & (os = "linux" | os = "win32" | os = "macos") |
25
+
arch = "x86_32" & (os = "linux" | os = "win32") |
26
+
arch = "arm64" & os = "macos")
27
+
flags: [compiler avoid-version]
29
+
["sh" "scripts/macos-bundle-dump.sh"] {os = "macos"}
30
+
["install" "-d" "dl/ocaml/flexdll"]
31
+
["tar" "xCfz" "dl/ocaml" "dl/ocaml.tar.gz" "--strip-components=1"]
33
+
"tar" "xCfz" "dl/ocaml/flexdll" "dl/flexdll.tar.gz" "--strip-components=1"
35
+
["install" "-d" "dkmldir"]
39
+
"printf 'dkml_root_version=%s\\n' '%{version}%' | sed 's/[0-9.]*~v//; s/~/-/' > dkmldir/.dkmlroot"
41
+
["install" "-d" "dkmldir/vendor/drc"]
45
+
"tar cCf '%{dkml-runtime-common:lib}%/' - . | tar xCf dkmldir/vendor/drc/ -"
50
+
"dkmldir/vendor/dkml-compiler/src"
51
+
"dkmldir/vendor/dkml-compiler/env"
55
+
"env/standard-compiler-env-to-ocaml-configure-env.sh"
56
+
"dkmldir/vendor/dkml-compiler/env/"
61
+
"tar cCf src/ - . | tar xCf dkmldir/vendor/dkml-compiler/src/ -"
67
+
"TOPDIR=dkmldir/vendor/drc/all/emptytop"
68
+
"DKML_REPRODUCIBLE_SYSTEM_BREWFILE=%{_:build}%/Brewfile"
69
+
"dkmldir/vendor/dkml-compiler/src/r-c-ocaml-1-setup.sh"
77
+
"%{_:share}%/mlcross"
82
+
{os = "win32" & (arch = "x86_32" | ocaml-option-32bit:installed)}
84
+
{os = "win32" & arch = "x86_64" & !ocaml-option-32bit:installed}
86
+
{os = "linux" & (arch = "x86_32" | ocaml-option-32bit:installed)}
88
+
{os = "linux" & arch = "x86_64" & !ocaml-option-32bit:installed}
89
+
"-edarwin_x86_64" {os = "macos" & arch = "x86_64"}
90
+
"-edarwin_arm64" {os = "macos" & arch = "arm64"}
91
+
"-adarwin_x86_64=vendor/dkml-compiler/env/standard-compiler-env-to-ocaml-configure-env.sh"
92
+
{os = "macos" & arch = "arm64"}
93
+
"-adarwin_arm64=vendor/dkml-compiler/env/standard-compiler-env-to-ocaml-configure-env.sh"
94
+
{os = "macos" & arch = "x86_64"}
96
+
"vendor/dkml-compiler/env/standard-compiler-env-to-ocaml-configure-env.sh"
103
+
share/dkml/repro/100co/vendor/dkml-compiler/src/r-c-ocaml-2-build_host-noargs.sh
111
+
share/dkml/repro/100co/vendor/dkml-compiler/src/r-c-ocaml-3-build_cross-noargs.sh
115
+
dev-repo: "git+https://github.com/diskuv/dkml-compiler.git"
118
+
"https://github.com/diskuv/dkml-compiler/releases/download/1.0.2-prerel7-r2/src.tar.gz"
120
+
"md5=6f0301013b0e5976d3753c7a5ab54061"
121
+
"sha512=40faf510a113439678ea2424905b1ad6c79c22315c23f688f6b4e685d90bc83161b6d0d74d65b6e750065a6df234ec4845b04b5352dc9fb9fb9442a10ef3bba3"
124
+
extra-source "dl/flexdll.tar.gz" {
125
+
src: "https://github.com/alainfrisch/flexdll/archive/0.39.tar.gz"
127
+
"sha256=51a6ef2e67ff475c33a76b3dc86401a0f286c9a3339ee8145053ea02d2fb5974"
129
+
extra-source "dl/homebrew-bundle.tar.gz" {
131
+
"https://github.com/Homebrew/homebrew-bundle/archive/4756e4c4cf95485c5ea4da27375946c1dac2c71d.tar.gz"
133
+
"sha256=10c024ca7871cea36b4c27b2601971d3fa6cba6f37855613baf0026d0f555e76"
135
+
extra-source "dl/ocaml.tar.gz" {
136
+
src: "https://github.com/ocaml/ocaml/archive/4.12.1.tar.gz"
138
+
"sha256=f5a48a90557cb47ace7b1590fcab1362a1af38629a218350f69c225c57e96a41"