-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
opam-version: "2.0" | ||
synopsis: "Combinators for binding to C libraries without writing any C" | ||
description: """ | ||
|
||
ctypes is a library for binding to C libraries using pure OCaml. The primary | ||
aim is to make writing C extensions as straightforward as possible. | ||
The core of ctypes is a set of combinators for describing the structure of C | ||
types -- numeric types, arrays, pointers, structs, unions and functions. You | ||
can use these combinators to describe the types of the functions that you want | ||
to call, then bind directly to those functions -- all without writing or | ||
generating any C! | ||
|
||
To install the optional `ctypes-foreign` interface (which uses `libffi` to | ||
provide dynamic access to foreign libraries), you will need to also install | ||
the `ctypes-foreign` package. | ||
|
||
opam install ctypes-foreign | ||
|
||
This will make the `ctypes-foreign` ocamlfind subpackage available.""" | ||
maintainer: ["Jeremy Yallop <[email protected]>"] | ||
authors: ["Jeremy Yallop"] | ||
license: "MIT" | ||
tags: ["org:mirage"] | ||
homepage: "https://github.com/yallop/ocaml-ctypes" | ||
doc: "https://yallop.github.io/ocaml-ctypes/" | ||
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues" | ||
depends: [ | ||
"dune" {>= "2.9"} | ||
"ocaml-windows" {>= "4.03.0"} | ||
"integers" | ||
"integers-windows" | ||
"dune-configurator" | ||
"bigarray-compat" | ||
"bigarray-compat-windows" | ||
] | ||
build: [ | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
"ctypes" | ||
"-x" | ||
"windows" | ||
"-j" | ||
jobs | ||
"@install" | ||
] | ||
] | ||
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git" | ||
url { | ||
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.22.0.tar.gz" | ||
checksum: "md5=8a301a3e3b79156448a6659859ad506c" | ||
} |