|
| 1 | +opam-version: "2.0" |
| 2 | + |
| 3 | +authors: ["Francois Berenger"] |
| 4 | +homepage: "http://www.freedesktop.org/wiki/Software/pkg-config/" |
| 5 | +bug-reports: "https://github.com/ocaml/opam-repository/issues" |
| 6 | +license: "GPL-1.0-or-later" |
| 7 | +depends: [ |
| 8 | + ("host-arch-x86_64" {os = "win32" & os-distribution = "msys2"} & "conf-mingw-w64-pkgconf-x86_64" {os = "win32" & os-distribution = "msys2"} | |
| 9 | + "host-arch-x86_32" {os = "win32" & os-distribution = "msys2"} & "conf-mingw-w64-pkgconf-i686" {os = "win32" & os-distribution = "msys2"}) |
| 10 | +] |
| 11 | +build: [ |
| 12 | + ["pkg-config" "--help"] {os != "openbsd" & os != "win32" & !(os = "macos" & os-distribution = "homebrew")} |
| 13 | + ["pkgconf" "--version"] {(os = "win32" & os-distribution != "msys2") | (os = "macos" & os-distribution = "homebrew")} |
| 14 | +] |
| 15 | +depexts: [ |
| 16 | + ["pkg-config"] {os-family = "debian" | os-family = "ubuntu"} |
| 17 | + ["pkgconf"] {os-distribution = "arch"} |
| 18 | + ["pkgconf-pkg-config"] {os-distribution = "fedora"} |
| 19 | + ["pkgconfig"] {os-distribution = "centos" & os-version <= "7"} |
| 20 | + ["pkgconf-pkg-config"] {os-distribution = "mageia"} |
| 21 | + ["pkgconfig"] {os-distribution = "rhel" & os-version <= "7"} |
| 22 | + ["pkgconfig"] {os-distribution = "ol" & os-version <= "7"} |
| 23 | + ["pkgconf"] {os-distribution = "alpine"} |
| 24 | + ["pkg-config"] {os-distribution = "nixos"} |
| 25 | + ["pkgconf"] {os = "macos" & os-distribution = "homebrew"} |
| 26 | + ["pkgconfig"] {os = "macos" & os-distribution = "macports"} |
| 27 | + ["pkgconf"] {os = "freebsd"} |
| 28 | + ["pkgconf-pkg-config"] {os-distribution = "rhel" & os-version >= "8"} |
| 29 | + ["pkgconf-pkg-config"] {os-distribution = "centos" & os-version >= "8"} |
| 30 | + ["pkgconf-pkg-config"] {os-distribution = "ol" & os-version >= "8"} |
| 31 | + ["system:pkgconf"] {os = "win32" & os-distribution = "cygwinports"} |
| 32 | + ["pkgconf"] {os-distribution = "cygwin"} |
| 33 | +] |
| 34 | +synopsis: "Check if pkg-config is installed and create an opam switch local pkgconfig folder" |
| 35 | +description: """ |
| 36 | +This package can only install if the pkg-config package is installed |
| 37 | +on the system.""" |
| 38 | +flags: conf |
0 commit comments