|
| 1 | +opam-version: "2.0" |
| 2 | +maintainer: "Alan < [email protected]>" |
| 3 | +authors: [ |
| 4 | + |
| 5 | + "The LLVM team" |
| 6 | +] |
| 7 | +license: "MIT" |
| 8 | +bug-reports: "http://llvm.org/bugs/" |
| 9 | +dev-repo: "git+http://llvm.org/git/llvm.git" |
| 10 | +doc: "http://llvm.org" |
| 11 | +homepage: "http://llvm.org" |
| 12 | +build: [ |
| 13 | + ["bash" "-ex" "install.sh" "build" |
| 14 | + "--llvm-config" "%{conf-llvm-shared:config}%" |
| 15 | + "--libdir" lib |
| 16 | + "--cmake" "%{conf-cmake:cmd}%" |
| 17 | + "--make" make |
| 18 | + "--link-mode" "shared" |
| 19 | + "--use-homebrew" {os-distribution = "homebrew"} |
| 20 | + ] |
| 21 | +] |
| 22 | +install: [ |
| 23 | + ["bash" "-ex" "install.sh" "install" |
| 24 | + "--llvm-config" "%{conf-llvm-shared:config}%" |
| 25 | + "--libdir" lib |
| 26 | + "--cmake" "%{conf-cmake:cmd}%" |
| 27 | + "--make" make |
| 28 | + "--link-mode" "shared" |
| 29 | + "--use-homebrew" {os-distribution = "homebrew"} |
| 30 | + ] |
| 31 | +] |
| 32 | +depends: [ |
| 33 | + "ocaml" {>= "4.00.0"} |
| 34 | + "ctypes" {>= "0.4"} |
| 35 | + "ocamlfind" {build} |
| 36 | + "conf-llvm-shared" {build & = "19"} |
| 37 | + "conf-cmake" {build} |
| 38 | +] |
| 39 | +patches: [ |
| 40 | + "AddOCaml.cmake.patch" |
| 41 | +] |
| 42 | +synopsis: "The OCaml bindings distributed with LLVM" |
| 43 | +description: "Note: LLVM should be installed first." |
| 44 | +url { |
| 45 | + src: "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/llvm-project-19.1.7.src.tar.xz" |
| 46 | + checksum: [ |
| 47 | + "sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501" |
| 48 | + "md5=0333b37c90e183d5298470d5b70a87e4" |
| 49 | + ] |
| 50 | +} |
| 51 | +extra-source "install.sh" { |
| 52 | + src: |
| 53 | + "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/llvm/install.sh.18" |
| 54 | + checksum: [ |
| 55 | + "sha256=c1f95d0c7ae539fcbe97327c4ed64e7a86009143c34f7e721319407975965bae" |
| 56 | + "md5=6e458426d1008d4696662cf7d3432d8b" |
| 57 | + ] |
| 58 | +} |
| 59 | +extra-source "AddOCaml.cmake.patch" { |
| 60 | + src: |
| 61 | + "https://raw.githubusercontent.com/ocaml/opam-source-archives/353cd1c3bbfd32a3ba6309e631bcdd6949c5b2ce/patches/llvm/AddOCaml.cmake.patch.19" |
| 62 | + checksum: [ |
| 63 | + "sha256=e7f8c13b60eeac6dc81ebd6ab9ddd8b6f6272d3351ae608881101b2aef949c8d" |
| 64 | + "md5=2fad2f9e7613690301d35db8b09c784f" |
| 65 | + ] |
| 66 | +} |
| 67 | + |
0 commit comments