this repo has no description
1opam-version: "2.0"
2maintainer: "Liang Wang (ryanrhymes@gmail.com)"
3homepage: "https://github.com/xianyi/OpenBLAS"
4bug-reports: "https://github.com/ocaml/opam-repository/issues"
5license: "BSD-3-Clause"
6build: [
7 ["sh" "-exc" "%{build}%/centos_install.sh"] {os = "centos"}
8 ["sh" "-exc" "cc $CFLAGS test.c -lopenblas"] {os = "alpine"}
9 ["sh" "-exc" "cc $CFLAGS test.c -lopenblas"] {os = "debian"}
10 ["sh" "-exc" "cc $CFLAGS -I/usr/include/openblas test.c -lopenblas"]
11 {os = "fedora"}
12 [
13 "sh"
14 "-exc"
15 "cc $CFLAGS -I/usr/local/opt/openblas/include test.c -L/usr/local/opt/openblas/lib -lopenblas"
16 ] {os = "macos"}
17 ["sh" "-exc" "cc $CFLAGS test.c -lopenblas"]
18 {os != "macos" & os != "debian" & os != "centos" & os != "fedora" &
19 os != "alpine"}
20]
21depexts: [
22 ["openblas-devel"] {os-distribution = "fedora"}
23 ["libc-dev" "openblas-dev"] {os-distribution = "alpine"}
24 ["libopenblas-dev" "liblapacke-dev"] {os-family = "debian"}
25 ["homebrew/science/openblas"] {os = "macos" & os-distribution = "homebrew"}
26]
27synopsis: "Virtual package to install OpenBLAS and LAPACKE"
28description:
29 "The package prepares OpenBLAS (CBLAS) and LAPACKE backend for Owl (OCaml numerical library). It can only be installed if OpenBLAS and LAPACKE are installed on the system."
30authors: "Liang Wang (ryanrhymes@gmail.com)"
31flags: conf
32extra-source "test.c" {
33 src:
34 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-openblas/test.c.0.1"
35 checksum: [
36 "sha256=8c7ffa7f3835567060cc7a8eaae257b8b9ab278a0fa5d2e5677e0e0a8b40232b"
37 "md5=dcf8ee02542457dde43e1e4917897416"
38 ]
39}
40extra-source "centos_install.sh" {
41 src:
42 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-openblas/centos_install.sh"
43 checksum: [
44 "sha256=0fe8433ce38d6aeea7618a8f78676d2623b18e91ad49ebf33c9008d8b152c30b"
45 "md5=46ee889588a424b2d5b25b3de906ed6c"
46 ]
47}