opam-version: "2.0"
synopsis: "Virtual package relying on pkg-config installation"
description: """
This package can only install if the pkg-config package is installed
on the system."""
maintainer: "unixjunkie@sdf.org"
authors: "Francois Berenger"
license: "GPL"
homepage: "http://www.freedesktop.org/wiki/Software/pkg-config/"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
flags: conf
build: ["pkg-config" "--help"]
install:
  ["ln" "-s" "/usr/local/bin/pkgconf" "%{bin}%/pkg-config"] {os = "openbsd"}
remove: ["rm" "-f" "%{bin}%/pkg-config"] {os = "openbsd"}
post-messages:
  "conf-pkg-config: A symlink to /usr/local/bin/pkgconf has been installed in the OPAM bin directory (%{bin}%) on your PATH as 'pkg-config'. This is necessary for correct operation."
    {os = "openbsd"}
depexts: [
  ["pkg-config"] {os-distribution = "debian"}
  ["pkg-config"] {os-distribution = "ubuntu"}
  ["pkg-config"] {os-distribution = "archlinux"}
  ["pkgconfig"] {os-distribution = "fedora"}
  ["pkgconfig"] {os-distribution = "centos"}
  ["pkgconfig"] {os-distribution = "mageia"}
  ["pkgconfig"] {os-distribution = "rhel"}
  ["pkgconfig"] {os-distribution = "oraclelinux"}
  ["pkgconfig"] {os-distribution = "alpine"}
  ["devel/pkgconf"] {os = "freebsd"}
  ["devel/pkgconf"] {os = "openbsd"}
  ["pkg-config"] {os = "macos" & os-distribution = "homebrew"}
  ["pkgconf"] {os = "freebsd"}
]
