forked from rlepigre/ocaml-imagelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimagelib.opam
52 lines (46 loc) · 1.69 KB
/
imagelib.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
synopsis: "Library implementing parsing of image formats such as PNG, BMP, PPM"
description:
"""
The imagelib library implements image formats such as PNG, BMP, and PPM in
OCaml, relying on only one external dependency: 'decompress'.
Unix-dependent functionality such as reading or writing to files in the
filesystem are packaged separately in the 'imagelib-unix' OPAM package.
Supported image formats:
- PNG (full implementation of RFC 2083),
- PPM, PGM, PBM, ... (fully supported),
- BMP (read-only)
- 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),
- Utility functions for handling unimplemented formats are available in
the 'imagelib-unix' OPAM package. See that package description for more info.
As imagelib only requires 'decompress', it can be used together with
js_of_ocaml to compile projects to Javascript, or from MirageOS unikernels.
"""
opam-version: "2.0"
maintainer: "rodolphe.lepigre@inria.fr"
bug-reports: "https://github.com/rlepigre/ocaml-imagelib/issues"
homepage: "https://github.com/rlepigre/ocaml-imagelib"
dev-repo: "git+https://github.com/rlepigre/ocaml-imagelib.git"
authors: [
"Rodolphe Lepigre <rodolphe.lepigre@inria.fr>"
]
license: "GPLv3"
doc: "https://rlepigre.github.io/ocaml-imagelib"
depends: [
"ocaml" { >= "4.07.0" }
"base-unix"
"dune" { >= "2.3.0" }
"decompress" { >= "1.2.0" }
"stdlib-shims"
"alcotest" { with-test }
]
depopts: [
"crowbar" { with-test }
"afl-persistent" { with-test }
]
build: [
[ "dune" "build" "-p" name "-j" jobs
"@install"
"@runtest" {with-test} ]
]