Skip to content

Commit

Permalink
Fix the environment in opam env as well for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jan 15, 2024
1 parent 6a0ceb2 commit dda7ae9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/conf-openblas/conf-openblas.0.2.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ license: "BSD-3-Clause"
build: [
["sh" "-exc" "cc $CFLAGS -I/usr/include/openblas test.c -lopenblas"]
{os-distribution = "fedora" | os-distribution = "centos" | os-family = "suse" | os-family = "opensuse"}
[
"sh"
"-exc"
"printf 'opam-version: \"2.0\"\\nvariables {\\n pkg-config-homebrew: \"%s/lib/pkgconfig\"\\n}' \"$(brew --prefix openblas)\" > %{_:name}%.config"
] {os = "macos" & os-distribution = "homebrew"}
[
"sh"
"-exc"
"printf 'opam-version: \"2.0\"\\nvariables {\\n pkg-config-homebrew: \"\"\\n}' > %{_:name}%.config"
] {os != "macos" | os-distribution != "homebrew"}
[
"sh"
"-exc"
Expand Down Expand Up @@ -35,6 +45,9 @@ x-ci-accept-failures: [
"oraclelinux-7"
"oraclelinux-8"
]
setenv: [
PKG_CONFIG_PATH += "%{_:pkg-config-homebrew}%"
]
synopsis: "Virtual package to install OpenBLAS and LAPACKE"
description:
"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."
Expand Down

0 comments on commit dda7ae9

Please # to comment.