opam-version: "2.0"
maintainer: "garrigue@math.nagoya-u.ac.jp"
authors: ["Jacques Garrigue et al., Nagoya University"]
homepage: "http://lablgtk.forge.ocamlcore.org/"
bug-reports: "https://forge.ocamlcore.org/tracker/?group_id=220"
dev-repo: "git+https://github.com/garrigue/lablgtk.git"
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
build: [
  ["./configure" "--prefix" prefix "LABLGLDIR=%{lib}%/lablgl"]
  [make "world"]
]
install: [
  [make "install"]
]
remove: [["ocamlfind" "remove" "lablgtk2"]]
depends: [
  "ocaml" {>= "4.06" & < "4.08"}
  "ocamlfind" {>= "1.2.1"}
  "conf-gtk2" {build}
]
depopts: [
  "conf-gtksourceview"
  "conf-gnomecanvas"
  "conf-glade"
  "lablgl"
]
patches: ["lablgldir.patch"]
post-messages: [
  "This package requires gtk+ 2.0 development packages installed on your system"
    {failure}
  """
To solve pkg-config issues, you may need to do
'export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig' and retry"""
    {failure & os = "macos"}
]
synopsis: "OCaml interface to GTK+"
flags: light-uninstall
extra-files: [
  ["lablgtk.install" "md5=1a3468258dd50aab33b9844db158b11a"]
  ["lablgldir.patch" "md5=8cf5f3efbcb7bb8294424c30f77ea81f"]
]
url {
  src:
    "https://download.ocamlcore.org/lablgtk/Lablgtk2/2.18.6/lablgtk-2.18.6.tar.gz"
  checksum: "md5=30e9eef159eb88db0dce2438a60a6402"
}
