diff --git a/packages/conf-pkg-config/conf-pkg-config.4/opam b/packages/conf-pkg-config/conf-pkg-config.4/opam new file mode 100644 index 00000000000..8ec78cb8228 --- /dev/null +++ b/packages/conf-pkg-config/conf-pkg-config.4/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "unixjunkie@sdf.org" +authors: ["Francois Berenger"] +homepage: "http://www.freedesktop.org/wiki/Software/pkg-config/" +bug-reports: "https://github.com/ocaml/opam-repository/issues" +license: "GPL-1.0-or-later" +depends: [ + ("host-arch-x86_64" {os = "win32" & os-distribution = "msys2"} & "conf-mingw-w64-pkgconf-x86_64" {os = "win32" & os-distribution = "msys2"} | + "host-arch-x86_32" {os = "win32" & os-distribution = "msys2"} & "conf-mingw-w64-pkgconf-i686" {os = "win32" & os-distribution = "msys2"}) +] +build: [ + ["pkg-config" "--help"] {os != "openbsd" & os != "win32" & !(os = "macos" & os-distribution = "homebrew")} + ["pkgconf" "--version"] {(os = "win32" & os-distribution != "msys2") | (os = "macos" & os-distribution = "homebrew")} +] +depexts: [ + ["pkg-config"] {os-family = "debian" | os-family = "ubuntu"} + ["pkgconf"] {os-distribution = "arch"} + ["pkgconf-pkg-config"] {os-distribution = "fedora"} + ["pkgconfig"] {os-distribution = "centos" & os-version <= "7"} + ["pkgconf-pkg-config"] {os-distribution = "mageia"} + ["pkgconfig"] {os-distribution = "rhel" & os-version <= "7"} + ["pkgconfig"] {os-distribution = "ol" & os-version <= "7"} + ["pkgconf"] {os-distribution = "alpine"} + ["pkg-config"] {os-distribution = "nixos"} + ["pkgconf"] {os = "macos" & os-distribution = "homebrew"} + ["pkgconfig"] {os = "macos" & os-distribution = "macports"} + ["pkgconf"] {os = "freebsd"} + ["pkgconf-pkg-config"] {os-distribution = "rhel" & os-version >= "8"} + ["pkgconf-pkg-config"] {os-distribution = "centos" & os-version >= "8"} + ["pkgconf-pkg-config"] {os-distribution = "ol" & os-version >= "8"} + ["system:pkgconf"] {os = "win32" & os-distribution = "cygwinports"} + ["pkgconf"] {os-distribution = "cygwin"} +] +synopsis: "Check if pkg-config is installed and create an opam switch local pkgconfig folder" +description: """ +This package can only install if the pkg-config package is installed +on the system.""" +flags: conf