/
opam
40 lines (38 loc) · 1.48 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
opam-version: "2.0"
maintainer: "Christophe Raffalli <raffalli@univ-savoie.fr>"
authors: "Rodolphe Lepigre <rodolphe@lepigre.fr>"
homepage: "http://patoline.org/tools.html"
bug-reports: "Rodolphe Lepigre <rodolphe@lepigre.fr>"
license: "LGPL-3.0-only"
dev-repo: "darcs+https://patoline.org/darcs/imagelib"
build: [make]
install: [make "install"]
remove: [make "uninstall"]
depends: [
"ocaml" {>= "3.12.1" & < "4.06"}
"ocamlfind" {build}
"ocamlbuild" {build}
"camlzip"
]
post-messages: [
"imagelib requires convert (imagemagick) to handle format other than png and ppm."
]
synopsis: "The imagelib library implements image formats such as PNG or PPM"
description: """
The imagelib library implements image formats such as PNG or PPM in
OCaml, relying on only one external dependency: camlzip. However, we
plan to reimplement zlib in OCaml at some point.
Supported image formats:
- PNG (full implementation of RCF 2083),
- PPM, PGM, PBM, ... (fully supported),
- JPG (only image size natively, conversion to PNG otherwise),
- GIF (only image size natively, conversion to PNG otherwise),
- XCF (only image size natively, conversion to PNG otherwise),
- Other formats rely on convert (imagemagick).
As imagelib only requires camlzip, it is suitable for compilation to
javascript using js_of_ocaml (only for operations not requireing the
convert binary)."""
url {
src: "https://github.com/ocaml/opam-source-archives/raw/main/imagelib_20160413.tar.gz"
checksum: "md5=b24402c12c50c8d891735ae3c03ceae9"
}