Port from Daniel Dickman (didickman at gmail dot com) with a few tweaks by me. ok dcoppa@ The ocaml-bitstring project adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml. You can use this module to both parse and generate binary formats, files and protocols. Bitstring handling is added as primitives to the language, making it exceptionally simple to use and very powerful. Bitstring handles integers, strings, sub-bitstrings, big-, little- and native-endianness, signed and unsigned types, variable-width fields, and fields with arbitrary bit alignment.
31 lines
682 B
Makefile
31 lines
682 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2013/12/05 14:38:18 jca Exp $
|
|
|
|
COMMENT= Erlang-style bitstrings for OCaml
|
|
|
|
DISTNAME= ocaml-bitstring-2.0.4
|
|
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= https://bitstring.googlecode.com/
|
|
|
|
# LGPLv2+ with the OCaml linking exception (see COPYING.LIB)
|
|
# GPLv2+ for programs (see COPYING)
|
|
# examples and tests are public domain.
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= https://bitstring.googlecode.com/files/
|
|
|
|
MODULES= lang/ocaml
|
|
BUILD_DEPENDS= sysutils/findlib
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if ! ${PROPERTIES:Mocaml_native}
|
|
MAKE_FLAGS+= NATIVE=
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= ac_cv_prog_CAMLP4OF=camlp4of
|
|
|
|
.include <bsd.port.mk>
|