opam-version: "2.0"
maintainer: "Vincent Bernardoff"
authors: ["Signal 11 Software"]
homepage: "http://www.signal11.us/oss/hidapi/"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
license: "BSD-3-Clause"
build: [
  ["pkg-config" "hidapi-libusb"] {os != "macos" & os != "freebsd"}
  ["pkg-config" "hidapi"] {os = "macos" | os = "freebsd"}
]
depends: ["conf-pkg-config" {build}]
depexts: [
  ["libhidapi-dev"] {os-family = "debian"}
  ["libhidapi-devel"] {os-family = "suse"}
  ["hidapi"] {os-distribution = "arch"}
  ["hidapi-devel"] {os-distribution = "fedora"}
  ["hidapi"] {os = "macos" & os-distribution = "homebrew"}
  ["hidapi"] {os = "freebsd"}
  ["hidapi-dev"] {os-distribution = "alpine"}
  ["epel-release" "hidapi-devel"] {os-distribution = "centos"}
]
synopsis: "Virtual package relying on a hidapi system installation"
description:
  "This package can only install if the hidapi lib is installed on the system."
flags: conf
