opam-version: "2.0"
authors: ["Bertrand Jeannet" "Nicolas Berthier"]
maintainer: "Nicolas Berthier <m@nberth.space>"
dev-repo: "git+https://github.com/nberth/mlgmpidl.git"
bug-reports: "https://github.com/nberth/mlgmpidl/issues"
homepage: "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/"
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
build: [
  ["sh" "./configure" "--absolute-dylibs" {os = "macos"}
        "CPPFLAGS+=-I%{conf-gmp:incdir}%"  { conf-gmp:incdir != "" }
        "CPPFLAGS+=-I%{conf-mpfr:incdir}%" { conf-mpfr:incdir != "" }
        "LDFLAGS+=-L%{conf-gmp:libdir}%"   { conf-gmp:libdir != "" }
        "LDFLAGS+=-L%{conf-mpfr:libdir}%"  { conf-mpfr:libdir != "" } ]
  [make]
]
install: [
  [make "install"]
]
depends: [
  "ocaml" {>= "3.12.1"}
  "ocamlfind" {build & >= "1.5.6"}
  "camlidl" {!= "1.10"}
  "conf-gmp" {>= "5"}
  "conf-mpfr" {>= "4"}
  "conf-perl" {build}
]
conflicts: [
  "mlgmp"
  "apron" {= "20140725"}
  "apron" {= "20150518"}
]
synopsis: "OCaml interface to the GMP library"
