opam-version: "2.0"
maintainer: "garrigue@math.nagoya-u.ac.jp"
homepage: "http://lablgtk.forge.ocamlcore.org/"
build: [
  ["./configure" "--prefix" prefix "LABLGLDIR=%{lib}%/lablgl"]
  [make "world"]
]
remove: [["ocamlfind" "remove" "lablgtk2"]]
depends: [
  "ocaml" {>= "3.11.0" & < "4.04.0"}
  "ocamlfind" {>= "1.2.1"}
  "camlp4"
  "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' (macports)
or 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (homebrew)
and retry"""
    {failure & os = "macos"}
]
install: [make "install"]
synopsis: "OCaml interface to GTK+"
description: """
If you have problems compiling this on MacOS X, try this using Homebrew:

$ brew install gtk+
$ export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
$ opam install lablgtk"""
flags: light-uninstall
extra-files: [
  ["lablgtk.install" "md5=1a3468258dd50aab33b9844db158b11a"]
  ["lablgldir.patch" "md5=8cf5f3efbcb7bb8294424c30f77ea81f"]
]
url {
  src:
    "https://download.ocamlcore.org/lablgtk/Lablgtk2/2.18.2/lablgtk-2.18.2.tar.gz"
  checksum: "md5=382003b46e52249810b3d6e7e9f3c80b"
}
