Cygport Reference Manual

### TABLE OF CONTENTS

- ocaml.cygclass

- OCAML
- OCAMLC
- OCAMLDOC
- OCAMLFIND
- OCAMLLEX
- OCAMLMKLIB
- OCAMLMKTOP
- OCAMLOPT
- OCAML_LIBDIR
- OCAML_INCLUDEDIR
- OCAML_SITEDIR
- OCAML_STUBDIR
- LIBCAMLRUN
- ocaml_install
- src_install (ocaml)

## ocaml.cygclass

[ Top ] [ Cygclasses ] [ Cygclasses ]

SYNOPSIS

      inherit ocaml

DESCRIPTION

OCaml (previously known as Objective Caml) is an object-oriented dialect of the ML programming language. Individual scripts can be run as with interpreted languages, but most commonly code is compiled into bytecode and/or stand-alone native code. A number of extension libraries are available in addition to the standard library.

This cygclass provides definitions for OCaml-based packages, and an install function for OCaml library packages which use OCAMLFIND.

NOTE

OCaml bytecode executables, while behaving like an ordinary .exe, cannot be stripped. Cygport will automatically detect these and will not strip them during the automatic postinstall phase.

REQUIRES

ocaml, ocaml-findlib

## OCAML

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml interactive toplevel (interpreter).

## OCAMLC

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml byte compiler.

## OCAMLDOC

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml documentation generator.

## OCAMLFIND

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml library package manager.

## OCAMLLEX

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml lexer generator.

## OCAMLMKLIB

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml library linker.

## OCAMLMKTOP

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml custom toplevel linker.

## OCAMLOPT

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the OCaml native-code compiler.

## OCAML_LIBDIR

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Installation path for OCaml included libraries.

## OCAML_INCLUDEDIR

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Absolute path to the directory containing the OCaml C headers.

## OCAML_SITEDIR

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Installation path for OCaml third-party libraries.

## OCAML_STUBDIR

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Installation path for OCaml C stub libraries.

## LIBCAMLRUN

[ Top ] [ ocaml.cygclass ] [ Definitions ]

DESCRIPTION

Link flags for the OCaml shared C library.

## ocaml_install

[ Top ] [ ocaml.cygclass ] [ Install Functions ]

DESCRIPTION

Defines some variables for OCAMLFIND before calling cyginstall.

## src_install (ocaml)

[ Top ] [ ocaml.cygclass ] [ Overloads ]

DEFINITION

    src_install() {
            cd ${B}
            ocaml_install
    }