-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
68 lines (67 loc) · 2.07 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
opam-version: "2.0"
maintainer: "garrigue@math.nagoya-u.ac.jp"
authors: ["Jacques Garrigue et al., Nagoya University"]
homepage: "https://garrigue.github.io/lablgtk/"
bug-reports: "https://github.com/garrigue/lablgtk/issues"
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"]
]
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
url {
src:
"https://download.ocamlcore.org/lablgtk/Lablgtk2/2.18.3/lablgtk-2.18.3.tar.gz"
checksum: [
"sha256=975bebf2f9ca74dc3bf7431ebb640ff6a924bb80c8ee5f4467c475a7e4b0cbaf"
"md5=bcbad64a28c3dc40f24cc7a4d2f1d0dd"
]
}
extra-source "lablgtk.install" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/lablgtk/lablgtk.install"
checksum: [
"sha256=a7254f258d43669943ababb0846017096262938bccc2f0d62cbc53687cd77d15"
"md5=1a3468258dd50aab33b9844db158b11a"
]
}
extra-source "lablgldir.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/lablgtk/lablgldir.patch.2.18.3"
checksum: [
"sha256=8fd8ebf91a84e6c9ebca6396a3711e2369a3e78b25d0b4613704ea689cf504bd"
"md5=8cf5f3efbcb7bb8294424c30f77ea81f"
]
}