devel/ocaml-cstruct 6.2.0_2 FreeBSD
OCaml library and syntax extension to access C-like structures
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ISCL
- Categories
- devel
- Package size
- 4842.8 KiB, 18327.9 KiB installed
Description
This library for OCaml contains functionnality to access datastructures using a determined byte-layouts such as networking datagrams or binay file formats (e.g.).
A PPX syntax extension is provided to allow the definition of byte-layouts in the form of "cstruct" type definitions -- looking much alike the well-known structure declaration of the C programming language (hence the name of this library) --, and to generate accessor functions to manipule its members.
In addition to those core features, the library contains accessory functions allowing:
-
The representation of "cstruct" as S-expression;
-
I/O operations over the Unix OCaml library and the Lwt cooperative threading library. The async integration is currently not provided by this port (patch welcome!).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/ocaml-cstruct | 6.2.0_2 |
| NetBSD | devel/ocaml-cstruct | 6.1.0nb2 |
| DragonFly | devel/ocaml-cstruct | 6.2.0_2 |
Install
Binary package:
pkg install ocaml-cstruct
From the ports tree:
cd /usr/ports/devel/ocaml-cstruct/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ocaml-cstruct>0:devel/ocaml-cstruct
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 6.2.0_2 | 6.2.0_2 | - | 6.2.0_2 | 6.2.0_2 |
| FreeBSD:14:quarterly | 6.2.0_2 | 6.2.0_2 | n/a | 6.2.0_2 | 6.2.0_2 |
| FreeBSD:15:latest | 6.2.0_2 | 6.2.0_2 | n/a | 6.2.0_2 | 6.2.0_2 |
| FreeBSD:15:quarterly | 6.2.0_2 | 6.2.0_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 6.2.0_2 | 6.2.0_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 4
${LOCALBASE}/${OCAML_SITELIBDIR}/fmt/META: devel/ocaml-fmt${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/META: devel/ocaml-lwt${LOCALBASE}/${OCAML_SITELIBDIR}/ppxlib/META: devel/ocaml-ppxlib${LOCALBASE}/${OCAML_SITELIBDIR}/sexplib/META: devel/ocaml-sexplib
Runtime 4
${LOCALBASE}/${OCAML_SITELIBDIR}/fmt/META: devel/ocaml-fmt${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/META: devel/ocaml-lwt${LOCALBASE}/${OCAML_SITELIBDIR}/ppxlib/META: devel/ocaml-ppxlib${LOCALBASE}/${OCAML_SITELIBDIR}/sexplib/META: devel/ocaml-sexplib
The full lists below include those, and their dependencies in turn.
Build dependencies 36
- archivers/brotli
- devel/gettext-runtime
- devel/libev
- devel/ocaml-cmdliner
- devel/ocaml-compiler-libs
- devel/ocaml-cppo
- devel/ocaml-dune
- devel/ocaml-findlib
- devel/ocaml-fmt
- devel/ocaml-lwt
- devel/ocaml-ocplib-endian
- devel/ocaml-parsexp
- devel/ocaml-ppx_derivers
- devel/ocaml-ppxlib
- devel/ocaml-react
- devel/ocaml-sexplib
- devel/ocaml-sexplib0
- graphics/png
- lang/ocaml
- lang/tcl86
- math/ocaml-num
- print/freetype2
- print/indexinfo
- textproc/expat2
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-toolkits/ocaml-labltk
- x11-toolkits/tk86
- x11/libX11
- x11/libXScrnSaver
- x11/libXau
- x11/libXdmcp
- x11/libXext
- x11/libXrender
- x11/libxcb
- x11/xorgproto
Run dependencies 35
- archivers/brotli
- devel/gettext-runtime
- devel/libev
- devel/ocaml-cmdliner
- devel/ocaml-compiler-libs
- devel/ocaml-cppo
- devel/ocaml-findlib
- devel/ocaml-fmt
- devel/ocaml-lwt
- devel/ocaml-ocplib-endian
- devel/ocaml-parsexp
- devel/ocaml-ppx_derivers
- devel/ocaml-ppxlib
- devel/ocaml-react
- devel/ocaml-sexplib
- devel/ocaml-sexplib0
- graphics/png
- lang/ocaml
- lang/tcl86
- math/ocaml-num
- print/freetype2
- print/indexinfo
- textproc/expat2
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-toolkits/ocaml-labltk
- x11-toolkits/tk86
- x11/libX11
- x11/libXScrnSaver
- x11/libXau
- x11/libXdmcp
- x11/libXext
- x11/libXrender
- x11/libxcb
- x11/xorgproto
Configuration
Options name: devel_cstruct
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- ocaml:dune,ldconfig
- Service scripts
- none
Files
pkg-plist 75
- %%OCAML_SITELIBDIR%%/cstruct-lwt/META
- %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.a
- %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cma
- %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cmxa
- %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cmxs
- %%OCAML_SITELIBDIR%%/cstruct-lwt/dune-package
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmi
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmt
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmti
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmx
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.ml
- %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.mli
- %%OCAML_SITELIBDIR%%/cstruct-lwt/opam
- %%OCAML_SITELIBDIR%%/cstruct-sexp/META
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.a
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cma
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmi
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmt
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmti
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmx
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmxa
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmxs
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.ml
- %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.mli
- %%OCAML_SITELIBDIR%%/cstruct-sexp/dune-package
- %%OCAML_SITELIBDIR%%/cstruct-sexp/opam
- %%OCAML_SITELIBDIR%%/cstruct-unix/META
- %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.a
- %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cma
- %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cmxa
- %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cmxs
- %%OCAML_SITELIBDIR%%/cstruct-unix/dune-package
- %%OCAML_SITELIBDIR%%/cstruct-unix/opam
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmi
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmt
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmti
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmx
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.ml
- %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.mli
- %%OCAML_SITELIBDIR%%/cstruct/META
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.a
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cma
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmi
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmt
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmti
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmx
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmxa
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmxs
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.js
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.ml
- %%OCAML_SITELIBDIR%%/cstruct/cstruct.mli
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmi
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmt
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmti
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmx
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.ml
- %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.mli
- %%OCAML_SITELIBDIR%%/cstruct/dllcstruct_stubs.so
- %%OCAML_SITELIBDIR%%/cstruct/dune-package
- %%OCAML_SITELIBDIR%%/cstruct/libcstruct_stubs.a
- %%OCAML_SITELIBDIR%%/cstruct/opam
- %%OCAML_SITELIBDIR%%/ppx_cstruct/META
- %%OCAML_SITELIBDIR%%/ppx_cstruct/dune-package
- %%OCAML_SITELIBDIR%%/ppx_cstruct/opam
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx.exe
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.a
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cma
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmi
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmt
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmti
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmx
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmxa
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmxs
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.ml
- %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.mli
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| mirage-ocaml-cstruct-v6.2.0_GH0.tar.gz | 244005 | 629a4bf17893c48c2f7b951eddc875a61de18bf190bb5a096976837198349cd4 |
Commit history 0
No commits in the history this site was built from.