opam-version: "2.0"
authors: ["Christophe Troestler <Christophe.Troestler@umons.ac.be>"]
maintainer: "Christophe.Troestler@umons.ac.be"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/Chris00/fftw-ocaml"
dev-repo: "git+https://github.com/Chris00/fftw-ocaml.git"
bug-reports: "https://github.com/Chris00/fftw-ocaml/issues"
doc: "https://Chris00.github.io/fftw-ocaml/doc"
tags: ["FFT"]
build: [
  ["jbuilder" "subst" "-p" name] {pinned}
  ["jbuilder" "build" "-p" name "-j" jobs] {os != "macos"}
  [
    "env"
    "FFTW3_CFLAGS=-I /usr/local/include -L /usr/local/lib -I /usr/local/include -L /usr/local/lib"
    "jbuilder"
    "build"
    "-p"
    name
    "-j"
    jobs
  ] {os = "macos"}
  ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
  "ocaml" {>= "4.03.0" & < "4.10"}
  "jbuilder"
  "cppo" {build}
  "configurator" {build & < "v0.15"}
  "base" {build & < "v0.15"}
  "stdio" {build & < "v0.15"}
  "lacaml" {with-test}
]
depexts: [
  ["libfftw3-dev"] {os-family = "debian"}
  ["fftw-devel"] {os-distribution = "centos"}
  ["fftw-dev"] {os-distribution = "alpine"}
  ["fftw-devel"] {os-distribution = "fedora"}
  ["fftw-devel"] {os-distribution = "rhel"}
  ["libfftw-devel"] {os-distribution = "mageia"}
  ["fftw3-devel"] {os-family = "suse"}
  ["math/fftw3"] {os = "freebsd"}
  ["math/fftw3"] {os = "openbsd"}
  ["fftw"] {os = "macos" & os-distribution = "homebrew"}
]
synopsis: "Binding to the famous Fast Fourier Transform library FFTW"
url {
  src:
    "https://github.com/Chris00/fftw-ocaml/releases/download/0.8.1/fftw3-0.8.1.tbz"
  checksum: "md5=cdf13311128b1514838e803e2725761d"
}
