forked from yallop/ocaml-ctypes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctypes-foreign.opam
54 lines (53 loc) · 1.6 KB
/
ctypes-foreign.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
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Dynamic access to foreign C libraries using Ctypes"
description: """
This installs the `ctypes-foreign` interface which
uses `libffi` to provide dynamic access to foreign libraries."""
maintainer: ["Jeremy Yallop <yallop@gmail.com>"]
authors: ["Jeremy Yallop"]
license: "MIT"
tags: ["org:mirage" "org:ocamllabs"]
homepage: "https://github.com/dune-universe/ocaml-ctypes"
bug-reports: "https://github.com/dune-universe/ocaml-ctypes/issues"
depends: [
"dune" {>= "2.8"}
"ocaml" {>= "4.03.0"}
"ctypes" {= version}
"dune-configurator"
"conf-pkg-config"
"lwt" {with-test}
"ounit2" {with-test}
"conf-ncurses" {with-test}
"stdlib-shims" {with-test}
"conf-fts" {with-test & os != "win32"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/dune-universe/ocaml-ctypes.git"
post-messages: "This package requires libffi on your system" {failure}
depexts: [
["libffi-dev"] {os-distribution = "debian"}
["libffi-dev"] {os-distribution = "ubuntu"}
["libffi"] {os = "macos" & os-distribution = "homebrew"}
["libffi"] {os = "macos" & os-distribution = "macports"}
["libffi-devel"] {os-distribution = "centos"}
["libffi-devel"] {os-distribution = "oraclelinux"}
["libffi"] {os = "win32" & os-distribution = "cygwinports"}
["libffi-devel"] {os-distribution = "fedora"}
["libffi-dev"] {os-distribution = "alpine"}
["libffi-devel"] {os-family = "suse"}
]