opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
homepage: "https://github.com/stevengj/nlopt"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
authors: "NLopt dev team"
license: "LGPL-2.1-or-later"
build: ["pkg-config" "--exists" "nlopt"]
depends: [
  "conf-pkg-config" {build}
]
depexts: [
  ["libnlopt-dev"] {os-family = "debian"}
  ["libnlopt-dev"] {os-family = "ubuntu"}
  ["NLopt-devel"] {os-distribution = "fedora"}
  ["NLopt-devel"] {os-distribution = "rhel"}
  ["NLopt-devel" "epel-release"] {os-distribution = "centos" & os-version < "8"}
  ["nlopt-devel"] {os-family = "suse"}
  ["nlopt"] {os-family = "arch"}
  ["nlopt"] {os = "freebsd"}
  ["nlopt"] {os = "openbsd"}
  ["nlopt"] {os = "netbsd"}
  ["nlopt"] {os = "macos" & os-distribution = "homebrew"}
]
x-ci-accept-failures: [
  "alpine-3.12"
  "oraclelinux-7"
  "oraclelinux-8"
  "centos-8"
]
synopsis: "Virtual package relying on nlopt"
description:
  "This package can only install if the nlopt library is installed on the system."
flags: conf
