opam-version: "1.2"
maintainer: "yallop@gmail.com"
authors: "yallop@gmail.com"
homepage: "https://github.com/ocamllabs/ocaml-ctypes"
bug-reports: "http://github.com/ocamllabs/ocaml-ctypes/issues"
license: "MIT"
doc: "http://ocamllabs.github.io/ocaml-ctypes"
tags: ["org:ocamllabs" "org:mirage"]
dev-repo: "http://github.com/ocamllabs/ocaml-ctypes.git"
build: [
  [make "XEN=%{mirage-xen:enable}%" "libffi.config"]
    {ctypes-foreign:installed}
  ["touch" "libffi.config"] {!ctypes-foreign:installed}
  [make "XEN=%{mirage-xen:enable}%" "ctypes-base" "ctypes-stubs"]
  [make "XEN=%{mirage-xen:enable}%" "ctypes-foreign"]
    {ctypes-foreign:installed}
]
install: [make "install" "XEN=%{mirage-xen:enable}%"]
build-test: [make "test"]
remove: ["ocamlfind" "remove" "ctypes"]
depends: [
  "base-bytes"
  "integers"
  "ocamlfind" {build}
  "conf-pkg-config" {build}
  "lwt" {test & >= "2.4.7" & < "4.0.0"}
  "ounit" {test}
  "ctypes-foreign" {test}
  "conf-ncurses" {test}
]
depopts: ["ctypes-foreign" "mirage-xen"]
available: [ocaml-version >= "4.01.0"]
