-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
40 lines (40 loc) · 1.38 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
opam-version: "2.0"
maintainer: "unixjunkie@sdf.org"
homepage: "http://www.mpfr.org/"
authors: "http://www.mpfr.org/credit.html"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "LGPL-2.0-or-later"
build: [
"sh" "-exc" "pkg-config --print-errors --exists mpfr || cc test.c -lgmp -lmpfr"
]
depends: [
"conf-pkg-config" {build}
"conf-gmp" {build}
]
depexts: [
["libmpfr-dev"] {os-family = "debian"}
["libmpfr-dev"] {os-family = "ubuntu"}
["mpfr-devel"] {os-distribution = "fedora"}
["mpfr-devel"] {os-distribution = "ol"}
["mpfr-devel"] {os-distribution = "centos"}
["mpfr"] {os = "macos" & os-distribution = "homebrew"}
["mpfr"] {os = "macos" & os-distribution = "macports"}
["mpfr"] {os = "freebsd"}
["mpfr"] {os = "openbsd"}
["mpfr"] {os-family = "arch"}
["mpfr-dev"] {os-family = "alpine"}
["mpfr-devel"] {os-family = "suse" | os-family = "opensuse"}
["mpfr"] {os = "win32" & os-distribution = "cygwinports"}
]
synopsis: "Virtual package relying on library MPFR installation"
description:
"This package can only install if the MPFR library is installed on the system."
flags: conf
extra-source "test.c" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-mpfr/test.c"
checksum: [
"sha256=4050deea821aa4f5e9e7a20d7ce9bf7dd612b9628f2ee0cdf1b1b6b5b3de8b68"
"md5=ac7e04b5e22a41cb3c028180d1b811d6"
]
}