opam-version: "2.0"
maintainer: "Ivan Gotovchits <ivg@ieee.org>"
authors: "BAP Team"
homepage: "https://github.com/BinaryAnalysisPlatform/bap/"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
dev-repo: "git://github.com/BinaryAnalysisPlatform/bap/"
license: "MIT"
build: [
  ["./configure"
                 "--prefix=%{prefix}%"
                 "--with-cxx=`which clang++`"
                 "--mandir=%{man}%"
                 "--enable-bap-std"]
  [make]
]

install: [
  [make "reinstall"]
]

remove: [
  ["ocamlfind" "remove" "bap"]
  ["ocamlfind" "remove" "bap-build"]
  ["rm" "-f" "%{bin}%/baptop"]
  ["rm" "-f" "%{bin}%/ppx-bap"]
  ["rm" "-f" "%{bin}%/bapbuild"]
  ["rm" "-f" "%{bin}%/bapbundle"]
]

depends: [
  "ocaml" {>= "4.02.3"}
  "base-unix"
  "bap-future" {= "1.0.0"}
  "camlzip"
  "core_kernel" {>= "113.33.00" & < "v0.9"}
  "fileutils"
  "graphlib"
  "oasis" {build & = "0.4.7"}
  "ocamlfind" {>= "1.5.6" & < "2.0"}
  "ppx_jane" {>= "113.33.00" & < "v0.9"}
  "regular"
  "uri"
  "utop"
  "uuidm"
  "zarith"
  "cmdliner" {<= "0.9.8"}
  "conf-which" {build}
  "conf-clang" {build}
]
depexts: [
  ["libgmp-dev" "libzip-dev"] {os-distribution = "ubuntu"}
  ["gmp" "libzip"] {os = "macos" & os-distribution = "macports"}
]
conflicts: ["fileutils" {= "0.5.0"}]
synopsis: "Binary Analysis Platform Standard Library"
description: "Provides the main BAP library."
flags: light-uninstall
url {
  src: "https://github.com/BinaryAnalysisPlatform/bap/archive/v1.0.0.tar.gz"
  checksum: "md5=07dce66dd871e448652d8885283c6631"
}
