-
Notifications
You must be signed in to change notification settings - Fork 5
/
usb.opam
47 lines (39 loc) · 1.11 KB
/
usb.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
opam-version: "2.0"
version: "dev"
authors: "Jeremie Dimino <[email protected]>"
maintainer: "letoh"
license: "BSD-3-Clause"
homepage: "https://github.com/letoh/ocaml-usb"
bug-reports: "https://github.com/letoh/ocaml-usb/issues"
dev-repo: "git+https://github.com/letoh/ocaml-usb.git"
depends: [
"ocaml" {>= "4.02.0"}
("lwt" {>= "2.4.7"} & "lwt" {< "4.0.0"} | "lwt_ppx")
"ocamlfind" {build}
"oasis" {build & >= "0.3.0"}
"ocamlbuild" {build}
"conf-pkg-config" {build}
]
depexts: [
["libusb-1.0-0-dev"] {os-family = "debian"}
["libusb"] {os-family = "arch"}
["libusb-dev"] {os-family = "alpine"}
["libusb1-devel"] {os-family = "rhel"}
["libusb1-devel"] {os-family = "fedora"}
["libusb-1_0-devel"] {os-family = "suse"}
["libusb1.0-devel"] {os-family = "mageia"}
]
patches: [
"patches/use-lwt_ppx.patch" {lwt:version >= "4.0.0"}
]
build: [
["./configure"]
["./configure" "--enable-tests"] {with-test}
[make]
[make "doc"] {with-doc}
[make "test"] {with-test}
]
install: [make "install"]
remove: [["ocamlfind" "remove" "usb"]]
synopsis: "OCaml bindings for libusb-1.0"
flags: light-uninstall