-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporary fix for yallop/ocaml-ctypes#552
- Loading branch information
Showing
3 changed files
with
58 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,18 @@ | ||
Combinators for binding to C libraries without writing any C. | ||
|
||
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` optional dependency: | ||
|
||
opam install ctypes ctypes-foreign | ||
|
||
This will make the `ctypes.foreign` ocamlfind subpackage available. |
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,39 @@ | ||
opam-version: "1.2" | ||
maintainer: "yallop@gmail.com" | ||
author: "yallop@gmail.com" | ||
homepage: "https://github.com/ocamllabs/ocaml-ctypes" | ||
doc: "http://ocamllabs.github.io/ocaml-ctypes" | ||
dev-repo: "http://github.com/ocamllabs/ocaml-ctypes.git" | ||
bug-reports: "http://github.com/ocamllabs/ocaml-ctypes/issues" | ||
license: "MIT" | ||
build: [ | ||
[make "XEN=%{mirage-xen:enable}%" "libffi.config"] {ctypes-foreign:installed} | ||
["touch" "libffi.config"] {!ctypes-foreign:installed} | ||
[make "XEN=%{mirage-xen:enable}%" "ctypes-base" "ctypes-stubs"] | ||
[make "XEN=%{mirage-xen:enable}%" "ctypes-foreign"] {ctypes-foreign:installed} | ||
] | ||
build-test: [ | ||
[make "test"] | ||
] | ||
install: [ | ||
[make "install" "XEN=%{mirage-xen:enable}%"] | ||
] | ||
remove: [ | ||
["ocamlfind" "remove" "ctypes"] | ||
] | ||
depends: [ | ||
"base-bytes" | ||
"integers" | ||
"ocamlfind" {build} | ||
"conf-pkg-config" {build} | ||
"lwt" {test} | ||
"ounit" {test} | ||
"ctypes-foreign" {test} | ||
"conf-ncurses" {test} | ||
] | ||
depopts: [ | ||
"ctypes-foreign" | ||
"mirage-xen" | ||
] | ||
tags: ["org:ocamllabs" "org:mirage"] | ||
available: [ ocaml-version >= "4.01.0" ] |
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 @@ | ||
archive: "https://github.com/yallop/ocaml-ctypes/archive/a270d64201037c995a81d246e28a2d56a4f9acaa.tar.gz" |