opam-version: "2.0"
maintainer: "hez@0ok.org"
authors: "Hezekiah M. Carty"
license: "MIT"
homepage: "https://github.com/hcarty/ocaml-gdal"
bug-reports: "https://github.com/hcarty/ocaml-gdal/issues"
dev-repo: "git+https://github.com/hcarty/ocaml-gdal.git"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
]
install: ["ocaml" "setup.ml" "-install"]

remove: ["ocamlfind" "remove" "gdal"]

depends: [
  "ocaml" {>= "4.02.1"}
  "ocamlfind" {build}
  "ctypes" {>= "0.4.0" & < "0.18.0"}
  "ctypes-foreign" {>= "0.4.0"}
  "ocamlbuild" {build}
]
depexts: [
  ["libgdal-dev"] {os-family = "debian"}
  ["gdal"] {os = "macos" & os-distribution = "homebrew"}
]
synopsis: "Bindings to the GDAL and OGR libraries"
flags: light-uninstall
url {
  src: "https://github.com/hcarty/ocaml-gdal/archive/v0.9.0.tar.gz"
  checksum: "md5=496f9fb7a1b33dcd8a59efbf8cd62e37"
}
